diff options
author | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-06 20:40:56 +0000 |
---|---|---|
committer | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-06 20:40:56 +0000 |
commit | 14396e9b2d58eda3d5734c57a80783e2dc0a705f (patch) | |
tree | 0ef906e2df709f9201d0f37544d4519a557852ee /chrome/renderer/websharedworker_proxy.cc | |
parent | bbf362b447de9cdd023e933ae219731fc01d0571 (diff) | |
download | chromium_src-14396e9b2d58eda3d5734c57a80783e2dc0a705f.zip chromium_src-14396e9b2d58eda3d5734c57a80783e2dc0a705f.tar.gz chromium_src-14396e9b2d58eda3d5734c57a80783e2dc0a705f.tar.bz2 |
More groundwork for making appcache work in workers.
Widen the IPC message used to start and initialize a worker to
include the additional fields needed to initialize the appcache
host for that worker. And set those values when sending that message
from a renderer.
BUG=39368
TEST=manual and existing tests apply
Review URL: http://codereview.chromium.org/2013001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46610 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/websharedworker_proxy.cc')
-rw-r--r-- | chrome/renderer/websharedworker_proxy.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/renderer/websharedworker_proxy.cc b/chrome/renderer/websharedworker_proxy.cc index 13b02f6..8c79cb8 100644 --- a/chrome/renderer/websharedworker_proxy.cc +++ b/chrome/renderer/websharedworker_proxy.cc @@ -17,7 +17,8 @@ WebSharedWorkerProxy::WebSharedWorkerProxy(ChildThread* child_thread, : WebWorkerBase(child_thread, document_id, exists ? route_id : MSG_ROUTING_NONE, - render_view_route_id), + render_view_route_id, + 0), pending_route_id_(route_id), connect_listener_(NULL) { } @@ -33,8 +34,8 @@ void WebSharedWorkerProxy::startWorkerContext( const WebKit::WebString& source_code, long long script_resource_appcache_id) { DCHECK(!isStarted()); - CreateWorkerContext(script_url, true, name, user_agent, source_code, - pending_route_id_); + CreateSharedWorkerContext(script_url, name, user_agent, source_code, + pending_route_id_, script_resource_appcache_id); } void WebSharedWorkerProxy::terminateWorkerContext() { |