[ServiceWorker] Add EmbeddedWorkerInstanceHost Interface

Desktop / Chromium - leon.han [intel.com] - 15 April 2017 23:25 EDT

This CL converts these IPCs EmbeddedWorkerHostMsg_WorkerReadyForInspection EmbeddedWorkerHostMsg_WorkerScriptLoaded EmbeddedWorkerHostMsg_WorkerScriptLoadFailed EmbeddedWorkerHostMsg_WorkerScriptEvaluated EmbeddedWorkerHostMsg_WorkerStarted EmbeddedWorkerHostMsg_WorkerStopped EmbeddedWorkerHostMsg_ReportException EmbeddedWorkerHostMsg_ReportConsoleMessage EmbeddedWorkerHostMsg_WorkerThreadStarted into mojo interface EmbeddedWorkerInstanceHost, and associate it with existing interface EmbeddedWorkerInstanceClient.

BUG=629701 TEST=content_unittests

Review-Url: https://codereview.chromium.org/2787883003 Cr-Commit-Position: refs/heads/master@{#464878}

7a57143 [ServiceWorker] Add EmbeddedWorkerInstanceHost Interface.
.../payments/payment_app_content_unittest_base.cc | 17 +--
.../service_worker/embedded_worker_instance.cc | 62 ++++++---
.../service_worker/embedded_worker_instance.h | 77 +++++------
.../embedded_worker_instance_unittest.cc | 37 +++--
.../service_worker/embedded_worker_registry.cc | 103 +-------------
.../service_worker/embedded_worker_registry.h | 32 +----
.../service_worker/embedded_worker_test_helper.cc | 84 +++++++----
.../service_worker/embedded_worker_test_helper.h | 34 +++--
.../service_worker_context_unittest.cc | 14 +-
...e_worker_controllee_request_handler_unittest.cc | 17 ---
.../service_worker_dispatcher_host.cc | 153 ---------------------
.../service_worker_dispatcher_host.h | 18 ---
.../service_worker_dispatcher_host_unittest.cc | 21 +--
.../service_worker/service_worker_job_unittest.cc | 81 ++++++-----
.../service_worker_version_unittest.cc | 64 +++++----
.../common/service_worker/embedded_worker.mojom | 47 ++++++-
.../service_worker/embedded_worker_messages.h | 64 ---------
content/renderer/BUILD.gn | 2 -
content/renderer/render_thread_impl.cc | 8 +-
content/renderer/render_thread_impl.h | 6 -
.../service_worker/embedded_worker_dispatcher.cc | 129 -----------------
.../service_worker/embedded_worker_dispatcher.h | 87 ------------
.../embedded_worker_instance_client_impl.cc | 106 ++++++++------
.../embedded_worker_instance_client_impl.h | 58 ++++++--
.../service_worker_context_client.cc | 89 ++++++------
.../service_worker/service_worker_context_client.h | 6 +
26 files changed, 499 insertions(+), 917 deletions(-)

Upstream: git.chromium.org


  • Share