diff options
author | atwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 22:37:42 +0000 |
---|---|---|
committer | atwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 22:37:42 +0000 |
commit | 9c00f00af8403072573aa4b80c51a055162683f6 (patch) | |
tree | c228a1e6b99deb72d04d36e63d0a21d35bd35323 /chrome/worker | |
parent | 89f008927b90c6d8997416e766e7340c158093c3 (diff) | |
download | chromium_src-9c00f00af8403072573aa4b80c51a055162683f6.zip chromium_src-9c00f00af8403072573aa4b80c51a055162683f6.tar.gz chromium_src-9c00f00af8403072573aa4b80c51a055162683f6.tar.bz2 |
Initial WebSharedWorkerImpl implementation
Refactored WebWorkerImpl into WebWorkerBase to enable code sharing with
WebSharedWorkerImpl.
Changed how SharedWorkers are instantiated (now routed through WebFrameClient
just like DedicatedWorkers, because WebFrameClient is the only one who knows
how to send messages to RenderViewHost.
BUG=26233
TEST=none (will enable layout tests when basic functionality available)
Review URL: http://codereview.chromium.org/362020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31151 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/worker')
-rw-r--r-- | chrome/worker/webworkerclient_proxy.cc | 5 | ||||
-rw-r--r-- | chrome/worker/webworkerclient_proxy.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/chrome/worker/webworkerclient_proxy.cc b/chrome/worker/webworkerclient_proxy.cc index baff23c..35b2a28 100644 --- a/chrome/worker/webworkerclient_proxy.cc +++ b/chrome/worker/webworkerclient_proxy.cc @@ -91,6 +91,11 @@ void WebWorkerClientProxy::reportPendingActivity(bool has_pending_activity) { route_id_, has_pending_activity)); } +void WebWorkerClientProxy::workerContextClosed() { + // TODO(atwilson): Notify WorkerProcessHost that the worker context is closing + // (needed for shared workers so we don't allow new connections). +} + void WebWorkerClientProxy::workerContextDestroyed() { Send(new WorkerHostMsg_WorkerContextDestroyed(route_id_)); // Tell the stub that the worker has shutdown - frees this object. diff --git a/chrome/worker/webworkerclient_proxy.h b/chrome/worker/webworkerclient_proxy.h index b422912..1f91b7e 100644 --- a/chrome/worker/webworkerclient_proxy.h +++ b/chrome/worker/webworkerclient_proxy.h @@ -46,6 +46,7 @@ class WebWorkerClientProxy : public WebKit::WebWorkerClient { const WebKit::WebString& source_url); virtual void confirmMessageFromWorkerObject(bool has_pending_activity); virtual void reportPendingActivity(bool has_pending_activity); + virtual void workerContextClosed(); virtual void workerContextDestroyed(); virtual WebKit::WebWorker* createWorker(WebKit::WebWorkerClient* client); |