diff options
author | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-24 19:19:23 +0000 |
---|---|---|
committer | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-24 19:19:23 +0000 |
commit | f9bc9c0bc9ddd0dbb989286d3abca0d740635172 (patch) | |
tree | bde968d4aba9a5ce7c07b0817350c2b841455e96 /chrome/common | |
parent | 87924d38251e94c46ba70d57cf57d8f50a73171c (diff) | |
download | chromium_src-f9bc9c0bc9ddd0dbb989286d3abca0d740635172.zip chromium_src-f9bc9c0bc9ddd0dbb989286d3abca0d740635172.tar.gz chromium_src-f9bc9c0bc9ddd0dbb989286d3abca0d740635172.tar.bz2 |
Browser process scaffolding to support having appcache work in workers.
* Associate a RequestContext with a WorkerProcessHost. This corresponds to themain request context of the profile for which the worker process is running. Also associate the context with each WorkerInstance which comes into existance priorto the WorkerProcessHost that will host the instance.
* Give the WorkerProcessHost an AppCacheDispatcherHost.
* Fix up some recently botched IPC plumbing for ViewHostMsg_CreateWorker_Params.
BUG=39368
TEST=there are no worker unit tests
Review URL: http://codereview.chromium.org/2010010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48064 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/render_messages.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h index ce94e22..74c2f165 100644 --- a/chrome/common/render_messages.h +++ b/chrome/common/render_messages.h @@ -2377,6 +2377,8 @@ struct ParamTraits<ViewHostMsg_CreateWorker_Params> { WriteParam(m, p.document_id); WriteParam(m, p.render_view_route_id); WriteParam(m, p.route_id); + WriteParam(m, p.parent_appcache_host_id); + WriteParam(m, p.script_resource_appcache_id); } static bool Read(const Message* m, void** iter, param_type* p) { return @@ -2385,7 +2387,9 @@ struct ParamTraits<ViewHostMsg_CreateWorker_Params> { ReadParam(m, iter, &p->name) && ReadParam(m, iter, &p->document_id) && ReadParam(m, iter, &p->render_view_route_id) && - ReadParam(m, iter, &p->route_id); + ReadParam(m, iter, &p->route_id) && + ReadParam(m, iter, &p->parent_appcache_host_id) && + ReadParam(m, iter, &p->script_resource_appcache_id); } static void Log(const param_type& p, std::wstring* l) { l->append(L"("); @@ -2398,8 +2402,12 @@ struct ParamTraits<ViewHostMsg_CreateWorker_Params> { LogParam(p.document_id, l); l->append(L", "); LogParam(p.render_view_route_id, l); - l->append(L")"); + l->append(L","); LogParam(p.route_id, l); + l->append(L", "); + LogParam(p.parent_appcache_host_id, l); + l->append(L","); + LogParam(p.script_resource_appcache_id, l); l->append(L")"); } }; |