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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 int /* request_id */, | 124 int /* request_id */, |
125 int /* provider_id */, | 125 int /* provider_id */, |
126 GURL /* scope (url pattern) */) | 126 GURL /* scope (url pattern) */) |
127 | 127 |
128 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetRegistration, | 128 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetRegistration, |
129 int /* thread_id */, | 129 int /* thread_id */, |
130 int /* request_id */, | 130 int /* request_id */, |
131 int /* provider_id */, | 131 int /* provider_id */, |
132 GURL /* document_url */) | 132 GURL /* document_url */) |
133 | 133 |
| 134 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetRegistrations, |
| 135 int /* thread_id */, |
| 136 int /* request_id */, |
| 137 int /* provider_id */) |
| 138 |
134 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetRegistrationForReady, | 139 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetRegistrationForReady, |
135 int /* thread_id */, | 140 int /* thread_id */, |
136 int /* request_id */, | 141 int /* request_id */, |
137 int /* provider_id */) | 142 int /* provider_id */) |
138 | 143 |
139 // Sends a 'message' event to a service worker (renderer->browser). | 144 // Sends a 'message' event to a service worker (renderer->browser). |
140 IPC_MESSAGE_CONTROL3( | 145 IPC_MESSAGE_CONTROL3( |
141 ServiceWorkerHostMsg_PostMessageToWorker, | 146 ServiceWorkerHostMsg_PostMessageToWorker, |
142 int /* handle_id */, | 147 int /* handle_id */, |
143 base::string16 /* message */, | 148 base::string16 /* message */, |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 int /* request_id */, | 302 int /* request_id */, |
298 bool /* is_success */) | 303 bool /* is_success */) |
299 | 304 |
300 // Response to ServiceWorkerHostMsg_GetRegistration. | 305 // Response to ServiceWorkerHostMsg_GetRegistration. |
301 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration, | 306 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration, |
302 int /* thread_id */, | 307 int /* thread_id */, |
303 int /* request_id */, | 308 int /* request_id */, |
304 content::ServiceWorkerRegistrationObjectInfo, | 309 content::ServiceWorkerRegistrationObjectInfo, |
305 content::ServiceWorkerVersionAttributes) | 310 content::ServiceWorkerVersionAttributes) |
306 | 311 |
| 312 // Response to ServiceWorkerHostMsg_GetRegistrations. |
| 313 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistrations, |
| 314 int /* thread_id */, |
| 315 int /* request_id */, |
| 316 std::vector<content::ServiceWorkerRegistrationObjectInfo>, |
| 317 std::vector<content::ServiceWorkerVersionAttributes>) |
| 318 |
307 // Response to ServiceWorkerHostMsg_GetRegistrationForReady. | 319 // Response to ServiceWorkerHostMsg_GetRegistrationForReady. |
308 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistrationForReady, | 320 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistrationForReady, |
309 int /* thread_id */, | 321 int /* thread_id */, |
310 int /* request_id */, | 322 int /* request_id */, |
311 content::ServiceWorkerRegistrationObjectInfo, | 323 content::ServiceWorkerRegistrationObjectInfo, |
312 content::ServiceWorkerVersionAttributes) | 324 content::ServiceWorkerVersionAttributes) |
313 | 325 |
314 // Sent when any kind of registration error occurs during a | 326 // Sent when any kind of registration error occurs during a |
315 // RegisterServiceWorker handler above. | 327 // RegisterServiceWorker handler above. |
316 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, | 328 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, |
(...skipping 11 matching lines...) Expand all Loading... |
328 base::string16 /* message */) | 340 base::string16 /* message */) |
329 | 341 |
330 // Sent when any kind of registration error occurs during a | 342 // Sent when any kind of registration error occurs during a |
331 // GetRegistration handler above. | 343 // GetRegistration handler above. |
332 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerGetRegistrationError, | 344 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerGetRegistrationError, |
333 int /* thread_id */, | 345 int /* thread_id */, |
334 int /* request_id */, | 346 int /* request_id */, |
335 blink::WebServiceWorkerError::ErrorType /* code */, | 347 blink::WebServiceWorkerError::ErrorType /* code */, |
336 base::string16 /* message */) | 348 base::string16 /* message */) |
337 | 349 |
| 350 // Sent when any kind of registration error occurs during a |
| 351 // GetRegistrations handler above. |
| 352 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerGetRegistrationsError, |
| 353 int /* thread_id */, |
| 354 int /* request_id */, |
| 355 blink::WebServiceWorkerError::ErrorType /* code */, |
| 356 base::string16 /* message */) |
| 357 |
338 // Informs the child process that the ServiceWorker's state has changed. | 358 // Informs the child process that the ServiceWorker's state has changed. |
339 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerStateChanged, | 359 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerStateChanged, |
340 int /* thread_id */, | 360 int /* thread_id */, |
341 int /* handle_id */, | 361 int /* handle_id */, |
342 blink::WebServiceWorkerState) | 362 blink::WebServiceWorkerState) |
343 | 363 |
344 // Tells the child process to set service workers for the given provider. | 364 // Tells the child process to set service workers for the given provider. |
345 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_SetVersionAttributes, | 365 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_SetVersionAttributes, |
346 int /* thread_id */, | 366 int /* thread_id */, |
347 int /* provider_id */, | 367 int /* provider_id */, |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 | 452 |
433 // Sent via EmbeddedWorker as an error response of OpenWindow. | 453 // Sent via EmbeddedWorker as an error response of OpenWindow. |
434 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError, | 454 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError, |
435 int /* request_id */, | 455 int /* request_id */, |
436 std::string /* message */ ) | 456 std::string /* message */ ) |
437 | 457 |
438 // Sent via EmbeddedWorker as a response of FocusClient. | 458 // Sent via EmbeddedWorker as a response of FocusClient. |
439 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, | 459 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, |
440 int /* request_id */, | 460 int /* request_id */, |
441 content::ServiceWorkerClientInfo /* client */) | 461 content::ServiceWorkerClientInfo /* client */) |
OLD | NEW |