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

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

Issue 115713004: Move the worker script loading code to the worker process (phase:2/5) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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
Index: content/browser/worker_host/worker_process_host.cc
diff --git a/content/browser/worker_host/worker_process_host.cc b/content/browser/worker_host/worker_process_host.cc
index fae589bf476b74950aeca84763a50aa3b9b0d34e..25ae373fc1420be4c507d0c70f4073c959b773a9 100644
--- a/content/browser/worker_host/worker_process_host.cc
+++ b/content/browser/worker_host/worker_process_host.cc
@@ -279,6 +279,8 @@ void WorkerProcessHost::CreateWorker(const WorkerInstance& instance) {
WorkerProcessMsg_CreateWorker_Params params;
params.url = instance.url();
params.name = instance.name();
+ params.content_security_policy = instance.content_security_policy();
+ params.security_policy_type = instance.security_policy_type();
params.route_id = instance.worker_route_id();
params.creator_process_id = instance.parent_process_id();
params.shared_worker_appcache_id = instance.main_resource_appcache_id();
@@ -573,6 +575,8 @@ net::URLRequestContext* WorkerProcessHost::GetRequestContext(
WorkerProcessHost::WorkerInstance::WorkerInstance(
const GURL& url,
const base::string16& name,
+ const base::string16& content_security_policy,
+ blink::WebContentSecurityPolicyType security_policy_type,
int worker_route_id,
int parent_process_id,
int64 main_resource_appcache_id,
@@ -581,6 +585,8 @@ WorkerProcessHost::WorkerInstance::WorkerInstance(
: url_(url),
closed_(false),
name_(name),
+ content_security_policy_(content_security_policy),
+ security_policy_type_(security_policy_type),
worker_route_id_(worker_route_id),
parent_process_id_(parent_process_id),
main_resource_appcache_id_(main_resource_appcache_id),

Powered by Google App Engine
This is Rietveld 408576698