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

Unified Diff: content/renderer/shared_worker/embedded_shared_worker_stub.cc

Issue 592043005: [WIP]Implement Chromium side changes for navigator.language(s) support for workers. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: languagechange event plumbing for shared worker. Stil WIP. Created 6 years, 2 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/embedded_shared_worker_stub.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e7df34a9d428c147da067801e6018be4efbec865..0b28f320b9e9a27f4ab78219882672ecbab72e28 100644
--- a/content/renderer/shared_worker/embedded_shared_worker_stub.cc
+++ b/content/renderer/shared_worker/embedded_shared_worker_stub.cc
@@ -59,8 +59,11 @@ EmbeddedSharedWorkerStub::EmbeddedSharedWorkerStub(
const base::string16& content_security_policy,
blink::WebContentSecurityPolicyType security_policy_type,
bool pause_on_start,
- int route_id)
- : route_id_(route_id), name_(name), runing_(false), url_(url) {
+ int route_id,
+ const base::string16& accept_languages
+ )
+ : route_id_(route_id), name_(name), runing_(false), url_(url)
+ , accept_languages_(accept_languages){
RenderThreadImpl::current()->AddEmbeddedWorkerRoute(route_id_, this);
impl_ = blink::WebSharedWorker::create(this);
if (pause_on_start) {
@@ -70,8 +73,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, accept_languages_);
}
EmbeddedSharedWorkerStub::~EmbeddedSharedWorkerStub() {
« no previous file with comments | « content/renderer/shared_worker/embedded_shared_worker_stub.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698