-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move all CacheStorageConnection callbacks to NativePromise
https://bugs.webkit.org/show_bug.cgi?id=274726 rdar://128755510 Reviewed by Jean-Yves Avenard and Sihui Liu. We move from completion handlers to native promise as a simplification. We introduce a new enqueueTaskWhenSettled version that can take completion handler and a finalizer. Covered by existing tests. * Source/WebCore/Modules/cache/CacheStorageConnection.h: (WebCore::CacheStorageConnection::clearMemoryRepresentation): (WebCore::CacheStorageConnection::engineRepresentation): * Source/WebCore/Modules/cache/DOMCache.cpp: (WebCore::DOMCache::queryCache): (WebCore::DOMCache::batchDeleteOperation): (WebCore::DOMCache::batchPutOperation): * Source/WebCore/Modules/cache/DOMCacheEngine.h: * Source/WebCore/Modules/cache/DOMCacheStorage.cpp: (WebCore::DOMCacheStorage::retrieveCaches): (WebCore::DOMCacheStorage::doOpen): (WebCore::DOMCacheStorage::doRemove): * Source/WebCore/Modules/cache/WorkerCacheStorageConnection.cpp: (WebCore::WorkerCacheStorageConnection::retrieveCaches): (WebCore::WorkerCacheStorageConnection::retrieveRecords): (WebCore::WorkerCacheStorageConnection::batchDeleteOperation): (WebCore::WorkerCacheStorageConnection::batchPutOperation): (WebCore::WorkerCacheStorageConnection::retrieveCachesCompleted): Deleted. (WebCore::WorkerCacheStorageConnection::retrieveRecordsCompleted): Deleted. (WebCore::WorkerCacheStorageConnection::deleteRecordsCompleted): Deleted. (WebCore::WorkerCacheStorageConnection::putRecordsCompleted): Deleted. (WebCore::WorkerCacheStorageConnection::clearPendingRequests): Deleted. * Source/WebCore/Modules/cache/WorkerCacheStorageConnection.h: * Source/WebCore/dom/ScriptExecutionContext.h: (WebCore::ScriptExecutionContext::enqueueTaskWhenSettled): * Source/WebCore/page/CacheStorageProvider.h: * Source/WebCore/testing/Internals.cpp: (WebCore::Internals::clearCacheStorageMemoryRepresentation): (WebCore::Internals::cacheStorageEngineRepresentation): * Source/WebCore/workers/WorkerGlobalScope.cpp: (WebCore::WorkerGlobalScope::prepareForDestruction): * Source/WebKit/WebProcess/Cache/WebCacheStorageConnection.cpp: (WebKit::WebCacheStorageConnection::retrieveCaches): (WebKit::WebCacheStorageConnection::retrieveRecords): (WebKit::WebCacheStorageConnection::batchDeleteOperation): (WebKit::WebCacheStorageConnection::batchPutOperation): (WebKit::WebCacheStorageConnection::clearMemoryRepresentation): (WebKit::WebCacheStorageConnection::engineRepresentation): * Source/WebKit/WebProcess/Cache/WebCacheStorageConnection.h: Canonical link: https://commits.webkit.org/279505@main
- Loading branch information
Showing
12 changed files
with
128 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.