Introduce mojo::ControllerServiceWorker and let SubresourceLoader use it
This is a preparation patch for direct renderer-renderer communication.
- Introduce mojom::ControllerServiceWorker, which is basically a subset
of ServiceWorkerEventDispatcher. Make relevant refactoring around it.
- Make BrowserSideServiceWorkerEventDispatcher implement
ControllerServiceWorker (instead of EventDispatcher), and rename it
to BrowserSideControllerServiceWorker
- Introduce mojom::ServiceWorkerContainerHost::
GetControllerServiceWorker() and let SubresourceLoader use it
- Introduce ControllerServiceWorkerConnector, which hides the
connection details so that SubresourceLoader can transparently get
the ControllerServiceWorker even after the connection is dropped
Bug: 715640, 755836
Change-Id: I37c5bd231a0d0da3138923427b1a859167a46093
Reviewed-on: https://chromium-review.googlesource.com/640652
Reviewed-by: Tom Sepez <[email protected]>
Reviewed-by: Matt Falkenhagen <[email protected]>
Reviewed-by: Makoto Shimazu <[email protected]>
Commit-Queue: Kinuko Yasuda <[email protected]>
Cr-Commit-Position: refs/heads/master@{#501990}
diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn
index 7af2978..7fa82f9 100644
--- a/content/browser/BUILD.gn
+++ b/content/browser/BUILD.gn
@@ -1404,8 +1404,8 @@
"service_manager/common_browser_interfaces.h",
"service_manager/service_manager_context.cc",
"service_manager/service_manager_context.h",
- "service_worker/browser_side_service_worker_event_dispatcher.cc",
- "service_worker/browser_side_service_worker_event_dispatcher.h",
+ "service_worker/browser_side_controller_service_worker.cc",
+ "service_worker/browser_side_controller_service_worker.h",
"service_worker/embedded_worker_instance.cc",
"service_worker/embedded_worker_instance.h",
"service_worker/embedded_worker_registry.cc",