summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/websharedworker_proxy.h
diff options
context:
space:
mode:
authoratwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 01:13:37 +0000
committeratwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 01:13:37 +0000
commit30447b6a5d6109d455f2c6262454105d5adf8f94 (patch)
tree3ef69964f7cf3e10d662af94f88e05288e16ad8c /chrome/renderer/websharedworker_proxy.h
parent6eca5f19ffabd672349df42595551e7a4b1da987 (diff)
downloadchromium_src-30447b6a5d6109d455f2c6262454105d5adf8f94.zip
chromium_src-30447b6a5d6109d455f2c6262454105d5adf8f94.tar.gz
chromium_src-30447b6a5d6109d455f2c6262454105d5adf8f94.tar.bz2
Added lifecycle management and sharing support for SharedWorkers. SharedWorkers
can now outlive their parent pages and can be shared by multiple instances across multiple tabs. BUG=26233 TEST=ui tests Review URL: http://codereview.chromium.org/390017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31868 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/websharedworker_proxy.h')
-rw-r--r--chrome/renderer/websharedworker_proxy.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/renderer/websharedworker_proxy.h b/chrome/renderer/websharedworker_proxy.h
index 68dab47..c3143db 100644
--- a/chrome/renderer/websharedworker_proxy.h
+++ b/chrome/renderer/websharedworker_proxy.h
@@ -20,6 +20,7 @@ class ChildThread;
class WebSharedWorkerProxy : public WebKit::WebSharedWorker,
private WebWorkerBase {
public:
+ // If the worker not loaded yet, route_id == MSG_ROUTING_NONE
WebSharedWorkerProxy(ChildThread* child_thread,
int route_id,
int render_view_route_id);
@@ -35,13 +36,13 @@ class WebSharedWorkerProxy : public WebKit::WebSharedWorker,
virtual void terminateWorkerContext();
virtual void clientDestroyed();
- // IPC::Channel::Listener proxyementation.
+ // IPC::Channel::Listener implementation.
void OnMessageReceived(const IPC::Message& message);
private:
void OnWorkerCreated();
- ConnectListener* m_connectListener;
+ ConnectListener* connect_listener_;
DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerProxy);
};