diff options
author | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-26 21:38:03 +0000 |
---|---|---|
committer | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-26 21:38:03 +0000 |
commit | c36a24cbfdc6cb945f104d65174ef2aaa59e5dd3 (patch) | |
tree | 6f77d943b793b1f6968660c2ce3fb32f432369ed /chrome/common/worker_messages_internal.h | |
parent | c28a6aac0d9687b43781bb21fdef3b6849c0d398 (diff) | |
download | chromium_src-c36a24cbfdc6cb945f104d65174ef2aaa59e5dd3.zip chromium_src-c36a24cbfdc6cb945f104d65174ef2aaa59e5dd3.tar.gz chromium_src-c36a24cbfdc6cb945f104d65174ef2aaa59e5dd3.tar.bz2 |
First half of updating Worker.postMessage(), DOMWindow.postMessage(), and
MessagePort.postMessage() to accept multiple MessagePorts.
Original review: http://codereview.chromium.org/173193
TBR=atwilson
TEST=None (new functionality not yet exposed via bindings, so existing tests suffice)
BUG=19948
Review URL: http://codereview.chromium.org/174566
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24536 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/worker_messages_internal.h')
-rw-r--r-- | chrome/common/worker_messages_internal.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/common/worker_messages_internal.h b/chrome/common/worker_messages_internal.h index 16dab5d..9b1cac2 100644 --- a/chrome/common/worker_messages_internal.h +++ b/chrome/common/worker_messages_internal.h @@ -3,6 +3,7 @@ // found in the LICENSE file. #include <utility> +#include <vector> #include "base/string16.h" #include "googleurl/src/gurl.h" #include "ipc/ipc_message_macros.h" @@ -21,8 +22,8 @@ IPC_BEGIN_MESSAGES(WorkerProcess) // like common_messages_internal.h IPC_MESSAGE_ROUTED3(WorkerProcessMsg_Message, string16 /* message */, - int /* sent_message_port_id */, - int /* new_routing_id */) + std::vector<int> /* sent_message_port_ids */, + std::vector<int> /* new_routing_ids */) // Tells the Message Port Channel object that there are no more in-flight // messages arriving. @@ -55,7 +56,7 @@ IPC_BEGIN_MESSAGES(WorkerProcessHost) IPC_MESSAGE_CONTROL3(WorkerProcessHostMsg_PostMessage, int /* sender_message_port_id */, string16 /* message */, - int /* sent_message_port_id */) + std::vector<int> /* sent_message_port_ids */) // Causes messages sent to the remote port to be delivered to this local port. IPC_MESSAGE_CONTROL2(WorkerProcessHostMsg_Entangle, @@ -90,8 +91,8 @@ IPC_BEGIN_MESSAGES(Worker) IPC_MESSAGE_ROUTED3(WorkerMsg_PostMessage, string16 /* message */, - int /* sent_message_port_id */, - int /* new_routing_id */) + std::vector<int> /* sent_message_port_ids */, + std::vector<int> /* new_routing_ids */) IPC_MESSAGE_ROUTED0(WorkerMsg_WorkerObjectDestroyed) IPC_END_MESSAGES(Worker) |