OLD | NEW |
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 Loading... |
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 */) |
OLD | NEW |