Store the service worker script and its imports on first load, read them on subsequen...
commitf1651c4ad1f7cb6d3206882c7587a64c67343426
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 23 May 2014 06:59:05 +0000 (23 06:59 +0000)
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 23 May 2014 06:59:05 +0000 (23 06:59 +0000)
treec609b22c5e3d4ad975f24b082cf754b71121f6b7
parent130f11a912bf20058895d643598e4b640eeedb3a
Store the service worker script and its imports on first load, read them on subsequent loads. The list of resource ids is stored with registration data. As registrations are deleted the old resources are also deleted.

BUG=364247,364318

Review URL: https://codereview.chromium.org/293483002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272418 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/service_worker/service_worker_database.cc
content/browser/service_worker/service_worker_database.h
content/browser/service_worker/service_worker_database_unittest.cc
content/browser/service_worker/service_worker_disk_cache.h
content/browser/service_worker/service_worker_register_job.cc
content/browser/service_worker/service_worker_script_cache_map.cc
content/browser/service_worker/service_worker_storage.cc
content/browser/service_worker/service_worker_storage.h
content/browser/service_worker/service_worker_storage_unittest.cc