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

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

Issue 1701843002: ServiceWorker: Implement 'source' and 'origin' attributes of ExtendableMessageEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_focus_into_utils
Patch Set: fix oilpan build Created 4 years, 10 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 2bd68cddea784fac88f71b022b2be7ca5cd31089..0613d6b55743a855f57fdfdf47c9cf637b47844c 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)
@@ -183,9 +188,10 @@ IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetRegistrationForReady,
int /* provider_id */)
// Sends ExtendableMessageEvent to a service worker (renderer->browser).
-IPC_MESSAGE_CONTROL3(
+IPC_MESSAGE_CONTROL4(
ServiceWorkerHostMsg_PostMessageToWorker,
int /* handle_id */,
+ int /* provider_id */,
base::string16 /* message */,
std::vector<content::TransferredMessagePort> /* sent_message_ports */)
@@ -467,12 +473,13 @@ IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent,
int /* request_id */)
IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent,
int /* request_id */)
-IPC_MESSAGE_CONTROL4(
+IPC_MESSAGE_CONTROL5(
ServiceWorkerMsg_ExtendableMessageEvent,
int /* request_id */,
base::string16 /* message */,
std::vector<content::TransferredMessagePort> /* sent_message_ports */,
- std::vector<int> /* new_routing_ids */)
+ std::vector<int> /* new_routing_ids */,
+ content::ExtendableMessageEventSource)
IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent,
int /* request_id */,
content::ServiceWorkerFetchRequest)

Powered by Google App Engine
This is Rietveld 408576698