CacheStorage: Keep used CacheStorage blink objects alive.
In crrev.com/c/1321209 for crbug.com/902488 we made cache_storage hold backend disk_cache objects open as long as the blink CacheStorage object is in existence. The idea was that if a context has used cache_storage once it is likely to do so again. It turns out, however, that the blink CacheStorage object is often garbage collected before the context is destroyed. This makes our logic to keep backends warmed less effective. This CL fixes the problem by implementing HasPendingActivity() to keep the CacheStorage blink objects that have been used alive until the context is destroyed. This also allows us to remove a number of explicit CacheStorage references held by Cache and during operations. Bug: 947512 Change-Id: Iee1fa152ec597038e7c90030e9861a2814e0579c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1545932 Commit-Queue: Ben Kelly <wanderview@chromium.org> Reviewed-by:Daniel Murphy <dmurph@chromium.org> Cr-Commit-Position: refs/heads/master@{#646447}
Showing
Please register or sign in to comment