OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Defines messages between the browser and worker process, as well as between | 5 // Defines messages between the browser and worker process, as well as between |
6 // the renderer and worker process. | 6 // the renderer and worker process. |
7 | 7 |
8 // Multiply-included message file, hence no include guard. | 8 // Multiply-included message file, hence no include guard. |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 26 matching lines...) Expand all Loading... |
37 IPC_STRUCT_END() | 37 IPC_STRUCT_END() |
38 | 38 |
39 // Parameter structure for WorkerProcessMsg_CreateWorker. | 39 // Parameter structure for WorkerProcessMsg_CreateWorker. |
40 IPC_STRUCT_BEGIN(WorkerProcessMsg_CreateWorker_Params) | 40 IPC_STRUCT_BEGIN(WorkerProcessMsg_CreateWorker_Params) |
41 IPC_STRUCT_MEMBER(GURL, url) | 41 IPC_STRUCT_MEMBER(GURL, url) |
42 IPC_STRUCT_MEMBER(base::string16, name) | 42 IPC_STRUCT_MEMBER(base::string16, name) |
43 IPC_STRUCT_MEMBER(base::string16, content_security_policy) | 43 IPC_STRUCT_MEMBER(base::string16, content_security_policy) |
44 IPC_STRUCT_MEMBER(blink::WebContentSecurityPolicyType, security_policy_type) | 44 IPC_STRUCT_MEMBER(blink::WebContentSecurityPolicyType, security_policy_type) |
45 IPC_STRUCT_MEMBER(bool, pause_on_start) | 45 IPC_STRUCT_MEMBER(bool, pause_on_start) |
46 IPC_STRUCT_MEMBER(int, route_id) | 46 IPC_STRUCT_MEMBER(int, route_id) |
| 47 IPC_STRUCT_MEMBER(base::string16, accept_languages) |
| 48 IPC_STRUCT_END() |
| 49 |
| 50 IPC_STRUCT_BEGIN(WorkerProcessMsg_LanguageChange_Params) |
| 51 IPC_STRUCT_MEMBER(int, route_id) |
| 52 IPC_STRUCT_MEMBER(base::string16, accept_languages) |
47 IPC_STRUCT_END() | 53 IPC_STRUCT_END() |
48 | 54 |
49 //----------------------------------------------------------------------------- | 55 //----------------------------------------------------------------------------- |
50 // WorkerProcess messages | 56 // WorkerProcess messages |
51 // These are messages sent from the browser to the worker process. | 57 // These are messages sent from the browser to the worker process. |
52 IPC_MESSAGE_CONTROL1(WorkerProcessMsg_CreateWorker, | 58 IPC_MESSAGE_CONTROL1(WorkerProcessMsg_CreateWorker, |
53 WorkerProcessMsg_CreateWorker_Params) | 59 WorkerProcessMsg_CreateWorker_Params) |
54 | 60 |
| 61 // Sent from the browser to renderer process(hosting the shared worker), |
| 62 // when the language is changed in settings |
| 63 // This should trigger languagechange event after setting the |
| 64 // changed accept languages in WorkerNavigator. |
| 65 IPC_MESSAGE_CONTROL1(WorkerProcessMsg_LanguageChange, |
| 66 WorkerProcessMsg_LanguageChange_Params) |
| 67 |
55 //----------------------------------------------------------------------------- | 68 //----------------------------------------------------------------------------- |
56 // WorkerProcessHost messages | 69 // WorkerProcessHost messages |
57 // These are messages sent from the worker process to the browser process. | 70 // These are messages sent from the worker process to the browser process. |
58 | 71 |
59 // Sent by the worker process to check whether access to web databases is | 72 // Sent by the worker process to check whether access to web databases is |
60 // allowed. | 73 // allowed. |
61 IPC_SYNC_MESSAGE_CONTROL5_1(WorkerProcessHostMsg_AllowDatabase, | 74 IPC_SYNC_MESSAGE_CONTROL5_1(WorkerProcessHostMsg_AllowDatabase, |
62 int /* worker_route_id */, | 75 int /* worker_route_id */, |
63 GURL /* origin url */, | 76 GURL /* origin url */, |
64 base::string16 /* database name */, | 77 base::string16 /* database name */, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 125 |
113 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerScriptLoaded, | 126 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerScriptLoaded, |
114 int /* worker_route_id */) | 127 int /* worker_route_id */) |
115 | 128 |
116 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerScriptLoadFailed, | 129 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerScriptLoadFailed, |
117 int /* worker_route_id */) | 130 int /* worker_route_id */) |
118 | 131 |
119 IPC_MESSAGE_CONTROL2(WorkerHostMsg_WorkerConnected, | 132 IPC_MESSAGE_CONTROL2(WorkerHostMsg_WorkerConnected, |
120 int /* message_port_id */, | 133 int /* message_port_id */, |
121 int /* worker_route_id */) | 134 int /* worker_route_id */) |
OLD | NEW |