DescriptionMove ServiceWorkerCache backend creation to a lazy init function.
Previously the ServiceWorkerCacheStorage called ServiceWorkerCache::CreateBackend on Get() and Create(). Now the ServiceWorkerCache does it itself lazily. This is simpler for the ServiceWorkerCache's caller and should improve performance as backends are created only when needed. This makes the downstream refcounting CL simpler.
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
Committed: https://crrev.com/655e378c7d9d07b3937967c428fd51353e154d53
Cr-Commit-Position: refs/heads/master@{#294372}
Patch Set 1 #Patch Set 2 : Nits #
Total comments: 2
Patch Set 3 : Rebase #Patch Set 4 : Hold onto blob data handle #Patch Set 5 : Rebase #
Messages
Total messages: 11 (3 generated)
|