DescriptionCreates 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
Committed: https://crrev.com/098fdfb498f69caee3c83b2f8ee21b085f758731
Cr-Commit-Position: refs/heads/master@{#291906}
Patch Set 1 #Patch Set 2 : New test and memory fix #Patch Set 3 : Nits and comments #Patch Set 4 : Rebase #
Total comments: 14
Patch Set 5 : Rebase #Patch Set 6 : Addresses comments from PS4 #
Messages
Total messages: 9 (0 generated)
|