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

Unified Diff: content/renderer/shared_worker/embedded_shared_worker_stub.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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/shared_worker/embedded_shared_worker_stub.cc
diff --git a/content/renderer/shared_worker/embedded_shared_worker_stub.cc b/content/renderer/shared_worker/embedded_shared_worker_stub.cc
index 63ce5068d4ca3fb0b28956f8ced3b566dc8581f2..a41be61df16092d9d3617a78ba33db05a25268e1 100644
--- a/content/renderer/shared_worker/embedded_shared_worker_stub.cc
+++ b/content/renderer/shared_worker/embedded_shared_worker_stub.cc
@@ -23,7 +23,6 @@
#include "ipc/ipc_message_macros.h"
#include "third_party/WebKit/public/platform/URLConversion.h"
#include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
-#include "third_party/WebKit/public/platform/WebURLRequest.h"
#include "third_party/WebKit/public/web/WebDataSource.h"
#include "third_party/WebKit/public/web/WebSharedWorker.h"
#include "third_party/WebKit/public/web/WebSharedWorkerClient.h"
@@ -125,11 +124,10 @@ EmbeddedSharedWorkerStub::EmbeddedSharedWorkerStub(
const base::string16& name,
const base::string16& content_security_policy,
blink::WebContentSecurityPolicyType security_policy_type,
+ blink::WebAddressSpace creation_address_space,
bool pause_on_start,
int route_id)
- : route_id_(route_id),
- name_(name),
- url_(url) {
+ : route_id_(route_id), name_(name), url_(url) {
RenderThreadImpl::current()->AddEmbeddedWorkerRoute(route_id_, this);
impl_ = blink::WebSharedWorker::create(this);
if (pause_on_start) {
@@ -139,8 +137,8 @@ EmbeddedSharedWorkerStub::EmbeddedSharedWorkerStub(
}
worker_devtools_agent_.reset(
new SharedWorkerDevToolsAgent(route_id, impl_));
- impl_->startWorkerContext(url, name_,
- content_security_policy, security_policy_type);
+ impl_->startWorkerContext(url, name_, content_security_policy,
+ security_policy_type, creation_address_space);
}
EmbeddedSharedWorkerStub::~EmbeddedSharedWorkerStub() {
« no previous file with comments | « content/renderer/shared_worker/embedded_shared_worker_stub.h ('k') | content/renderer/shared_worker_repository.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698