diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-01 21:20:47 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-01 21:20:47 +0000 |
commit | ec775ef9b36dbcb5ebbd4fa550443bfa94c53a9f (patch) | |
tree | 5400ae2c5876e13aeeec2ab6ebcfc54f3f479840 /chrome/worker | |
parent | 4b5d64ff3d7d95247ed4f078d8bf585a1726794d (diff) | |
download | chromium_src-ec775ef9b36dbcb5ebbd4fa550443bfa94c53a9f.zip chromium_src-ec775ef9b36dbcb5ebbd4fa550443bfa94c53a9f.tar.gz chromium_src-ec775ef9b36dbcb5ebbd4fa550443bfa94c53a9f.tar.bz2 |
Run workers in separate processes.
Review URL: http://codereview.chromium.org/99016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15098 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/worker')
-rw-r--r-- | chrome/worker/DEPS | 1 | ||||
-rw-r--r-- | chrome/worker/worker_webkitclient_impl.cc | 7 | ||||
-rw-r--r-- | chrome/worker/worker_webkitclient_impl.h | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/chrome/worker/DEPS b/chrome/worker/DEPS index 09e3a68..cf8be8e 100644 --- a/chrome/worker/DEPS +++ b/chrome/worker/DEPS @@ -1,4 +1,5 @@ include_rules = [
+ "+chrome/renderer",
"+chrome/worker",
"+sandbox/src",
"+webkit/glue",
diff --git a/chrome/worker/worker_webkitclient_impl.cc b/chrome/worker/worker_webkitclient_impl.cc index 45a13e8..36d2be8 100644 --- a/chrome/worker/worker_webkitclient_impl.cc +++ b/chrome/worker/worker_webkitclient_impl.cc @@ -5,6 +5,8 @@ #include "chrome/worker/worker_webkitclient_impl.h" #include "base/logging.h" +#include "chrome/renderer/webworker_proxy.h" +#include "chrome/worker/worker_thread.h" #include "third_party/WebKit/WebKit/chromium/public/WebString.h" #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" @@ -55,3 +57,8 @@ WebKit::WebString WorkerWebKitClientImpl::defaultLocale() { NOTREACHED(); return WebKit::WebString(); } + +WebKit::WebWorker* WorkerWebKitClientImpl::CreateWebWorker( + WebKit::WebWorkerClient* client) { + return new WebWorkerProxy(client, WorkerThread::current(), 0); +} diff --git a/chrome/worker/worker_webkitclient_impl.h b/chrome/worker/worker_webkitclient_impl.h index 474e1b2..061544c 100644 --- a/chrome/worker/worker_webkitclient_impl.h +++ b/chrome/worker/worker_webkitclient_impl.h @@ -23,6 +23,7 @@ class WorkerWebKitClientImpl : public webkit_glue::WebKitClientImpl { const WebKit::WebURL& policy_url); virtual void prefetchHostName(const WebKit::WebString&); virtual WebKit::WebString defaultLocale(); + virtual WebKit::WebWorker* CreateWebWorker(WebKit::WebWorkerClient* client); }; #endif // CHROME_WORKER_WORKER_WEBKIT_CLIENT_IMPL_H_ |