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 c6ccfefbda68fe868b167b4ab6a1f00deaaf81bf..d2f1e64ab25ad26736d87c55d83209d9ed5e67cd 100644 |
--- a/content/common/service_worker/service_worker_messages.h |
+++ b/content/common/service_worker/service_worker_messages.h |
@@ -55,6 +55,11 @@ IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerProviderType, |
IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerFetchType, |
content::ServiceWorkerFetchType::LAST) |
+IPC_STRUCT_TRAITS_BEGIN(content::ExtendableMessageEventSource) |
+ IPC_STRUCT_TRAITS_MEMBER(client_info) |
+ IPC_STRUCT_TRAITS_MEMBER(service_worker_info) |
+IPC_STRUCT_TRAITS_END() |
+ |
IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest) |
IPC_STRUCT_TRAITS_MEMBER(mode) |
IPC_STRUCT_TRAITS_MEMBER(is_main_resource_load) |
@@ -122,6 +127,14 @@ IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientQueryOptions) |
IPC_STRUCT_TRAITS_MEMBER(include_uncontrolled) |
IPC_STRUCT_TRAITS_END() |
+IPC_STRUCT_BEGIN(ServiceWorkerMsg_ExtendableMessageEvent_Params) |
+ IPC_STRUCT_MEMBER(base::string16, message) |
+ IPC_STRUCT_MEMBER(url::Origin, source_origin) |
+ IPC_STRUCT_MEMBER(std::vector<content::TransferredMessagePort>, message_ports) |
+ IPC_STRUCT_MEMBER(std::vector<int>, new_routing_ids) |
+ IPC_STRUCT_MEMBER(content::ExtendableMessageEventSource, source) |
+IPC_STRUCT_END() |
+ |
IPC_STRUCT_BEGIN(ServiceWorkerMsg_MessageToDocument_Params) |
IPC_STRUCT_MEMBER(int, thread_id) |
IPC_STRUCT_MEMBER(int, provider_id) |
@@ -184,10 +197,12 @@ IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetRegistrationForReady, |
int /* provider_id */) |
// Sends ExtendableMessageEvent to a service worker (renderer->browser). |
-IPC_MESSAGE_CONTROL3( |
+IPC_MESSAGE_CONTROL5( |
ServiceWorkerHostMsg_PostMessageToWorker, |
int /* handle_id */, |
+ int /* provider_id */, |
base::string16 /* message */, |
+ url::Origin /* source_origin */, |
std::vector<content::TransferredMessagePort> /* sent_message_ports */) |
// Sends MessageEvent to a service worker (renderer->browser). |
@@ -468,12 +483,9 @@ IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, |
int /* request_id */) |
IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, |
int /* request_id */) |
-IPC_MESSAGE_CONTROL4( |
- ServiceWorkerMsg_ExtendableMessageEvent, |
- int /* request_id */, |
- base::string16 /* message */, |
- std::vector<content::TransferredMessagePort> /* sent_message_ports */, |
- std::vector<int> /* new_routing_ids */) |
+IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ExtendableMessageEvent, |
+ int /* request_id */, |
+ ServiceWorkerMsg_ExtendableMessageEvent_Params) |
IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, |
int /* request_id */, |
content::ServiceWorkerFetchRequest) |