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

Side by Side Diff: content/common/message_port_messages.h

Issue 737833002: Properly queue messages sent to message ports that are transferred to a service worker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cross_process_messaging_with_terminate
Patch Set: format and comment Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « content/child/webmessageportchannel_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Defines messages between the browser and worker process, as well as between 5 // Defines messages between the browser and worker process, as well as between
6 // the renderer and worker process. 6 // the renderer and worker process.
7 7
8 // Multiply-included message file, hence no include guard. 8 // Multiply-included message file, hence no include guard.
9 9
10 #include <string> 10 #include <string>
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 IPC_MESSAGE_CONTROL1(MessagePortHostMsg_QueueMessages, 76 IPC_MESSAGE_CONTROL1(MessagePortHostMsg_QueueMessages,
77 int /* message_port_id */) 77 int /* message_port_id */)
78 78
79 // Sends the browser all the queued messages that arrived at this message port 79 // Sends the browser all the queued messages that arrived at this message port
80 // after it was sent in a postMessage call. 80 // after it was sent in a postMessage call.
81 // NOTE: MSVS can't compile the macro if std::vector<std::pair<string16, int> > 81 // NOTE: MSVS can't compile the macro if std::vector<std::pair<string16, int> >
82 // is used, so we typedef it in worker_messages.h. 82 // is used, so we typedef it in worker_messages.h.
83 IPC_MESSAGE_CONTROL2(MessagePortHostMsg_SendQueuedMessages, 83 IPC_MESSAGE_CONTROL2(MessagePortHostMsg_SendQueuedMessages,
84 int /* message_port_id */, 84 int /* message_port_id */,
85 std::vector<QueuedMessage> /* queued_messages */) 85 std::vector<QueuedMessage> /* queued_messages */)
86
87 // Tells the browser this message port is ready to receive messages. If the
88 // browser was holding messages to this port because no destination for the
89 // port was available yet this will cause the browser to release those messages.
90 IPC_MESSAGE_CONTROL1(MessagePortHostMsg_ReleaseMessages,
91 int /* message_port_id */)
OLDNEW
« no previous file with comments | « content/child/webmessageportchannel_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698