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

Unified Diff: content/common/worker_messages.h

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/browser/shared_worker/shared_worker_service_impl.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/worker_messages.h
diff --git a/content/common/worker_messages.h b/content/common/worker_messages.h
index 9f57b201fc60cbb4f1dff167adb7cff800950ae3..2ed186ffaf6bbec302de51450b486b8cbe87a1d0 100644
--- a/content/common/worker_messages.h
+++ b/content/common/worker_messages.h
@@ -44,6 +44,12 @@ IPC_STRUCT_BEGIN(WorkerProcessMsg_CreateWorker_Params)
IPC_STRUCT_MEMBER(blink::WebContentSecurityPolicyType, security_policy_type)
IPC_STRUCT_MEMBER(bool, pause_on_start)
IPC_STRUCT_MEMBER(int, route_id)
+ IPC_STRUCT_MEMBER(base::string16, accept_languages)
+IPC_STRUCT_END()
+
+IPC_STRUCT_BEGIN(WorkerProcessMsg_LanguageChange_Params)
+ IPC_STRUCT_MEMBER(int, route_id)
+ IPC_STRUCT_MEMBER(base::string16, accept_languages)
IPC_STRUCT_END()
//-----------------------------------------------------------------------------
@@ -52,6 +58,13 @@ IPC_STRUCT_END()
IPC_MESSAGE_CONTROL1(WorkerProcessMsg_CreateWorker,
WorkerProcessMsg_CreateWorker_Params)
+// Sent from the browser to renderer process(hosting the shared worker),
+// when the language is changed in settings
+// This should trigger languagechange event after setting the
+// changed accept languages in WorkerNavigator.
+IPC_MESSAGE_CONTROL1(WorkerProcessMsg_LanguageChange,
+ WorkerProcessMsg_LanguageChange_Params)
+
//-----------------------------------------------------------------------------
// WorkerProcessHost messages
// These are messages sent from the worker process to the browser process.
« no previous file with comments | « content/browser/shared_worker/shared_worker_service_impl.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698