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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 int /* request_id */) | 212 int /* request_id */) |
213 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_PushEventFinished, | 213 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_PushEventFinished, |
214 int /* request_id */, | 214 int /* request_id */, |
215 blink::WebServiceWorkerEventResult) | 215 blink::WebServiceWorkerEventResult) |
216 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GeofencingEventFinished, | 216 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GeofencingEventFinished, |
217 int /* request_id */) | 217 int /* request_id */) |
218 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CrossOriginConnectEventFinished, | 218 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CrossOriginConnectEventFinished, |
219 int /* request_id */, | 219 int /* request_id */, |
220 bool /* accept_connection */) | 220 bool /* accept_connection */) |
221 | 221 |
| 222 // Responds to a Ping from the browser. |
| 223 // Routed to the target ServiceWorkerVersion. |
| 224 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong) |
| 225 |
222 // Asks the browser to retrieve documents controlled by the sender | 226 // Asks the browser to retrieve documents controlled by the sender |
223 // ServiceWorker. | 227 // ServiceWorker. |
224 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments, | 228 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments, |
225 int /* request_id */) | 229 int /* request_id */) |
226 | 230 |
227 // Sends a 'message' event to a client document (renderer->browser). | 231 // Sends a 'message' event to a client document (renderer->browser). |
228 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, | 232 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, |
229 int /* client_id */, | 233 int /* client_id */, |
230 base::string16 /* message */, | 234 base::string16 /* message */, |
231 std::vector<int> /* sent_message_port_ids */) | 235 std::vector<int> /* sent_message_port_ids */) |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 std::vector<int> /* new_routing_ids */) | 448 std::vector<int> /* new_routing_ids */) |
445 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting, | 449 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting, |
446 int /* request_id */) | 450 int /* request_id */) |
447 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients, | 451 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients, |
448 int /* request_id */) | 452 int /* request_id */) |
449 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError, | 453 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError, |
450 int /* request_id */, | 454 int /* request_id */, |
451 blink::WebServiceWorkerError::ErrorType /* code */, | 455 blink::WebServiceWorkerError::ErrorType /* code */, |
452 base::string16 /* message */) | 456 base::string16 /* message */) |
453 | 457 |
| 458 // Sent via EmbeddedWorker to Ping the worker, expecting a Pong in response. |
| 459 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_Ping) |
| 460 |
454 // Sent via EmbeddedWorker as a response of GetClientDocuments. | 461 // Sent via EmbeddedWorker as a response of GetClientDocuments. |
455 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, | 462 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, |
456 int /* request_id */, | 463 int /* request_id */, |
457 std::vector<content::ServiceWorkerClientInfo>) | 464 std::vector<content::ServiceWorkerClientInfo>) |
458 | 465 |
459 // Sent via EmbeddedWorker as a response of OpenWindow. | 466 // Sent via EmbeddedWorker as a response of OpenWindow. |
460 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowResponse, | 467 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowResponse, |
461 int /* request_id */, | 468 int /* request_id */, |
462 content::ServiceWorkerClientInfo /* client */) | 469 content::ServiceWorkerClientInfo /* client */) |
463 | 470 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 blink::WebServiceWorkerCacheError) | 529 blink::WebServiceWorkerCacheError) |
523 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, | 530 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, |
524 int /* request_id */, | 531 int /* request_id */, |
525 blink::WebServiceWorkerCacheError) | 532 blink::WebServiceWorkerCacheError) |
526 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, | 533 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, |
527 int /* request_id */, | 534 int /* request_id */, |
528 blink::WebServiceWorkerCacheError) | 535 blink::WebServiceWorkerCacheError) |
529 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, | 536 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, |
530 int /* request_id */, | 537 int /* request_id */, |
531 blink::WebServiceWorkerCacheError) | 538 blink::WebServiceWorkerCacheError) |
OLD | NEW |