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

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

Issue 668303004: WIP DO NOT COMMIT chromium side of navigator.connect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years 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 476f39a2939ae859b6ea587638b4dfe22d82e8da..0769ad73cb1138be7315ba366f367ade957ca44f 100644
--- a/content/common/service_worker/service_worker_messages.h
+++ b/content/common/service_worker/service_worker_messages.h
@@ -108,6 +108,11 @@ IPC_ENUM_TRAITS_MAX_VALUE(
IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType,
blink::WebGeofencingEventTypeLast)
+IPC_STRUCT_TRAITS_BEGIN(content::CrossOriginServiceWorkerClient)
+IPC_STRUCT_TRAITS_MEMBER(target_url)
+IPC_STRUCT_TRAITS_MEMBER(message_port_id)
+IPC_STRUCT_TRAITS_END()
+
//---------------------------------------------------------------------------
// Messages sent from the child process to the browser.
@@ -435,3 +440,28 @@ IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError,
IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError,
int /* request_id */,
blink::WebServiceWorkerCacheError)
+
+IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_NavigatorConnect,
+ int /* thread_id */,
+ int /* request_id */,
+ GURL /* target_url */,
+ int /* message_port_id */)
+
+IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_NavigatorConnectResult,
+ int /* thread_id */,
+ int /* request_id */,
+ bool /* allow_connect */)
+
+IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CrossOriginConnectEvent,
+ int /* request_id */,
+ content::CrossOriginServiceWorkerClient /* client */)
+
+IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CrossOriginConnectEventFinished,
+ int /* request_id */,
+ bool /* allow_connect */)
+
+IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_CrossOriginMessageToWorker,
+ content::CrossOriginServiceWorkerClient /* client */,
+ base::string16 /* message */,
+ std::vector<int> /* sent_message_port_ids */,
+ std::vector<int> /* new_routing_ids */)

Powered by Google App Engine
This is Rietveld 408576698