gecko-dev/dom/quota
Jan Varga 733fb4288b Bug 1906041 - Add QuotaManager::Initialize(Persistent|Temporary)Origin methods; r=dom-storage-reviewers,jari
There are currently EnsurePersistentOriginIsInitializedInternal and
EnsureTemporaryOriginIsInitializedInternal methods which can only be
called on the QuotaManager IO thread. These methods shouldn't be exposed to
quota clients and origin operations. There should be public methods callable
from the PBackground thread returning a MozPromise instead. Such methods will
guarantee that proper directory locking is acquired before persistent origin
initialization or temporary origin initialization is started.

Differential Revision: https://phabricator.services.mozilla.com/D194005
2024-08-01 09:33:05 +00:00
..
scripts/qm-try-analysis Bug 1864725 - Containerized setup for qm-try-analysis scripts r=jari 2024-03-22 14:30:36 +00:00
test Bug 1906041 - Add QuotaManager::Initialize(Persistent|Temporary)Origin methods; r=dom-storage-reviewers,jari 2024-08-01 09:33:05 +00:00
ActorsChild.cpp Bug 1906041 - Add QuotaManager::Initialize(Persistent|Temporary)Origin methods; r=dom-storage-reviewers,jari 2024-08-01 09:33:05 +00:00
ActorsChild.h Bug 1874739 - Part 8: Make PQuota refcounted, r=dom-storage-reviewers,janv 2024-01-19 20:23:20 +00:00
ActorsParent.cpp Bug 1906041 - Add QuotaManager::Initialize(Persistent|Temporary)Origin methods; r=dom-storage-reviewers,jari 2024-08-01 09:33:05 +00:00
ActorsParent.h Bug 1840770 - Move PQuotaParent implementation to separate source files; r=dom-storage-reviewers,jari 2023-07-13 09:57:18 +00:00
Assertions.cpp Bug 1839417 - Remove duplicated code for assertions; r=dom-storage-reviewers,asuth 2023-06-21 09:09:51 +00:00
Assertions.h
AssertionsImpl.h
CachingDatabaseConnection.cpp Bug 1858989 - Change CachingDatabaseConnection to use serial event targets; r=dom-storage-reviewers,asuth 2024-03-14 07:04:30 +00:00
CachingDatabaseConnection.h Bug 1858989 - Change CachingDatabaseConnection to use serial event targets; r=dom-storage-reviewers,asuth 2024-03-14 07:04:30 +00:00
CanonicalQuotaObject.cpp
CanonicalQuotaObject.h
CheckedUnsafePtr.h Bug 1909808 - Add AssertEnabled and ReleaseAssertEnabled aliases to CheckedUnsafePtr.h; r=dom-storage-reviewers,asuth 2024-07-26 07:00:33 +00:00
CipherKeyManager.h Bug 1900667 - Fix formatting in dom/quota; r=dom-storage-reviewers,asuth 2024-06-04 21:15:03 +00:00
CipherStrategy.h Bug 1843038 - Make CypherStrategy::DeserializeKey fallible, r=janv 2023-07-18 14:32:57 +00:00
Client.cpp
Client.h
ClientImpl.h
ClientUsageArray.cpp
ClientUsageArray.h
CommonMetadata.h Bug 1808294 - Add a common way to create quota client directories; r=dom-storage-reviewers,jari 2023-10-12 14:55:59 +00:00
components.conf Bug 1553105 - Make URL.origin return "null" if protocol doesn't have the URI_HAS_WEB_EXPOSED_ORIGIN flag r=nika,necko-reviewers,kershaw 2023-09-27 10:29:17 +00:00
Config.h Bug 1858989 - Bring back owning thread assertions; r=dom-storage-reviewers,asuth 2024-03-14 07:04:30 +00:00
Constants.h Bug 1840545 - Move some constants to Constants.h; r=dom-storage-reviewers,jari 2023-07-04 15:33:38 +00:00
DebugOnlyMacro.h
DecryptingInputStream_impl.h Bug 1854872: Fixing a bug in DecryptingInputStream::Seek where it could close underlying base seekable stream inadvertently.r=dom-storage-reviewers,janv 2024-06-21 15:40:14 +00:00
DecryptingInputStream.cpp
DecryptingInputStream.h Bug 1854872: Fixing a bug in DecryptingInputStream::Seek where it could close underlying base seekable stream inadvertently.r=dom-storage-reviewers,janv 2024-06-21 15:40:14 +00:00
DirectoryLock.h Bug 1903874 - Change DirectoryLock::Drop to be asynchronous; r=dom-storage-reviewers,jari 2024-06-23 08:27:58 +00:00
DirectoryLockCategory.h Bug 1905011 - Replace counting of pending clear/shutdown storage operations with evaluation of existing directory locks; r=dom-storage-reviewers,jari 2024-07-02 21:40:24 +00:00
DirectoryLockImpl.cpp Bug 1903874 - Change DirectoryLock::Drop to be asynchronous; r=dom-storage-reviewers,jari 2024-06-23 08:27:58 +00:00
DirectoryLockImpl.h Bug 1903874 - Change DirectoryLock::Drop to be asynchronous; r=dom-storage-reviewers,jari 2024-06-23 08:27:58 +00:00
DirectoryLockInlines.h Bug 1883353 - Require to always drop directory locks explicitly; r=dom-storage-reviewers,jari 2024-06-14 07:21:24 +00:00
DummyCipherStrategy.h Bug 1843038 - Make CypherStrategy::DeserializeKey fallible, r=janv 2023-07-18 14:32:57 +00:00
EncryptedBlock.h Bug 1867394: Zero-initialize first EncryptedBlock.r=asuth,dom-storage-reviewers 2023-12-04 21:51:22 +00:00
EncryptingOutputStream_impl.h Bug 1864123 - Optimize flushing to base stream; r=dom-storage-reviewers,asuth,hsingh 2023-11-24 10:02:29 +00:00
EncryptingOutputStream.cpp
EncryptingOutputStream.h Bug 1864123 - Optimize flushing to base stream; r=dom-storage-reviewers,asuth,hsingh 2023-11-24 10:02:29 +00:00
ErrorHandling.h Bug 1888878 - Add nsIIndexedDatabaseManager::DoMaintenance; r=dom-storage-reviewers,asuth 2024-06-20 17:27:10 +00:00
FileStreams.cpp
FileStreams.h
FileUtils.cpp Bug 1840545 - Move some file utils to separate files; r=dom-storage-reviewers,jari 2023-07-04 15:33:39 +00:00
FileUtils.h Bug 1840545 - Move some file utils to separate files; r=dom-storage-reviewers,jari 2023-07-04 15:33:39 +00:00
FirstInitializationAttempts.h
FirstInitializationAttemptsImpl.h
Flatten.h Bug 1900667 - Fix formatting in dom/quota; r=dom-storage-reviewers,asuth 2024-06-04 21:15:03 +00:00
ForwardDecls.h Bug 1905011 - Add callbacks for origin operations; r=dom-storage-reviewers,jari 2024-07-02 12:35:21 +00:00
GroupInfo.cpp
GroupInfo.h
GroupInfoPair.cpp
GroupInfoPair.h
InitializationTypes.cpp
InitializationTypes.h
IPCQuotaObject.ipdlh Bug 1880372 - Include headers for ManagedEndpoint/Endpoint if it is used in a struct or union; r=nika,media-playback-reviewers,padenot 2024-02-15 22:16:42 +00:00
IPCStreamCipherStrategy.h
moz.build Bug 1905011 - Add callbacks for origin operations; r=dom-storage-reviewers,jari 2024-07-02 12:35:21 +00:00
NormalOriginOperationBase.cpp Bug 1749504 - Allow to do more complex directory opening in derived classes of NormalOriginOperationsBase; r=dom-storage-reviewers,jstutte 2023-09-13 16:41:58 +00:00
NormalOriginOperationBase.h Bug 1749504 - Allow to do more complex directory opening in derived classes of NormalOriginOperationsBase; r=dom-storage-reviewers,jstutte 2023-09-13 16:41:58 +00:00
nsIndexedDBProtocolHandler.cpp
nsIndexedDBProtocolHandler.h
nsIQuotaCallbacks.idl
nsIQuotaManagerService.idl Bug 1808294 - Add a common way to create quota client directories; r=dom-storage-reviewers,jari 2023-10-12 14:55:59 +00:00
nsIQuotaRequests.idl
nsIQuotaResults.idl Bug 1873777 - Remove [function] attribute from interfaces which are not meant to be callbacks r=mccr8 2024-01-12 19:05:26 +00:00
NSSCipherStrategy.cpp Bug 1843038 - Make CypherStrategy::DeserializeKey fallible, r=janv 2023-07-18 14:32:57 +00:00
NSSCipherStrategy.h Bug 1843038 - Make CypherStrategy::DeserializeKey fallible, r=janv 2023-07-18 14:32:57 +00:00
OriginInfo.cpp
OriginInfo.h
OriginOperationBase.cpp Bug 1905011 - Add callbacks for origin operations; r=dom-storage-reviewers,jari 2024-07-02 12:35:21 +00:00
OriginOperationBase.h Bug 1905011 - Add callbacks for origin operations; r=dom-storage-reviewers,jari 2024-07-02 12:35:21 +00:00
OriginOperationCallbacks.h Bug 1905011 - Add callbacks for origin operations; r=dom-storage-reviewers,jari 2024-07-02 12:35:21 +00:00
OriginOperations.cpp Bug 1906041 - Add QuotaManager::Initialize(Persistent|Temporary)Origin methods; r=dom-storage-reviewers,jari 2024-08-01 09:33:05 +00:00
OriginOperations.h Bug 1906041 - Add QuotaManager::Initialize(Persistent|Temporary)Origin methods; r=dom-storage-reviewers,jari 2024-08-01 09:33:05 +00:00
OriginParser.cpp Bug 1770944 - Remove other references to inBrowserElement, r=cookie-reviewers,valentin,janv,decoder 2024-03-07 13:04:23 +00:00
OriginParser.h Bug 1770944 - Remove other references to inBrowserElement, r=cookie-reviewers,valentin,janv,decoder 2024-03-07 13:04:23 +00:00
OriginScope.h
PersistenceType.cpp
PersistenceType.h
PQuota.ipdl Bug 1906041 - Add QuotaManager::Initialize(Persistent|Temporary)Origin methods; r=dom-storage-reviewers,jari 2024-08-01 09:33:05 +00:00
PQuotaRequest.ipdl Bug 1906041 - Add QuotaManager::Initialize(Persistent|Temporary)Origin methods; r=dom-storage-reviewers,jari 2024-08-01 09:33:05 +00:00
PQuotaUsageRequest.ipdl Bug 1808294 - Extend nsIQuotaOriginUsageResult to match UsageInfo; r=dom-storage-reviewers,jari 2023-10-06 13:33:13 +00:00
PRemoteQuotaObject.ipdl Bug 1867360 - Require toplevel protocols to specify which processes they expect to be bound in, r=decoder,ipc-reviewers,necko-reviewers,media-playback-reviewers,profiler-reviewers,win-reviewers,aosmond,rkraesig,mccr8,kershaw 2024-01-18 23:07:18 +00:00
PromiseUtils.cpp Bug 1888878 - Extract CreatePromise to PromiseUtils.h; r=dom-storage-reviewers,asuth 2024-06-20 11:15:46 +00:00
PromiseUtils.h Bug 1888878 - Extract CreatePromise to PromiseUtils.h; r=dom-storage-reviewers,asuth 2024-06-20 11:15:46 +00:00
QMResult.cpp
QMResult.h
QuotaCommon.cpp Bug 1891541 - [2/2] enforce that MozPromise only accepts static strings r=xpcom-reviewers,media-playback-reviewers,padenot,emilio 2024-04-24 17:02:49 +00:00
QuotaCommon.h Bug 1900667 - Fix formatting in dom/quota; r=dom-storage-reviewers,asuth 2024-06-04 21:15:03 +00:00
QuotaManager.h Bug 1906041 - Add QuotaManager::Initialize(Persistent|Temporary)Origin methods; r=dom-storage-reviewers,jari 2024-08-01 09:33:05 +00:00
QuotaManagerImpl.h Bug 1839417 - Move QuotaManager::CollectPendingOriginsForListing implementation to QuotaManagerImpl.h; r=dom-storage-reviewers,asuth 2023-06-22 08:04:16 +00:00
QuotaManagerService.cpp Bug 1906041 - Add QuotaManager::Initialize(Persistent|Temporary)Origin methods; r=dom-storage-reviewers,jari 2024-08-01 09:33:05 +00:00
QuotaManagerService.h
QuotaObject.cpp
QuotaObject.h
QuotaParent.cpp Bug 1906041 - Add QuotaManager::Initialize(Persistent|Temporary)Origin methods; r=dom-storage-reviewers,jari 2024-08-01 09:33:05 +00:00
QuotaParent.h Bug 1906041 - Add QuotaManager::Initialize(Persistent|Temporary)Origin methods; r=dom-storage-reviewers,jari 2024-08-01 09:33:05 +00:00
QuotaRequestBase.cpp Bug 1749504 - Add not null strong reference to QuotaManager from OriginOperatiosBase; r=dom-storage-reviewers,jstutte 2023-09-13 16:41:57 +00:00
QuotaRequestBase.h Bug 1749504 - Remove NormalOriginOperationBase members related to directory locking; r=dom-storage-reviewers,jstutte 2023-09-13 16:41:58 +00:00
QuotaRequests.cpp
QuotaRequests.h
QuotaResults.cpp Bug 1808294 - Extend nsIQuotaOriginUsageResult to match UsageInfo; r=dom-storage-reviewers,jari 2023-10-06 13:33:13 +00:00
QuotaResults.h Bug 1808294 - Extend nsIQuotaOriginUsageResult to match UsageInfo; r=dom-storage-reviewers,jari 2023-10-06 13:33:13 +00:00
QuotaUsageRequestBase.cpp Bug 1906041 - Rename Ensure(Persistent|Temporary)OriginIsInitialized to Ensure(Persistent|Temporary)OriginIsInitializedInternal; r=dom-storage-reviewers,jari 2024-07-16 10:43:40 +00:00
QuotaUsageRequestBase.h Bug 1749504 - Remove NormalOriginOperationBase members related to directory locking; r=dom-storage-reviewers,jstutte 2023-09-13 16:41:58 +00:00
RemoteQuotaObject.cpp
RemoteQuotaObject.h
RemoteQuotaObjectChild.cpp
RemoteQuotaObjectChild.h
RemoteQuotaObjectParent.cpp
RemoteQuotaObjectParent.h
RemoteQuotaObjectParentTracker.h
RemoveParen.h
ResolvableNormalOriginOp.h Bug 1749504 - Remove NormalOriginOperationBase members related to directory locking; r=dom-storage-reviewers,jstutte 2023-09-13 16:41:58 +00:00
ResultExtensions.h
SanitizationUtils.cpp Bug 1839417 - Move sanitization methods to separate files; r=dom-storage-reviewers,asuth 2023-06-22 08:04:16 +00:00
SanitizationUtils.h Bug 1839417 - Move sanitization methods to separate files; r=dom-storage-reviewers,asuth 2023-06-22 08:04:16 +00:00
ScopedLogExtraInfo.cpp Bug 1881526 - Add support for reporting broken origins on disk; r=dom-storage-reviewers,asuth 2024-03-07 06:34:01 +00:00
ScopedLogExtraInfo.h Bug 1881526 - Add support for reporting broken origins on disk; r=dom-storage-reviewers,asuth 2024-03-07 06:34:01 +00:00
SerializationHelpers.h Bug 1770944 - Remove other references to inBrowserElement, r=cookie-reviewers,valentin,janv,decoder 2024-03-07 13:04:23 +00:00
StorageHelpers.cpp
StorageHelpers.h
StorageManager.cpp Bug 1894231 - P3 Remove WorkerPrivate* in WorkerMainThreadRunnable. r=dom-worker-reviewers,extension-reviewers,smaug,rpl 2024-06-24 22:20:51 +00:00
StorageManager.h
StorageOriginAttributes.cpp Bug 1887719 - More consistently use UTF8String/nsCString for URLs. r=necko-reviewers,webidl,anti-tracking-reviewers,places-reviewers,jari,kershaw,janv,smaug,hsivonen 2024-04-04 11:49:57 +00:00
StorageOriginAttributes.h Bug 1770944 - Fix StorageOriginAttributes::CreateSuffix; r=aiunusov 2024-03-07 13:04:23 +00:00
StreamUtils.cpp Bug 1839417 - Move stream helpers to separate files; r=dom-storage-reviewers,asuth 2023-06-22 08:04:17 +00:00
StreamUtils.h Bug 1839417 - Move stream helpers to separate files; r=dom-storage-reviewers,asuth 2023-06-22 08:04:17 +00:00
StringifyUtils.cpp Bug 1727526 - Have a Stringifyable base class. r=dom-storage-reviewers,janv 2023-12-11 15:17:12 +00:00
StringifyUtils.h Bug 1727526 - Have a Stringifyable base class. r=dom-storage-reviewers,janv 2023-12-11 15:17:12 +00:00
ThreadUtils.cpp Bug 1901745 - Introduce mozilla::dom::quota::RunAfterProcessNextEvent; r=dom-storage-reviewers,jstutte 2024-06-13 11:07:08 +00:00
ThreadUtils.h Bug 1901745 - Introduce mozilla::dom::quota::RunAfterProcessNextEvent; r=dom-storage-reviewers,jstutte 2024-06-13 11:07:08 +00:00
UsageInfo.h