DescriptionMake ServiceWorkerCacheStorage::CacheLoader::LoadCache synchronous
The CacheLoader has two functions for creating a cache:
1. LoadCache -- mkdir the cache directory and load the cache into memory
2. CreateCache -- rm -rf the directory and then call LoadCache
This CL:
1. Makes LoadCache synchronous by moving the mkdir to CreateCache (in case of loading an existing cache the mkdir was unnecessary)
2. Deletes a bunch of async code
3. Renames LoadCache to CreateServiceWorkerCache
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/43027f011bbc299acd7c4b67a9307ac9512e1df3
Cr-Commit-Position: refs/heads/master@{#294377}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Rebase #Patch Set 3 : Rebase #Patch Set 4 : Update comment and remove NULL check that can now only happen if out of memory #Patch Set 5 : Rebase #
Messages
Total messages: 8 (2 generated)
|