Update ServiceWorkerProviderHost when the pending version changes
commit2b9e5521c04dfef543b85da240dc7bc16f357dd9
authorfalken@chromium.org <falken@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 16 Apr 2014 09:49:09 +0000 (16 09:49 +0000)
committerfalken@chromium.org <falken@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 16 Apr 2014 09:49:09 +0000 (16 09:49 +0000)
treeb4546a38dcc6c7b98064901840934684a3afa33b
parent3716e1097a3efe07234f35627c5271e813a0015e
Update ServiceWorkerProviderHost when the pending version changes

When ServiceWorkerRegisterJob changes a registration's pending version, iterate
over all existing ServiceWorkerProviderHost and update their pending version,
if they are in-scope for the registration. This will enable documents to have
an up-to-date navigator.serviceWorker.pending object, but that is not yet
implemented (and will probably be renamed to next or installing).

BUG=361565

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264164 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/service_worker/service_worker_context_core.cc
content/browser/service_worker/service_worker_context_core.h
content/browser/service_worker/service_worker_provider_host.cc
content/browser/service_worker/service_worker_provider_host.h
content/browser/service_worker/service_worker_provider_host_unittest.cc
content/browser/service_worker/service_worker_register_job.cc
content/browser/service_worker/service_worker_register_job.h