Service Worker: Delay stale resource cleanup
Before this patch, we eagerly cleaned up purgeable resources when the
ServiceWorkerStorage object is initialized, which could result in an IO
flurry at browser startup. This patch:
- Cleans up uncommitted resources (not just purgeable resources) left
over from the last browser session
- Performs that cleanup lazily, when a mutation of the
purgeable or uncommitted resources is about to occur
BUG=388095
Review URL: https://codereview.chromium.org/
374873002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282035 0039d316-1c4b-4281-b951-d872f2087c98