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, |