OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 // Sent by the worker process to check whether access to file system is allowed. | 129 // Sent by the worker process to check whether access to file system is allowed. |
130 IPC_SYNC_MESSAGE_CONTROL2_1(WorkerProcessHostMsg_AllowFileSystem, | 130 IPC_SYNC_MESSAGE_CONTROL2_1(WorkerProcessHostMsg_AllowFileSystem, |
131 int /* worker_route_id */, | 131 int /* worker_route_id */, |
132 GURL /* origin url */, | 132 GURL /* origin url */, |
133 bool /* result */) | 133 bool /* result */) |
134 | 134 |
135 //----------------------------------------------------------------------------- | 135 //----------------------------------------------------------------------------- |
136 // Worker messages | 136 // Worker messages |
137 // These are messages sent from the renderer process to the worker process. | 137 // These are messages sent from the renderer process to the worker process. |
138 IPC_MESSAGE_ROUTED3(WorkerMsg_StartWorkerContext, | 138 IPC_MESSAGE_ROUTED5(WorkerMsg_StartWorkerContext, |
139 GURL /* url */, | 139 GURL /* url */, |
140 string16 /* user_agent */, | 140 string16 /* user_agent */, |
141 string16 /* source_code */) | 141 string16 /* source_code */, |
| 142 string16 /* content_security_policy */, |
| 143 bool /* report_only */) |
142 | 144 |
143 IPC_MESSAGE_ROUTED0(WorkerMsg_TerminateWorkerContext) | 145 IPC_MESSAGE_ROUTED0(WorkerMsg_TerminateWorkerContext) |
144 | 146 |
145 IPC_MESSAGE_ROUTED3(WorkerMsg_PostMessage, | 147 IPC_MESSAGE_ROUTED3(WorkerMsg_PostMessage, |
146 string16 /* message */, | 148 string16 /* message */, |
147 std::vector<int> /* sent_message_port_ids */, | 149 std::vector<int> /* sent_message_port_ids */, |
148 std::vector<int> /* new_routing_ids */) | 150 std::vector<int> /* new_routing_ids */) |
149 | 151 |
150 IPC_MESSAGE_ROUTED2(WorkerMsg_Connect, | 152 IPC_MESSAGE_ROUTED2(WorkerMsg_Connect, |
151 int /* sent_message_port_id */, | 153 int /* sent_message_port_id */, |
(...skipping 16 matching lines...) Expand all Loading... |
168 | 170 |
169 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ConfirmMessageFromWorkerObject, | 171 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ConfirmMessageFromWorkerObject, |
170 bool /* bool has_pending_activity */) | 172 bool /* bool has_pending_activity */) |
171 | 173 |
172 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ReportPendingActivity, | 174 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ReportPendingActivity, |
173 bool /* bool has_pending_activity */) | 175 bool /* bool has_pending_activity */) |
174 | 176 |
175 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextClosed, | 177 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextClosed, |
176 int /* worker_route_id */) | 178 int /* worker_route_id */) |
177 IPC_MESSAGE_ROUTED0(WorkerHostMsg_WorkerContextDestroyed) | 179 IPC_MESSAGE_ROUTED0(WorkerHostMsg_WorkerContextDestroyed) |
OLD | NEW |