Closed Bug 1840545 Opened 2 years ago Closed 2 years ago

Move all code related to origin operations to separate source files

Categories

(Core :: Storage: Quota Manager, task, P2)

task

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: janv, Assigned: janv)

References

(Blocks 1 open bug)

Details

Attachments

(16 files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

This is a continuation of bug 1839417.

These constants will be used in other source files.

Depends on D182172

This makes it clear which derived classes need storage initialization.

Depends on D182176

Storage is now initialized explicitly in each DoDirectoryWork method which
requires it.

Depends on D182177

This makes it clear which derived classes need storage initialization.

Depends on D182178

This makes it clear which final classes need storage initialization.

Depends on D182179

Storage is now initialized explicitly in each DoDirectoryWork method which
requires it.

Depends on D182180

FinalizeOriginEvictionOp was avoiding to process some initial states and
was starting directly on the IO thread or directly dispathing to the IO thread.
The operations now operates in a standard way, so it starts immediatelly on the
PBackground thread or is dispatched to the PBackground thread. The extra
dispatch to the PBackground thread has only negligible performance impact.
The code and the processing is now much cleaner.

Depends on D182181

Keywords: leave-open
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f910ed7c78ca Move CreateDirectoryMetadata and CreateDirectoryMetadata2 to QuotaManager class; r=dom-storage-reviewers,jari https://hg.mozilla.org/integration/autoland/rev/4e302ea298e9 Move some constants to Constants.h; r=dom-storage-reviewers,jari https://hg.mozilla.org/integration/autoland/rev/63fa1dd5d595 Move some file utils to separate files; r=dom-storage-reviewers,jari https://hg.mozilla.org/integration/autoland/rev/3eaf87766920 Move OriginOperationBase to separate files; r=dom-storage-reviewers,jari https://hg.mozilla.org/integration/autoland/rev/ed80d40e7d63 Move NormalOriginOperationBase to separate files; r=dom-storage-reviewers,jari https://hg.mozilla.org/integration/autoland/rev/9c097acf4991 Change QuotaUsageRequestBase::Init to be a pure virtual method; r=dom-storage-reviewers,jari https://hg.mozilla.org/integration/autoland/rev/71a5a6dc926b Remove QuotaUsageRequestBase::Init; r=dom-storage-reviewers,jari
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/86e1231b7a83 Change QuotaRequestBase::Init to be a pure virtual method; r=dom-storage-reviewers,jari https://hg.mozilla.org/integration/autoland/rev/1ba8085e6867 Implement QuotaRequestBase::Init only in final classes; r=dom-storage-reviewers,jari
Keywords: leave-open
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2666a14e0b07 Remove QuotaRequestBase::Init; r=dom-storage-reviewers,asuth https://hg.mozilla.org/integration/autoland/rev/ef1ee95f3286 Fix FinalizeOriginEvictionOp to follow standard state advancing; r=dom-storage-reviewers,asuth https://hg.mozilla.org/integration/autoland/rev/d3648c29ef18 Create a base class for resolvable normal origin operations; r=dom-storage-reviewers,asuth https://hg.mozilla.org/integration/autoland/rev/198e7e054351 Move QuotaUsageRequestBase to separate files; r=dom-storage-reviewers,jari https://hg.mozilla.org/integration/autoland/rev/6ab059d1b30d Move QuotaRequestBase to separate files; r=dom-storage-reviewers,jari https://hg.mozilla.org/integration/autoland/rev/e17b2a44afe7 Move all origin operations to separate files; r=dom-storage-reviewers,jari https://hg.mozilla.org/integration/autoland/rev/2d6f9e9eae27 Rename ResolvableOriginOp to ResolvableNormalOriginOp; r=dom-storage-reviewers,jari
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: