Move Service Worker %2f path validation logic from browser into Blink (1)
commit86e6e3346b35b06badaaa0c7e4edc14151bf5c10
authorjeremyarcher <jeremyarcher@google.com>
Fri, 7 Aug 2015 03:05:19 +0000 (6 20:05 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 7 Aug 2015 03:06:19 +0000 (7 03:06 +0000)
tree2a130016a20594ff88731e0af49c875c64e29087
parent1283bbebbe905dd2c57866c6dd82061d6a655f1f
Move Service Worker %2f path validation logic from browser into Blink (1)

This patch adds an interface by which the path validation logic can be
kept in Chromium but called from within Blink. It will be eventually
used to ensure that navigator.serviceWorker.register() rejects with a
TypeError instead of a DOMException (see spec).

1. (Chromium) This CL.
2. (Blink) https://codereview.chromium.org/1260003003/
3. (Chromium) https://codereview.chromium.org/1256833004/

BUG=513622
R=nhiroki,falken

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

Cr-Commit-Position: refs/heads/master@{#342279}
26 files changed:
content/browser/navigator_connect/navigator_connect_service_worker_service_factory.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.cc
content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc
content/browser/service_worker/service_worker_dispatcher_host.cc
content/browser/service_worker/service_worker_provider_host.cc
content/browser/service_worker/service_worker_register_job.cc
content/browser/service_worker/service_worker_registration.cc
content/browser/service_worker/service_worker_request_handler.cc
content/browser/service_worker/service_worker_request_handler_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_unregister_job.cc
content/browser/service_worker/service_worker_version.cc
content/browser/service_worker/service_worker_version_unittest.cc
content/browser/service_worker/service_worker_write_to_cache_job.cc
content/browser/service_worker/service_worker_write_to_cache_job_unittest.cc
content/child/service_worker/web_service_worker_provider_impl.cc
content/child/service_worker/web_service_worker_provider_impl.h
content/common/service_worker/service_worker_utils.cc [moved from content/browser/service_worker/service_worker_utils.cc with 98% similarity]
content/common/service_worker/service_worker_utils.h [moved from content/browser/service_worker/service_worker_utils.h with 90% similarity]
content/common/service_worker/service_worker_utils_unittest.cc [moved from content/browser/service_worker/service_worker_utils_unittest.cc with 56% similarity]
content/content_browser.gypi
content/content_common.gypi
content/content_tests.gypi