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/renderer/websharedworker_proxy.cc | |
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/renderer/websharedworker_proxy.cc')
-rw-r--r-- | chrome/renderer/websharedworker_proxy.cc | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/chrome/renderer/websharedworker_proxy.cc b/chrome/renderer/websharedworker_proxy.cc index ee08901..c0ecba4 100644 --- a/chrome/renderer/websharedworker_proxy.cc +++ b/chrome/renderer/websharedworker_proxy.cc @@ -10,8 +10,8 @@ #include "webkit/api/public/WebURL.h" WebSharedWorkerProxy::WebSharedWorkerProxy(ChildThread* child_thread, - int route_id, - int render_view_route_id) + int route_id, + int render_view_route_id) : WebWorkerBase(child_thread, route_id, render_view_route_id) { } @@ -27,6 +27,16 @@ void WebSharedWorkerProxy::startWorkerContext( CreateWorkerContext(script_url, true, name, user_agent, source_code); } +void WebSharedWorkerProxy::terminateWorkerContext() { + // This API should only be invoked from worker context. + NOTREACHED(); +} + +void WebSharedWorkerProxy::clientDestroyed() { + // This API should only be invoked from worker context. + NOTREACHED(); +} + void WebSharedWorkerProxy::connect(WebKit::WebMessagePortChannel* channel) { WebMessagePortChannelImpl* webchannel = static_cast<WebMessagePortChannelImpl*>(channel); |