Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Unified Diff: chrome/browser/worker_host/worker_process_host.cc

Issue 1719007: Initializing an appcache host in a worker process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/worker_host/worker_process_host.cc
===================================================================
--- chrome/browser/worker_host/worker_process_host.cc (revision 46627)
+++ chrome/browser/worker_host/worker_process_host.cc (working copy)
@@ -117,6 +117,11 @@
}
if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableApplicationCache)) {
+ cmd_line->AppendSwitch(switches::kDisableApplicationCache);
+ }
+
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableDatabases)) {
cmd_line->AppendSwitch(switches::kDisableDatabases);
}
@@ -196,11 +201,17 @@
id(), instance.url());
instances_.push_back(instance);
- Send(new WorkerProcessMsg_CreateWorker(instance.url(),
- instance.shared(),
- instance.name(),
- instance.worker_route_id()));
+ WorkerProcessMsg_CreateWorker_Params params;
+ params.url = instance.url();
+ params.is_shared = instance.shared();
+ params.name = instance.name();
+ params.route_id = instance.worker_route_id();
+ params.creator_process_id = 0; // TODO(michaeln): Set these param values.
+ params.creator_appcache_host_id = 0;
+ params.shared_worker_appcache_id = 0;
+ Send(new WorkerProcessMsg_CreateWorker(params));
+
UpdateTitle();
// Walk all pending senders and let them know the worker has been created
« no previous file with comments | « no previous file | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698