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

Unified Diff: content/common/service_worker/embedded_worker_messages.h

Issue 489253002: Allow the browser to Send messages to an embedded worker once the script as been loaded without hav… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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/common/service_worker/embedded_worker_messages.h
diff --git a/content/common/service_worker/embedded_worker_messages.h b/content/common/service_worker/embedded_worker_messages.h
index d722eb9e219e392bd7a9e0bf3d4435f850168446..d2545c4761da4b354a99e4390f1d9d50add88d0f 100644
--- a/content/common/service_worker/embedded_worker_messages.h
+++ b/content/common/service_worker/embedded_worker_messages.h
@@ -63,8 +63,9 @@ IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerReadyForInspection,
// Renderer -> Browser message to indicate that the worker has loadedd the
// script.
-IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerScriptLoaded,
- int /* embedded_worker_id */)
+IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerScriptLoaded,
+ int /* embedded_worker_id */,
+ int /* thread_id */)
// Renderer -> Browser message to indicate that the worker has failed to load
// the script.
@@ -72,8 +73,7 @@ IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerScriptLoadFailed,
int /* embedded_worker_id */)
// Renderer -> Browser message to indicate that the worker is started.
-IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerStarted,
- int /* thread_id */,
+IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStarted,
int /* embedded_worker_id */)
// Renderer -> Browser message to indicate that the worker is stopped.

Powered by Google App Engine
This is Rietveld 408576698