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/webworker_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/webworker_proxy.cc')
-rw-r--r-- | chrome/renderer/webworker_proxy.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/renderer/webworker_proxy.cc b/chrome/renderer/webworker_proxy.cc index aa7b7f4..abbb51f 100644 --- a/chrome/renderer/webworker_proxy.cc +++ b/chrome/renderer/webworker_proxy.cc @@ -21,8 +21,10 @@ using WebKit::WebWorkerClient; WebWorkerProxy::WebWorkerProxy( WebWorkerClient* client, ChildThread* child_thread, - int render_view_route_id) - : WebWorkerBase(child_thread, 0, MSG_ROUTING_NONE, render_view_route_id), + int render_view_route_id, + int parent_appcache_host_id) + : WebWorkerBase(child_thread, 0, MSG_ROUTING_NONE, render_view_route_id, + parent_appcache_host_id), client_(client) { // TODO(atwilson): Change to pass in a real document_id when we support nested // workers. @@ -46,8 +48,7 @@ void WebWorkerProxy::startWorkerContext( const WebURL& script_url, const WebString& user_agent, const WebString& source_code) { - CreateWorkerContext(script_url, false, string16(), user_agent, source_code, - MSG_ROUTING_NONE); + CreateDedicatedWorkerContext(script_url, user_agent, source_code); } void WebWorkerProxy::terminateWorkerContext() { |