DescriptionServiceWorker: Use SimpleCache for the script cache
This CL migrates the backend of ServiceWorkerDiskCache from Default to
SimpleCache on all platforms.
If old DiskCache images exist,
(1) DiskCache backend fails to open an pre-existing data due to incompatible
format (in both Default->SimpleCache and SimpleCache->Default cases),
(2) ServiceWorkerStorage wipes out all cached scripts and registrations via
DeleteAndStartOver, and
(3) navigation falls back to network.
BUG=487482
TEST=manual (use DiskCache and SimpleCache alternately and make sure the system can recover)
Committed: https://crrev.com/a00e5be5a06e626de1b62cbfc7c350bef08647ea
Cr-Commit-Position: refs/heads/master@{#330274}
Patch Set 1 #Patch Set 2 : Avoid using BackendType enum (see https://codereview.chromium.org/332833004/#msg2) #Patch Set 3 : fix build failure on android #
Total comments: 4
Patch Set 4 : fix for review comments #
Total comments: 4
Patch Set 5 : use delegated ctor #Patch Set 6 : [PLEASE REVIEW PS5] FOR TRY #Patch Set 7 : rebase #
Messages
Total messages: 28 (10 generated)
|