Improve GetUsageForOrigin* functions
Categories
(Core :: Storage: Quota Manager, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox79 | --- | fixed |
People
(Reporter: sg, Assigned: sg)
References
Details
Attachments
(9 files, 1 obsolete file)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
As a follow-up to the discussion in https://phabricator.services.mozilla.com/D77073#inline-446669, it should be checked whether the signature or the name of the GetUsageForOrigin*
functions should be changed to either make it clearer that aUsageInfo
is an input/output parameter or it should be made a return value instead. If functions remains that have it as an output parameter, it should by convention be made the last parameter.
Assignee | ||
Comment 1•5 years ago
|
||
At the moment, it actually is an input/output parameter when called from here: https://searchfox.org/mozilla-central/rev/bc3600def806859c31b2c7ac06e3d69271052a89/dom/quota/ActorsParent.cpp#9452
But it still is an option to change it to a return value, as the caller could do the aggregation without (significant) overhead due to the simple structure of UsageInfo
.
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Depends on D77446
Assignee | ||
Comment 4•5 years ago
|
||
Depends on D77447
Assignee | ||
Comment 5•5 years ago
|
||
Depends on D77448
Assignee | ||
Comment 6•5 years ago
|
||
Depends on D77449
Assignee | ||
Comment 7•5 years ago
|
||
Depends on D77450
Assignee | ||
Comment 8•5 years ago
|
||
Depends on D77451
Assignee | ||
Comment 9•5 years ago
|
||
Depends on D77452
Assignee | ||
Comment 10•5 years ago
|
||
Depends on D77453
Assignee | ||
Comment 11•5 years ago
|
||
Depends on D77454
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
bugherder |
Assignee | ||
Updated•5 years ago
|
Comment 14•5 years ago
|
||
Comment 15•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/12914ebfe67b
https://hg.mozilla.org/mozilla-central/rev/ead91a5bb878
https://hg.mozilla.org/mozilla-central/rev/cb9be96d5643
https://hg.mozilla.org/mozilla-central/rev/79252915f36f
Description
•