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

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

Issue 189253002: Implement ServiceWorker::postMessage() [Chromium] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename message handler per review feedback Created 6 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/common/service_worker/service_worker_messages.h
diff --git a/content/common/service_worker/service_worker_messages.h b/content/common/service_worker/service_worker_messages.h
index 135761f9a21049f9ef480de9ae1c2b22a618a28f..c4af2717f2e3c8a3c08641a5fb6953717727df70 100644
--- a/content/common/service_worker/service_worker_messages.h
+++ b/content/common/service_worker/service_worker_messages.h
@@ -49,6 +49,12 @@ IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_UnregisterServiceWorker,
int32 /* request_id */,
GURL /* scope (url pattern) */)
+// Sends a 'message' event to a service worker (renderer->browser).
+IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_PostMessage,
+ int64 /* registration_id */,
+ base::string16 /* message */,
+ std::vector<int> /* sent_message_port_ids */)
+
// Messages sent from the browser to the child process.
// Response to ServiceWorkerMsg_RegisterServiceWorker
@@ -78,6 +84,12 @@ IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent,
IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_FetchEvent,
content::ServiceWorkerFetchRequest)
+// Sends a 'message' event to a service worker (browser->EmbeddedWorker).
+IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_Message,
+ base::string16 /* message */,
+ std::vector<int> /* sent_message_port_ids */,
+ std::vector<int> /* new_routing_ids */)
+
// Informs the browser of a new ServiceWorkerProvider in the child process,
// |provider_id| is unique within its child process.
IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated,
« no previous file with comments | « content/child/webmessageportchannel_impl.cc ('k') | content/renderer/service_worker/embedded_worker_context_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698