Description[ServiceWorkerCache] Call QuotaManager::NotifyStorageModified from Cache.
With this call the quota manager can delete origins modified in the last X hours.
Changes:
* Plumb origin and QuotaManagerProxy through to ServiceWorkerCache.
* Call NotifyStorageModified on SWCache::Put() and SWCache::Delete() with the delta being the number of content bytes written (not including caching structure overhead).
* Update the tests to use a MockQuotaManagerProxy instead of passing a nullptr.
Upstream of: https://codereview.chromium.org/672943002
BUG=420159
Committed: https://crrev.com/6cb43f40df3f3cf12bcecb20d713d6f5a5c894d6
Cr-Commit-Position: refs/heads/master@{#301086}
Patch Set 1 #Patch Set 2 : Nits #Patch Set 3 : Rebase #Patch Set 4 : Allow null quota mgr #Patch Set 5 : Fix refptr check #Messages
Total messages: 7 (2 generated)
|