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

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

Issue 1110103003: Initial implementation of stashed message ports, content side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nicer dchecks Created 5 years, 7 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
« no previous file with comments | « content/child/webmessageportchannel_impl.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2c40c232758c01460e31030bc3c993ebc20a8cad..a54b39090fab6f84820e433a47ee4a3a7a4d8c5e 100644
--- a/content/common/service_worker/service_worker_messages.h
+++ b/content/common/service_worker/service_worker_messages.h
@@ -257,6 +257,11 @@ IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting,
IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClaimClients,
int /* request_id */)
+// Asks the browser to stash a message port, giving it a name.
+IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_StashMessagePort,
+ int /* message_port_id */,
+ base::string16 /* name */)
+
//---------------------------------------------------------------------------
// Messages sent from the browser to the child process.
//
@@ -439,3 +444,10 @@ IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError,
IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse,
int /* request_id */,
content::ServiceWorkerClientInfo /* client */)
+
+// Sent via EmbeddedWorker to transfer a stashed message port to the worker.
+IPC_MESSAGE_CONTROL3(
+ ServiceWorkerMsg_SendStashedMessagePorts,
+ std::vector<content::TransferredMessagePort> /* stashed_message_ports */,
+ std::vector<int> /* new_routing_ids */,
+ std::vector<base::string16> /* port_names */)
« no previous file with comments | « content/child/webmessageportchannel_impl.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698