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

Side by Side Diff: content/browser/shared_worker/shared_worker_host.cc

Issue 1775933002: CORS-RFC1918: Pipe creator address space through SharedWorker creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/shared_worker/shared_worker_host.h" 5 #include "content/browser/shared_worker/shared_worker_host.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "content/browser/devtools/shared_worker_devtools_manager.h" 8 #include "content/browser/devtools/shared_worker_devtools_manager.h"
9 #include "content/browser/message_port_message_filter.h" 9 #include "content/browser/message_port_message_filter.h"
10 #include "content/browser/message_port_service.h" 10 #include "content/browser/message_port_service.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 82 }
83 return container_render_filter_->Send(message); 83 return container_render_filter_->Send(message);
84 } 84 }
85 85
86 void SharedWorkerHost::Start(bool pause_on_start) { 86 void SharedWorkerHost::Start(bool pause_on_start) {
87 WorkerProcessMsg_CreateWorker_Params params; 87 WorkerProcessMsg_CreateWorker_Params params;
88 params.url = instance_->url(); 88 params.url = instance_->url();
89 params.name = instance_->name(); 89 params.name = instance_->name();
90 params.content_security_policy = instance_->content_security_policy(); 90 params.content_security_policy = instance_->content_security_policy();
91 params.security_policy_type = instance_->security_policy_type(); 91 params.security_policy_type = instance_->security_policy_type();
92 params.creation_address_space = instance_->creation_address_space();
92 params.pause_on_start = pause_on_start; 93 params.pause_on_start = pause_on_start;
93 params.route_id = worker_route_id_; 94 params.route_id = worker_route_id_;
94 Send(new WorkerProcessMsg_CreateWorker(params)); 95 Send(new WorkerProcessMsg_CreateWorker(params));
95 96
96 for (FilterList::const_iterator i = filters_.begin(); i != filters_.end(); 97 for (FilterList::const_iterator i = filters_.begin(); i != filters_.end();
97 ++i) { 98 ++i) {
98 i->filter()->Send(new ViewMsg_WorkerCreated(i->route_id())); 99 i->filter()->Send(new ViewMsg_WorkerCreated(i->route_id()));
99 } 100 }
100 } 101 }
101 102
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 int message_port_id) { 324 int message_port_id) {
324 for (FilterList::iterator i = filters_.begin(); i != filters_.end(); ++i) { 325 for (FilterList::iterator i = filters_.begin(); i != filters_.end(); ++i) {
325 if (i->filter() == filter && i->route_id() == route_id) { 326 if (i->filter() == filter && i->route_id() == route_id) {
326 i->set_message_port_id(message_port_id); 327 i->set_message_port_id(message_port_id);
327 return; 328 return;
328 } 329 }
329 } 330 }
330 } 331 }
331 332
332 } // namespace content 333 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698