Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: content/browser/service_worker/service_worker_dispatcher_host.cc

Issue 2787883003: [ServiceWorker] Add EmbeddedWorkerInstanceHost Interface. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/service_worker/service_worker_dispatcher_host.cc
diff --git a/content/browser/service_worker/service_worker_dispatcher_host.cc b/content/browser/service_worker/service_worker_dispatcher_host.cc
index d8a667c555454f71233e43c56697639dbaf8ceb1..70729b5a25cc97451eb7e742463d499b7564bcdf 100644
--- a/content/browser/service_worker/service_worker_dispatcher_host.cc
+++ b/content/browser/service_worker/service_worker_dispatcher_host.cc
@@ -180,8 +180,6 @@ bool ServiceWorkerDispatcherHost::OnMessageReceived(
OnGetRegistrationForReady)
IPC_MESSAGE_HANDLER(ServiceWorkerHostMsg_PostMessageToWorker,
OnPostMessageToWorker)
- IPC_MESSAGE_HANDLER(EmbeddedWorkerHostMsg_WorkerReadyForInspection,
- OnWorkerReadyForInspection)
IPC_MESSAGE_HANDLER(EmbeddedWorkerHostMsg_WorkerScriptLoaded,
OnWorkerScriptLoaded)
IPC_MESSAGE_HANDLER(EmbeddedWorkerHostMsg_WorkerThreadStarted,
@@ -1355,18 +1353,6 @@ void ServiceWorkerDispatcherHost::UpdateComplete(
Send(new ServiceWorkerMsg_ServiceWorkerUpdated(thread_id, request_id));
}
-void ServiceWorkerDispatcherHost::OnWorkerReadyForInspection(
- int embedded_worker_id) {
- TRACE_EVENT0("ServiceWorker",
- "ServiceWorkerDispatcherHost::OnWorkerReadyForInspection");
- if (!GetContext())
- return;
- EmbeddedWorkerRegistry* registry = GetContext()->embedded_worker_registry();
- if (!registry->CanHandle(embedded_worker_id))
- return;
- registry->OnWorkerReadyForInspection(render_process_id_, embedded_worker_id);
-}
-
void ServiceWorkerDispatcherHost::OnWorkerScriptLoaded(int embedded_worker_id) {
TRACE_EVENT0("ServiceWorker",
"ServiceWorkerDispatcherHost::OnWorkerScriptLoaded");

Powered by Google App Engine
This is Rietveld 408576698