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/renderer/webworker_proxy.h | |
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/renderer/webworker_proxy.h')
-rw-r--r-- | chrome/renderer/webworker_proxy.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/renderer/webworker_proxy.h b/chrome/renderer/webworker_proxy.h index 7bec251..7c44ba6 100644 --- a/chrome/renderer/webworker_proxy.h +++ b/chrome/renderer/webworker_proxy.h @@ -11,13 +11,10 @@ #include "chrome/common/ipc_channel.h" #include "third_party/WebKit/WebKit/chromium/public/WebWorker.h" +class ChildThread; class GURL; class RenderView; -namespace IPC { -class Message; -} - // This class provides an implementation of WebWorker that the renderer provides // to the glue. This class converts function calls to IPC messages that are // dispatched in the worker process by WebWorkerClientProxy. It also receives @@ -26,7 +23,9 @@ class Message; class WebWorkerProxy : public WebKit::WebWorker, public IPC::Channel::Listener { public: - WebWorkerProxy(WebKit::WebWorkerClient* client, int render_view_route_id); + WebWorkerProxy(WebKit::WebWorkerClient* client, + ChildThread* child_thread, + int render_view_route_id); virtual ~WebWorkerProxy(); // WebWorker implementation. @@ -46,6 +45,8 @@ class WebWorkerProxy : public WebKit::WebWorker, // The routing id used to reach WebWorkerClientProxy in the worker process. int route_id_; + ChildThread* child_thread_; + // The routing id for the RenderView that created this worker. int render_view_route_id_; |