Decouple Cache Storage messaging from Service Worker/Embedded Worker
commitabadb9bf3f02e61f3543ea62ade29a009b18e654
authorjsbell <jsbell@chromium.org>
Mon, 23 Mar 2015 21:03:44 +0000 (23 14:03 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 23 Mar 2015 21:04:54 +0000 (23 21:04 +0000)
tree910c890c554e4ac104593011922a1c27dfaf7ec6
parent3f04f1b92b7b490cd9ae9537dbc7b975ce38a572
Decouple Cache Storage messaging from Service Worker/Embedded Worker

We plan to expose the Cache Storage API independent of Service Worker.
Tease the IPC message routing off of Service Worker and Embedded
Worker, mirroring the other context-independent storage APIs. With
this CL the browser side is independent but the renderer side entry
point is still only available to the SW's context. Files have been
left in the content/*/service_worker/ directories for now; follow-ups
will shorten the names and move them to dedicated directories.

BUG=439389

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

Cr-Commit-Position: refs/heads/master@{#321847}
38 files changed:
content/browser/renderer_host/render_process_host_impl.cc
content/browser/service_worker/cache_storage_context_impl.cc [new file with mode: 0644]
content/browser/service_worker/cache_storage_context_impl.h [new file with mode: 0644]
content/browser/service_worker/cache_storage_dispatcher_host.cc [new file with mode: 0644]
content/browser/service_worker/cache_storage_dispatcher_host.h [new file with mode: 0644]
content/browser/service_worker/embedded_worker_test_helper.cc
content/browser/service_worker/service_worker_cache_listener.cc
content/browser/service_worker/service_worker_cache_listener.h
content/browser/service_worker/service_worker_context_core.cc
content/browser/service_worker/service_worker_context_core.h
content/browser/service_worker/service_worker_context_wrapper.cc
content/browser/service_worker/service_worker_context_wrapper.h
content/browser/service_worker/service_worker_registration_unittest.cc
content/browser/service_worker/service_worker_storage_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
content/browser/storage_partition_impl.cc
content/browser/storage_partition_impl.h
content/browser/storage_partition_impl_map.cc
content/common/content_message_generator.h
content/common/service_worker/cache_storage_messages.h [new file with mode: 0644]
content/common/service_worker/service_worker_messages.h
content/content_browser.gypi
content/content_common.gypi
content/content_renderer.gypi
content/renderer/render_thread_impl.cc
content/renderer/render_thread_impl.h
content/renderer/service_worker/cache_storage_message_filter.cc [new file with mode: 0644]
content/renderer/service_worker/cache_storage_message_filter.h [new file with mode: 0644]
content/renderer/service_worker/embedded_worker_context_client.h
content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc
content/renderer/service_worker/service_worker_cache_storage_dispatcher.h
content/renderer/service_worker/service_worker_script_context.cc
content/renderer/service_worker/service_worker_script_context.h
content/renderer/service_worker/webserviceworkercachestorage_impl.cc [new file with mode: 0644]
content/renderer/service_worker/webserviceworkercachestorage_impl.h [new file with mode: 0644]
ipc/ipc_message_start.h