summaryrefslogtreecommitdiffstats
path: root/chrome/worker/webworkerclient_proxy.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-20 02:13:41 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-20 02:13:41 +0000
commit5f3f56de244046b0222ef25510809b79a36135d9 (patch)
tree8cbd74310eaecae79efd20af5e8d60a062ce78e3 /chrome/worker/webworkerclient_proxy.cc
parentf72f38623b7a32e7ba8c92f4a6d98d05fc51c311 (diff)
downloadchromium_src-5f3f56de244046b0222ef25510809b79a36135d9.zip
chromium_src-5f3f56de244046b0222ef25510809b79a36135d9.tar.gz
chromium_src-5f3f56de244046b0222ef25510809b79a36135d9.tar.bz2
Move createWorker from WebKitClient to WebWorkerClient per your suggestion, to avoid using WebKitClient outside the main thread.
Review URL: http://codereview.chromium.org/115103 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16454 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/worker/webworkerclient_proxy.cc')
-rw-r--r--chrome/worker/webworkerclient_proxy.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/worker/webworkerclient_proxy.cc b/chrome/worker/webworkerclient_proxy.cc
index 2c57dad..003a860 100644
--- a/chrome/worker/webworkerclient_proxy.cc
+++ b/chrome/worker/webworkerclient_proxy.cc
@@ -7,6 +7,7 @@
#include "chrome/common/child_process.h"
#include "chrome/common/ipc_logging.h"
#include "chrome/common/worker_messages.h"
+#include "chrome/renderer/webworker_proxy.h"
#include "chrome/worker/worker_thread.h"
#include "webkit/api/public/WebString.h"
#include "webkit/api/public/WebURL.h"
@@ -70,6 +71,11 @@ void WebWorkerClientProxy::workerContextDestroyed() {
delete this;
}
+WebKit::WebWorker* WebWorkerClientProxy::createWorker(
+ WebKit::WebWorkerClient* client) {
+ return new WebWorkerProxy(client, WorkerThread::current(), 0);
+}
+
bool WebWorkerClientProxy::Send(IPC::Message* message) {
return WorkerThread::current()->Send(message);
}