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/worker/webworkerclient_proxy.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/worker/webworkerclient_proxy.h')
-rw-r--r-- | chrome/worker/webworkerclient_proxy.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/worker/webworkerclient_proxy.h b/chrome/worker/webworkerclient_proxy.h index aadbe07..8807d63 100644 --- a/chrome/worker/webworkerclient_proxy.h +++ b/chrome/worker/webworkerclient_proxy.h @@ -5,6 +5,8 @@ #ifndef CHROME_WORKER_WEBWORKERCLIENT_PROXY_H_ #define CHROME_WORKER_WEBWORKERCLIENT_PROXY_H_ +#include <vector> + #include "base/basictypes.h" #include "googleurl/src/gurl.h" #include "ipc/ipc_channel.h" @@ -27,7 +29,7 @@ class WebWorkerClientProxy : public WebKit::WebWorkerClient, // WebWorkerClient implementation. virtual void postMessageToWorkerObject( const WebKit::WebString& message, - WebKit::WebMessagePortChannel* channel); + const WebKit::WebMessagePortChannelArray& channel); virtual void postExceptionToWorkerObject( const WebKit::WebString& error_message, int line_number, @@ -49,14 +51,14 @@ class WebWorkerClientProxy : public WebKit::WebWorkerClient, virtual void OnMessageReceived(const IPC::Message& message); private: - ~WebWorkerClientProxy (); + ~WebWorkerClientProxy(); bool Send(IPC::Message* message); void OnTerminateWorkerContext(); void OnPostMessage(const string16& message, - int sent_message_port_id, - int new_routing_id); + const std::vector<int>& sent_message_port_ids, + const std::vector<int>& new_routing_ids); // The source url for this worker. GURL url_; |