summaryrefslogtreecommitdiffstats
path: root/chrome/worker/webworkerclient_proxy.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-06 20:20:22 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-06 20:20:22 +0000
commite18e7ad1c60f6472c25bc4af2554f471e55a85a6 (patch)
tree4240f999b4a49da982a2ba91324416db381412f0 /chrome/worker/webworkerclient_proxy.h
parent63b397506f70501d8089eecf28f50e17417fdd48 (diff)
downloadchromium_src-e18e7ad1c60f6472c25bc4af2554f471e55a85a6.zip
chromium_src-e18e7ad1c60f6472c25bc4af2554f471e55a85a6.tar.gz
chromium_src-e18e7ad1c60f6472c25bc4af2554f471e55a85a6.tar.bz2
Enable message ports for workers.
TEST=included ui test Review URL: http://codereview.chromium.org/160576 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22653 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/worker/webworkerclient_proxy.h')
-rw-r--r--chrome/worker/webworkerclient_proxy.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/worker/webworkerclient_proxy.h b/chrome/worker/webworkerclient_proxy.h
index 0e74e41..aadbe07 100644
--- a/chrome/worker/webworkerclient_proxy.h
+++ b/chrome/worker/webworkerclient_proxy.h
@@ -25,7 +25,9 @@ class WebWorkerClientProxy : public WebKit::WebWorkerClient,
WebWorkerClientProxy(const GURL& url, int route_id);
// WebWorkerClient implementation.
- virtual void postMessageToWorkerObject(const WebKit::WebString& message);
+ virtual void postMessageToWorkerObject(
+ const WebKit::WebString& message,
+ WebKit::WebMessagePortChannel* channel);
virtual void postExceptionToWorkerObject(
const WebKit::WebString& error_message,
int line_number,
@@ -52,6 +54,9 @@ class WebWorkerClientProxy : public WebKit::WebWorkerClient,
bool Send(IPC::Message* message);
void OnTerminateWorkerContext();
+ void OnPostMessage(const string16& message,
+ int sent_message_port_id,
+ int new_routing_id);
// The source url for this worker.
GURL url_;