summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/webworker_proxy.cc
diff options
context:
space:
mode:
authoratwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-05 16:27:06 +0000
committeratwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-05 16:27:06 +0000
commit6898bbedb15bfddf91ea125e3ffde4b1789d9bf3 (patch)
treee3950c1d597f704af541572cfc39e9874131d667 /chrome/renderer/webworker_proxy.cc
parent1bbe5f61a331b2fb3cd1c0e18cf3aefa7105e635 (diff)
downloadchromium_src-6898bbedb15bfddf91ea125e3ffde4b1789d9bf3.zip
chromium_src-6898bbedb15bfddf91ea125e3ffde4b1789d9bf3.tar.gz
chromium_src-6898bbedb15bfddf91ea125e3ffde4b1789d9bf3.tar.bz2
Added beginnings of browser-process support for shared workers.
Refactored WebWorkerClientProxy into two classes - WebWorkerDispatcher which dispatches incoming IPCs for the worker, and WebWorkerClientProxy, which handles outgoing API calls from WebWorkerImpl. This allows WebWorkerClientProxy to be reused by WebSharedWorkerDispatcher. BUG=26233 TEST=none (will enable layout tests when basic functionality available) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=31077 Review URL: http://codereview.chromium.org/351004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31096 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webworker_proxy.cc')
-rw-r--r--chrome/renderer/webworker_proxy.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/renderer/webworker_proxy.cc b/chrome/renderer/webworker_proxy.cc
index 5a24c41..e8a5b9d 100644
--- a/chrome/renderer/webworker_proxy.cc
+++ b/chrome/renderer/webworker_proxy.cc
@@ -11,6 +11,7 @@
#include "webkit/api/public/WebURL.h"
#include "webkit/api/public/WebWorkerClient.h"
+using WebKit::WebCommonWorkerClient;
using WebKit::WebMessagePortChannel;
using WebKit::WebMessagePortChannelArray;
using WebKit::WebString;
@@ -41,9 +42,7 @@ void WebWorkerProxy::startWorkerContext(
const WebURL& script_url,
const WebString& user_agent,
const WebString& source_code) {
- IPC::Message* create_message = new ViewHostMsg_CreateDedicatedWorker(
- script_url, render_view_route_id_, &route_id_);
- CreateWorkerContext(create_message, script_url, user_agent, source_code);
+ CreateWorkerContext(script_url, false, string16(), user_agent, source_code);
}
void WebWorkerProxy::terminateWorkerContext() {
@@ -97,8 +96,8 @@ void WebWorkerProxy::OnMessageReceived(const IPC::Message& message) {
client_,
WebWorkerClient::reportPendingActivity)
IPC_MESSAGE_FORWARD(WorkerHostMsg_WorkerContextDestroyed,
- client_,
- WebWorkerClient::workerContextDestroyed)
+ static_cast<WebCommonWorkerClient*>(client_),
+ WebCommonWorkerClient::workerContextDestroyed)
IPC_END_MESSAGE_MAP()
}