summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/webworker_proxy.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-24 02:01:11 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-24 02:01:11 +0000
commitfd09950346afe96c4d86d37d98fd45003872ab3f (patch)
tree115466bfb6c258ef2b190bbea6c02f0e53b17582 /chrome/renderer/webworker_proxy.h
parent06fc8e6e54172eecff83e72fa36d038f26403328 (diff)
downloadchromium_src-fd09950346afe96c4d86d37d98fd45003872ab3f.zip
chromium_src-fd09950346afe96c4d86d37d98fd45003872ab3f.tar.gz
chromium_src-fd09950346afe96c4d86d37d98fd45003872ab3f.tar.bz2
Finish hooking up the worker process UI: use the domains of the workers as the title in the task manager, and show an infobar when a page's workers die.
I also cleaned up the code in RenderView which creates a window and widget, since when I originally wrote it I wasn't aware of RenderViewHost::FromID. Review URL: http://codereview.chromium.org/45025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12335 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webworker_proxy.h')
-rw-r--r--chrome/renderer/webworker_proxy.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/renderer/webworker_proxy.h b/chrome/renderer/webworker_proxy.h
index e068e8e..94c199d 100644
--- a/chrome/renderer/webworker_proxy.h
+++ b/chrome/renderer/webworker_proxy.h
@@ -26,7 +26,7 @@ class Message;
class WebWorkerProxy : public WebWorker,
public IPC::Channel::Listener {
public:
- WebWorkerProxy(WebWorkerClient* client);
+ WebWorkerProxy(WebWorkerClient* client, int render_view_route_id);
virtual ~WebWorkerProxy();
// WebWorker implementation.
@@ -45,8 +45,12 @@ class WebWorkerProxy : public WebWorker,
private:
bool Send(IPC::Message* message);
+ // The routing id used to reach WebWorkerClientProxy in the worker process.
int route_id_;
+ // The routing id for the RenderView that created this worker.
+ int render_view_route_id_;
+
// Used to communicate to the WebCore::Worker object in response to IPC
// messages.
WebWorkerClient* client_;