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. |