Decouple script URL from ServiceWorkerRegistration
commit9f2188e301af9fdaf1454703b610234413134361
authorfalken <falken@chromium.org>
Tue, 26 Aug 2014 11:09:11 +0000 (26 04:09 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 26 Aug 2014 11:10:18 +0000 (26 11:10 +0000)
tree9775955a9e1a433c0ac007e76ce4b0f4e74c4aa8
parent0fa0ac6aff583bb878649490cf98d40be7522a33
Decouple script URL from ServiceWorkerRegistration

Before this patch, ServiceWorkerRegistration had a constant
script URL.
The spec has a different model: .installing, .waiting, and .active
workers for the same registration can be from different script URLs.

This patch removes script_url from SWRegistration, in preparation
for implementing the spec steps for same-scope, new-script-url
registration.

BUG=398355

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

Cr-Commit-Position: refs/heads/master@{#291882}
25 files changed:
content/browser/resources/service_worker/serviceworker_internals.html
content/browser/resources/service_worker/serviceworker_internals.js
content/browser/service_worker/service_worker_browsertest.cc
content/browser/service_worker/service_worker_context_request_handler_unittest.cc
content/browser/service_worker/service_worker_context_wrapper.cc
content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc
content/browser/service_worker/service_worker_database.h
content/browser/service_worker/service_worker_handle.cc
content/browser/service_worker/service_worker_handle_unittest.cc
content/browser/service_worker/service_worker_info.cc
content/browser/service_worker/service_worker_info.h
content/browser/service_worker/service_worker_internals_ui.cc
content/browser/service_worker/service_worker_job_coordinator.cc
content/browser/service_worker/service_worker_job_unittest.cc
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_registration.cc
content/browser/service_worker/service_worker_registration.h
content/browser/service_worker/service_worker_registration_unittest.cc
content/browser/service_worker/service_worker_storage.cc
content/browser/service_worker/service_worker_storage_unittest.cc
content/browser/service_worker/service_worker_url_request_job_unittest.cc
content/browser/service_worker/service_worker_version.cc
content/browser/service_worker/service_worker_version.h
content/browser/service_worker/service_worker_version_unittest.cc