OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Message definition file, included multiple times, hence no include guard. | 5 // Message definition file, included multiple times, hence no include guard. |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 int /* provider_id */, | 83 int /* provider_id */, |
84 GURL /* scope */, | 84 GURL /* scope */, |
85 GURL /* script_url */) | 85 GURL /* script_url */) |
86 | 86 |
87 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UnregisterServiceWorker, | 87 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UnregisterServiceWorker, |
88 int /* thread_id */, | 88 int /* thread_id */, |
89 int /* request_id */, | 89 int /* request_id */, |
90 int /* provider_id */, | 90 int /* provider_id */, |
91 GURL /* scope (url pattern) */) | 91 GURL /* scope (url pattern) */) |
92 | 92 |
| 93 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetRegistration, |
| 94 int /* thread_id */, |
| 95 int /* request_id */, |
| 96 int /* provider_id */, |
| 97 GURL /* document_url */) |
| 98 |
93 // Sends a 'message' event to a service worker (renderer->browser). | 99 // Sends a 'message' event to a service worker (renderer->browser). |
94 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_PostMessageToWorker, | 100 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_PostMessageToWorker, |
95 int /* handle_id */, | 101 int /* handle_id */, |
96 base::string16 /* message */, | 102 base::string16 /* message */, |
97 std::vector<int> /* sent_message_port_ids */) | 103 std::vector<int> /* sent_message_port_ids */) |
98 | 104 |
99 // Informs the browser of a new ServiceWorkerProvider in the child process, | 105 // Informs the browser of a new ServiceWorkerProvider in the child process, |
100 // |provider_id| is unique within its child process. | 106 // |provider_id| is unique within its child process. |
101 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated, | 107 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated, |
102 int /* provider_id */) | 108 int /* provider_id */) |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 // disassociated with the registration. | 194 // disassociated with the registration. |
189 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_AssociateRegistration, | 195 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_AssociateRegistration, |
190 int /* thread_id */, | 196 int /* thread_id */, |
191 int /* provider_id */, | 197 int /* provider_id */, |
192 content::ServiceWorkerRegistrationObjectInfo, | 198 content::ServiceWorkerRegistrationObjectInfo, |
193 content::ServiceWorkerVersionAttributes) | 199 content::ServiceWorkerVersionAttributes) |
194 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DisassociateRegistration, | 200 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DisassociateRegistration, |
195 int /* thread_id */, | 201 int /* thread_id */, |
196 int /* provider_id */) | 202 int /* provider_id */) |
197 | 203 |
198 // Response to ServiceWorkerMsg_RegisterServiceWorker. | 204 // Response to ServiceWorkerHostMsg_RegisterServiceWorker. |
199 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistered, | 205 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistered, |
200 int /* thread_id */, | 206 int /* thread_id */, |
201 int /* request_id */, | 207 int /* request_id */, |
202 content::ServiceWorkerRegistrationObjectInfo, | 208 content::ServiceWorkerRegistrationObjectInfo, |
203 content::ServiceWorkerVersionAttributes) | 209 content::ServiceWorkerVersionAttributes) |
204 | 210 |
205 // Response to ServiceWorkerMsg_UnregisterServiceWorker. | 211 // Response to ServiceWorkerHostMsg_UnregisterServiceWorker. |
206 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerUnregistered, | 212 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerUnregistered, |
207 int /* thread_id */, | 213 int /* thread_id */, |
208 int /* request_id */, | 214 int /* request_id */, |
209 bool /* is_success */) | 215 bool /* is_success */) |
210 | 216 |
| 217 // Response to ServiceWorkerHostMsg_GetRegistration. |
| 218 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration, |
| 219 int /* thread_id */, |
| 220 int /* request_id */, |
| 221 content::ServiceWorkerRegistrationObjectInfo, |
| 222 content::ServiceWorkerVersionAttributes) |
| 223 |
211 // Sent when any kind of registration error occurs during a | 224 // Sent when any kind of registration error occurs during a |
212 // RegisterServiceWorker handler above. | 225 // RegisterServiceWorker handler above. |
213 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, | 226 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, |
214 int /* thread_id */, | 227 int /* thread_id */, |
215 int /* request_id */, | 228 int /* request_id */, |
216 blink::WebServiceWorkerError::ErrorType /* code */, | 229 blink::WebServiceWorkerError::ErrorType /* code */, |
217 base::string16 /* message */) | 230 base::string16 /* message */) |
218 | 231 |
219 // Sent when any kind of registration error occurs during a | 232 // Sent when any kind of registration error occurs during a |
220 // UnregisterServiceWorker handler above. | 233 // UnregisterServiceWorker handler above. |
221 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerUnregistrationError, | 234 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerUnregistrationError, |
222 int /* thread_id */, | 235 int /* thread_id */, |
223 int /* request_id */, | 236 int /* request_id */, |
224 blink::WebServiceWorkerError::ErrorType /* code */, | 237 blink::WebServiceWorkerError::ErrorType /* code */, |
225 base::string16 /* message */) | 238 base::string16 /* message */) |
226 | 239 |
| 240 // Sent when any kind of registration error occurs during a |
| 241 // GetRegistration handler above. |
| 242 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerGetRegistrationError, |
| 243 int /* thread_id */, |
| 244 int /* request_id */, |
| 245 blink::WebServiceWorkerError::ErrorType /* code */, |
| 246 base::string16 /* message */) |
| 247 |
227 // Informs the child process that the ServiceWorker's state has changed. | 248 // Informs the child process that the ServiceWorker's state has changed. |
228 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerStateChanged, | 249 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerStateChanged, |
229 int /* thread_id */, | 250 int /* thread_id */, |
230 int /* handle_id */, | 251 int /* handle_id */, |
231 blink::WebServiceWorkerState) | 252 blink::WebServiceWorkerState) |
232 | 253 |
233 // Tells the child process to set service workers for the given provider. | 254 // Tells the child process to set service workers for the given provider. |
234 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_SetVersionAttributes, | 255 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_SetVersionAttributes, |
235 int /* thread_id */, | 256 int /* thread_id */, |
236 int /* provider_id */, | 257 int /* provider_id */, |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 blink::WebServiceWorkerCacheError /* reason */) | 328 blink::WebServiceWorkerCacheError /* reason */) |
308 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageCreateError, | 329 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageCreateError, |
309 int /* request_id */, | 330 int /* request_id */, |
310 blink::WebServiceWorkerCacheError /* reason */) | 331 blink::WebServiceWorkerCacheError /* reason */) |
311 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageDeleteError, | 332 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageDeleteError, |
312 int /* request_id */, | 333 int /* request_id */, |
313 blink::WebServiceWorkerCacheError /* reason */) | 334 blink::WebServiceWorkerCacheError /* reason */) |
314 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageKeysError, | 335 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageKeysError, |
315 int /* request_id */, | 336 int /* request_id */, |
316 blink::WebServiceWorkerCacheError /* reason */) | 337 blink::WebServiceWorkerCacheError /* reason */) |
OLD | NEW |