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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 int /* request_id */, | 308 int /* request_id */, |
304 bool /* is_success */) | 309 bool /* is_success */) |
305 | 310 |
306 // Response to ServiceWorkerHostMsg_GetRegistration. | 311 // Response to ServiceWorkerHostMsg_GetRegistration. |
307 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration, | 312 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration, |
308 int /* thread_id */, | 313 int /* thread_id */, |
309 int /* request_id */, | 314 int /* request_id */, |
310 content::ServiceWorkerRegistrationObjectInfo, | 315 content::ServiceWorkerRegistrationObjectInfo, |
311 content::ServiceWorkerVersionAttributes) | 316 content::ServiceWorkerVersionAttributes) |
312 | 317 |
| 318 // Response to ServiceWorkerHostMsg_GetRegistrations. |
| 319 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistrations, |
| 320 int /* thread_id */, |
| 321 int /* request_id */, |
| 322 std::vector<content::ServiceWorkerRegistrationObjectInfo>, |
| 323 std::vector<content::ServiceWorkerVersionAttributes>) |
| 324 |
313 // Response to ServiceWorkerHostMsg_GetRegistrationForReady. | 325 // Response to ServiceWorkerHostMsg_GetRegistrationForReady. |
314 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistrationForReady, | 326 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistrationForReady, |
315 int /* thread_id */, | 327 int /* thread_id */, |
316 int /* request_id */, | 328 int /* request_id */, |
317 content::ServiceWorkerRegistrationObjectInfo, | 329 content::ServiceWorkerRegistrationObjectInfo, |
318 content::ServiceWorkerVersionAttributes) | 330 content::ServiceWorkerVersionAttributes) |
319 | 331 |
320 // Sent when any kind of registration error occurs during a | 332 // Sent when any kind of registration error occurs during a |
321 // RegisterServiceWorker handler above. | 333 // RegisterServiceWorker handler above. |
322 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, | 334 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, |
(...skipping 11 matching lines...) Expand all Loading... |
334 base::string16 /* message */) | 346 base::string16 /* message */) |
335 | 347 |
336 // Sent when any kind of registration error occurs during a | 348 // Sent when any kind of registration error occurs during a |
337 // GetRegistration handler above. | 349 // GetRegistration handler above. |
338 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerGetRegistrationError, | 350 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerGetRegistrationError, |
339 int /* thread_id */, | 351 int /* thread_id */, |
340 int /* request_id */, | 352 int /* request_id */, |
341 blink::WebServiceWorkerError::ErrorType /* code */, | 353 blink::WebServiceWorkerError::ErrorType /* code */, |
342 base::string16 /* message */) | 354 base::string16 /* message */) |
343 | 355 |
| 356 // Sent when any kind of registration error occurs during a |
| 357 // GetRegistrations handler above. |
| 358 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerGetRegistrationsError, |
| 359 int /* thread_id */, |
| 360 int /* request_id */, |
| 361 blink::WebServiceWorkerError::ErrorType /* code */, |
| 362 base::string16 /* message */) |
| 363 |
344 // Informs the child process that the ServiceWorker's state has changed. | 364 // Informs the child process that the ServiceWorker's state has changed. |
345 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerStateChanged, | 365 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerStateChanged, |
346 int /* thread_id */, | 366 int /* thread_id */, |
347 int /* handle_id */, | 367 int /* handle_id */, |
348 blink::WebServiceWorkerState) | 368 blink::WebServiceWorkerState) |
349 | 369 |
350 // Tells the child process to set service workers for the given provider. | 370 // Tells the child process to set service workers for the given provider. |
351 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_SetVersionAttributes, | 371 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_SetVersionAttributes, |
352 int /* thread_id */, | 372 int /* thread_id */, |
353 int /* provider_id */, | 373 int /* provider_id */, |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, | 465 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, |
446 int /* request_id */, | 466 int /* request_id */, |
447 content::ServiceWorkerClientInfo /* client */) | 467 content::ServiceWorkerClientInfo /* client */) |
448 | 468 |
449 // Sent via EmbeddedWorker to transfer a stashed message port to the worker. | 469 // Sent via EmbeddedWorker to transfer a stashed message port to the worker. |
450 IPC_MESSAGE_CONTROL3( | 470 IPC_MESSAGE_CONTROL3( |
451 ServiceWorkerMsg_SendStashedMessagePorts, | 471 ServiceWorkerMsg_SendStashedMessagePorts, |
452 std::vector<content::TransferredMessagePort> /* stashed_message_ports */, | 472 std::vector<content::TransferredMessagePort> /* stashed_message_ports */, |
453 std::vector<int> /* new_routing_ids */, | 473 std::vector<int> /* new_routing_ids */, |
454 std::vector<base::string16> /* port_names */) | 474 std::vector<base::string16> /* port_names */) |
OLD | NEW |