• nhiroki's avatar
    ServiceWorker: Use SimpleCache for the script cache · a00e5be5
    nhiroki authored
    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)
    
    Review URL: https://codereview.chromium.org/1140853002
    
    Cr-Commit-Position: refs/heads/master@{#330274}
    a00e5be5
appcache_disk_cache.h 3.67 KB