Expose ServiceWorkerCache objects to ServiceWorkerCacheStorageManager clients.
The CL provides reference counted ServiceWorkerCaches on ServiceWorkerCacheStorage::Get and Create. Previously only CacheIDs were provided from those functions and there was no way for the client to access the ServiceWorkerCache itself. This CL makes the following modifications: 1. Make ServiceWorkerCache refcounted 2. Return ServiceWorkerCache* instead of a CacheID from Create() and Put() 3. Removed CacheID from ServiceWorkerCache 4. Removed CacheContext from ServiceWorkerCache (since it really only existed to hold a CacheID) 5. Now keeps track of CacheIDs in ServiceWorkerCacheListener 6. Added memory unit tests Related CLs: 1. https://crrev.com/542703002: Change ownership of the parameters to ServiceWorkerCache:: Put and Match. 2. https://crrev.com/545533002: Move ServiceWorkerCache backend creation to a lazy init function. 3. https://crrev.com/548533002: Make ServiceWorkerCacheStorage::CacheLoader::LoadCache synchronous * 4. https://crrev.com/549493002: Expose ServiceWorkerCache objects to ServiceWorkerCacheStorageManager clients. BUG=392621 Review URL: https://codereview.chromium.org/549493002 Cr-Commit-Position: refs/heads/master@{#294392}
Showing
This diff is collapsed.
Please register or sign in to comment