gecko-dev/dom/quota
Jan Varga 83a9cec642 Bug 1866402 - Resolve promises for origin initialization immediately if origins are already initialized; r=dom-storage-reviewers,jari
It's now possible to check if an origin is already initialized on the owning
thread and it's also possible to evaluate existing directory locks if there are
any uninit origin operations pending. So we can add optimizations to origin
initialization methods to resolve promises immediately if origins are already
initialized and there are no pending uninit storage or uninit origin operations.

Differential Revision: https://phabricator.services.mozilla.com/D195548
2024-10-09 22:16:53 +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 1866402 - Implement origin initialization status tracking on the owning thread; r=dom-storage-reviewers,jari 2024-10-09 22:16:52 +00:00
ActorsChild.cpp Bug 1866402 - Rework QuotaManagerService::ResetStoragesForPrincipal to use an async message with an async response; r=dom-storage-reviewers,jari 2024-10-09 11:59:34 +00:00
ActorsChild.h Bug 1910848 - Move QuotaUsageRequestChild to separate files; r=dom-storage-reviewers,jari 2024-08-08 10:34:04 +00:00
ActorsParent.cpp Bug 1866402 - Resolve promises for origin initialization immediately if origins are already initialized; r=dom-storage-reviewers,jari 2024-10-09 22:16:53 +00:00
ActorsParent.h
Assertions.cpp
Assertions.h
AssertionsImpl.h
BackgroundThreadObject.cpp Bug 1910848 - Move BackgroundThreadObject to separate files; r=dom-storage-reviewers,jari 2024-08-07 07:53:13 +00:00
BackgroundThreadObject.h Bug 1910848 - Move BackgroundThreadObject to separate files; r=dom-storage-reviewers,jari 2024-08-07 07:53:13 +00:00
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 Bug 1916883 - Add missing thread safety annotations. r=jesup 2024-09-26 06:23:06 +00:00
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
Client.cpp
Client.h Bug 1866217 - Replace uses of Nullable<PersistenceType> type with PersistenceScope; r=dom-storage-reviewers,jari 2024-08-14 12:46:14 +00:00
ClientImpl.h
ClientUsageArray.cpp
ClientUsageArray.h
CommonMetadata.h Bug 1910848 - Replace custom OriginUsage with a common OriginUsageMetadata struct; r=dom-storage-reviewers,jari 2024-08-07 07:53:13 +00:00
CommonMetadataArray.h Bug 1910848 - Replace custom OriginUsage with a common OriginUsageMetadata struct; r=dom-storage-reviewers,jari 2024-08-07 07:53:13 +00:00
CommonMetadataArrayFwd.h Bug 1910848 - Replace custom OriginUsage with a common OriginUsageMetadata struct; r=dom-storage-reviewers,jari 2024-08-07 07:53:13 +00:00
components.conf
Config.h Bug 1858989 - Bring back owning thread assertions; r=dom-storage-reviewers,asuth 2024-03-14 07:04:30 +00:00
Constants.h
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 1917454 - Add DirectoryLock::Invalidated getter; r=dom-storage-reviewers,jari 2024-09-16 11:01:22 +00:00
DirectoryLockCategory.h Bug 1866402 - Add UninitOrigins directory lock category and use it for directory locks which uninitialize origins; r=dom-storage-reviewers,jari 2024-10-09 22:16:52 +00:00
DirectoryLockImpl.cpp Bug 1917454 - Add a timer for directory lock acquisition; r=dom-storage-reviewers,jari 2024-09-16 11:01:23 +00:00
DirectoryLockImpl.h Bug 1866402 - Add UninitOrigins directory lock category and use it for directory locks which uninitialize origins; r=dom-storage-reviewers,jari 2024-10-09 22:16:52 +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
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 1920487 - QM: Rename helpers for resolving nsresult type; r=dom-storage-reviewers,jari 2024-10-04 16:57:02 +00:00
FileStreams.cpp
FileStreams.h
FileUtils.cpp
FileUtils.h
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 1866402 - Change all origin operations which uninit origins to return an array of origin metadata; r=dom-storage-reviewers,jari 2024-10-09 22:16:50 +00:00
GroupInfo.cpp
GroupInfo.h
GroupInfoPair.cpp
GroupInfoPair.h
HashKeys.h Bug 1866402 - Rename nsCStringHashKeyDM to nsCStringHashKeyWithDisabledMemmove; r=dom-storage-reviewers,jari 2024-10-09 22:16:51 +00:00
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
metrics.yaml Bug 1918226 - Use Glean APIs for dom.quota.try.error#step r=janv 2024-09-20 18:42:58 +00:00
moz.build Bug 1866402 - Move nsCStringHashKeyDM to a dedicated hash keys header file; r=dom-storage-reviewers,jari 2024-10-09 22:16:51 +00:00
MozPromiseUtils.h Bug 1866402 - QM: Generalize the helper for mapping MozPromise values to support both exclusive and non-exclusive promises; r=dom-storage-reviewers,jari 2024-10-09 22:16:49 +00:00
NormalOriginOperationBase.cpp
NormalOriginOperationBase.h Bug 1910848 - Encapsulate NormalOriginOperationBase::mCanceled; r=dom-storage-reviewers,jari 2024-08-07 07:53:11 +00:00
NotifyUtils.cpp Bug 1919428 - QM: Expose NotifyObserversOnMainThread to quota clients; r=dom-storage-reviewers,jari 2024-09-30 17:01:48 +00:00
NotifyUtils.h Bug 1917454 - Add a new testing only notification for client directory opening; r=dom-storage-reviewers,jari 2024-09-16 11:01:22 +00:00
NotifyUtilsCommon.cpp Bug 1919428 - QM: Expose NotifyObserversOnMainThread to quota clients; r=dom-storage-reviewers,jari 2024-09-30 17:01:48 +00:00
NotifyUtilsCommon.h Bug 1919428 - QM: Expose NotifyObserversOnMainThread to quota clients; r=dom-storage-reviewers,jari 2024-09-30 17:01:48 +00:00
nsIndexedDBProtocolHandler.cpp
nsIndexedDBProtocolHandler.h
nsIQuotaCallbacks.idl
nsIQuotaManagerService.idl Bug 1866402 - Add nsIQuotaManagerService::PersistentOriginInitialized and nsIQuotaManagerService::TemporaryOriginInitialized methods; r=dom-storage-reviewers,jari 2024-10-09 22:16:50 +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
NSSCipherStrategy.h
OriginInfo.cpp
OriginInfo.h
OriginOperationBase.cpp Bug 1910848 - Add support for pausing QM IO thread after finishing directory work; r=dom-storage-reviewers,hsingh,asuth 2024-08-07 07:53:15 +00:00
OriginOperationBase.h Bug 1910848 - Move BackgroundThreadObject to separate files; r=dom-storage-reviewers,jari 2024-08-07 07:53:13 +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 1866402 - Add UninitOrigins directory lock category and use it for directory locks which uninitialize origins; r=dom-storage-reviewers,jari 2024-10-09 22:16:52 +00:00
OriginOperations.h Bug 1866402 - Add nsIQuotaManagerService::PersistentOriginInitialized and nsIQuotaManagerService::TemporaryOriginInitialized methods; r=dom-storage-reviewers,jari 2024-10-09 22:16:50 +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 Bug 1866217 - Introduce PersistenceScope class à la OriginScope; r=dom-storage-reviewers,jari 2024-08-14 12:46:14 +00:00
PersistenceScope.cpp Bug 1913561 - Add support for initializing temporary storage to QuotaManager::OpenStorageDirectory; r=dom-storage-reviewers,jari 2024-10-06 22:04:46 +00:00
PersistenceScope.h Bug 1913561 - Add support for initializing temporary storage to QuotaManager::OpenStorageDirectory; r=dom-storage-reviewers,jari 2024-10-06 22:04:46 +00:00
PersistenceType.cpp
PersistenceType.h
PQuota.ipdl Bug 1866402 - Add nsIQuotaManagerService::PersistentOriginInitialized and nsIQuotaManagerService::TemporaryOriginInitialized methods; r=dom-storage-reviewers,jari 2024-10-09 22:16:50 +00:00
PQuotaRequest.ipdl Bug 1866402 - Rework QuotaManagerService::ResetStoragesForPrincipal to use an async message with an async response; r=dom-storage-reviewers,jari 2024-10-09 11:59:34 +00:00
PQuotaUsageRequest.ipdl Bug 1910848 - Switch PQuotaUsageRequest to non-virtual implementation; r=dom-storage-reviewers,asuth 2024-08-08 10:34:04 +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 1918226 - Use Glean APIs for dom.quota.try.error#step r=janv 2024-09-20 18:42:58 +00:00
QuotaCommon.h Bug 1910848 - Move BackgroundThreadObject to separate files; r=dom-storage-reviewers,jari 2024-08-07 07:53:13 +00:00
QuotaManager.h Bug 1866402 - Implement origin initialization status tracking on the owning thread; r=dom-storage-reviewers,jari 2024-10-09 22:16:52 +00:00
QuotaManagerImpl.h
QuotaManagerService.cpp Bug 1866402 - Add nsIQuotaManagerService::PersistentOriginInitialized and nsIQuotaManagerService::TemporaryOriginInitialized methods; r=dom-storage-reviewers,jari 2024-10-09 22:16:50 +00:00
QuotaManagerService.h
QuotaObject.cpp
QuotaObject.h
QuotaParent.cpp Bug 1866402 - Add nsIQuotaManagerService::PersistentOriginInitialized and nsIQuotaManagerService::TemporaryOriginInitialized methods; r=dom-storage-reviewers,jari 2024-10-09 22:16:50 +00:00
QuotaParent.h Bug 1866402 - Add nsIQuotaManagerService::PersistentOriginInitialized and nsIQuotaManagerService::TemporaryOriginInitialized methods; r=dom-storage-reviewers,jari 2024-10-09 22:16:50 +00:00
QuotaRequestBase.cpp Bug 1910848 - Pull out OriginOperationBase::mActorDestroyed to actor classes; r=dom-storage-reviewers,jari 2024-08-07 07:53:12 +00:00
QuotaRequestBase.h Bug 1910848 - Make PQuotaUsageRequest protocol refcounted; r=dom-storage-reviewers,jari 2024-08-07 07:53:12 +00:00
QuotaRequests.cpp Bug 1910848 - Switch PQuotaUsageRequest to non-virtual implementation; r=dom-storage-reviewers,asuth 2024-08-08 10:34:04 +00:00
QuotaRequests.h
QuotaResults.cpp
QuotaResults.h
QuotaUsageRequestChild.cpp Bug 1910848 - Switch PQuotaUsageRequest to non-virtual implementation; r=dom-storage-reviewers,asuth 2024-08-08 10:34:04 +00:00
QuotaUsageRequestChild.h Bug 1910848 - Switch PQuotaUsageRequest to non-virtual implementation; r=dom-storage-reviewers,asuth 2024-08-08 10:34:04 +00:00
QuotaUsageRequestParent.cpp Bug 1910848 - Switch PQuotaUsageRequest to non-virtual implementation; r=dom-storage-reviewers,asuth 2024-08-08 10:34:04 +00:00
QuotaUsageRequestParent.h Bug 1910848 - Switch PQuotaUsageRequest to non-virtual implementation; r=dom-storage-reviewers,asuth 2024-08-08 10:34:04 +00:00
RemoteQuotaObject.cpp
RemoteQuotaObject.h
RemoteQuotaObjectChild.cpp
RemoteQuotaObjectChild.h
RemoteQuotaObjectParent.cpp
RemoteQuotaObjectParent.h
RemoteQuotaObjectParentTracker.h
RemoveParen.h
ResolvableNormalOriginOp.h Bug 1910848 - Make it possible to use ResolvableNormalOriginOp with move-only types; r=dom-storage-reviewers,jari 2024-08-07 07:53:14 +00:00
ResultExtensions.h
SanitizationUtils.cpp
SanitizationUtils.h
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 1915419 - CSSCacheCleaner, JSCacheCleaner support for OriginAttributesPattern. r=emilio,anti-tracking-reviewers,timhuang 2024-09-24 09:17:59 +00:00
StorageHelpers.cpp
StorageHelpers.h
StorageManager.cpp Bug 1915228 - Remove expired telemetry scalars navigator.storage.estimate_count and navigator.storage.persist_count, r=chutten. 2024-08-28 19:44:31 +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
StreamUtils.h
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 1919428 - QM: Add mozilla::dom::quota::SleepIfEnabled helper; r=dom-storage-reviewers,jari 2024-09-30 17:01:48 +00:00
ThreadUtils.h Bug 1919428 - QM: Add mozilla::dom::quota::SleepIfEnabled helper; r=dom-storage-reviewers,jari 2024-09-30 17:01:48 +00:00
UsageInfo.h