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

Unified Diff: content/renderer/shared_worker_repository.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: Move IPC_ENUM_TRAITS(blink::WebContentSecurityPolicyType) to content_param_traits_macros.h. Created 6 years, 11 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 | « content/renderer/shared_worker_repository.h ('k') | content/renderer/websharedworker_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/shared_worker_repository.cc
diff --git a/content/renderer/shared_worker_repository.cc b/content/renderer/shared_worker_repository.cc
index 3f92fbee59b9e32c1451d3599ea445a488c902c6..dbd373c0d40ca91661eb5d142c1a3b6be427eae1 100644
--- a/content/renderer/shared_worker_repository.cc
+++ b/content/renderer/shared_worker_repository.cc
@@ -26,13 +26,17 @@ blink::WebSharedWorkerConnector*
SharedWorkerRepository::createSharedWorkerConnector(
const blink::WebURL& url,
const blink::WebString& name,
- DocumentID document_id) {
+ DocumentID document_id,
+ const blink::WebString& content_security_policy,
+ blink::WebContentSecurityPolicyType security_policy_type) {
int route_id = MSG_ROUTING_NONE;
bool exists = false;
bool url_mismatch = false;
ViewHostMsg_CreateWorker_Params params;
params.url = url;
params.name = name;
+ params.content_security_policy = content_security_policy;
+ params.security_policy_type = security_policy_type;
params.document_id = document_id;
params.render_frame_route_id = render_frame()->GetRoutingID();
params.route_id = MSG_ROUTING_NONE;
« no previous file with comments | « content/renderer/shared_worker_repository.h ('k') | content/renderer/websharedworker_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698