Creates CacheContext for ServiceWorkerCacheStorage.
Creates CacheContext which the CacheStorage uses to keep track of Cache metadata rather than sticking it in the ServiceWorkerCache where it doesn't belong. The CacheContext will be used in a downstream CL to keep reference count information for each cache. This CL also changes the CacheMap from an IDMap to a std::map with our own id counting. This lets us change to int64 from int32 as well as helps the transition to reference counting the caches. Some other upcoming CLs affecting CacheStorage: * Reference count CacheContext so that the deletion of javascript objects can delete the ServiceWorkerCache * Make the callbacks in ServiceWorkerCacheStorage unnamed functions that don't require weak pointers. * Change the CacheID to int64. BUG=392621 Review URL: https://codereview.chromium.org/503823002 Cr-Commit-Position: refs/heads/master@{#291906}
Showing
This diff is collapsed.
Please register or sign in to comment