| 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 int /* request_id */) | 205 int /* request_id */) |
| 206 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_PushEventFinished, | 206 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_PushEventFinished, |
| 207 int /* request_id */, | 207 int /* request_id */, |
| 208 blink::WebServiceWorkerEventResult) | 208 blink::WebServiceWorkerEventResult) |
| 209 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GeofencingEventFinished, | 209 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GeofencingEventFinished, |
| 210 int /* request_id */) | 210 int /* request_id */) |
| 211 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CrossOriginConnectEventFinished, | 211 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CrossOriginConnectEventFinished, |
| 212 int /* request_id */, | 212 int /* request_id */, |
| 213 bool /* accept_connection */) | 213 bool /* accept_connection */) |
| 214 | 214 |
| 215 // Responds to a Ping from the browser. |
| 216 // Routed to the target ServiceWorkerVersion. |
| 217 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong) |
| 218 |
| 215 // Asks the browser to retrieve documents controlled by the sender | 219 // Asks the browser to retrieve documents controlled by the sender |
| 216 // ServiceWorker. | 220 // ServiceWorker. |
| 217 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments, | 221 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments, |
| 218 int /* request_id */) | 222 int /* request_id */) |
| 219 | 223 |
| 220 // Sends a 'message' event to a client document (renderer->browser). | 224 // Sends a 'message' event to a client document (renderer->browser). |
| 221 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, | 225 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, |
| 222 int /* client_id */, | 226 int /* client_id */, |
| 223 base::string16 /* message */, | 227 base::string16 /* message */, |
| 224 std::vector<int> /* sent_message_port_ids */) | 228 std::vector<int> /* sent_message_port_ids */) |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 std::vector<int> /* new_routing_ids */) | 441 std::vector<int> /* new_routing_ids */) |
| 438 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting, | 442 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting, |
| 439 int /* request_id */) | 443 int /* request_id */) |
| 440 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients, | 444 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients, |
| 441 int /* request_id */) | 445 int /* request_id */) |
| 442 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError, | 446 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError, |
| 443 int /* request_id */, | 447 int /* request_id */, |
| 444 blink::WebServiceWorkerError::ErrorType /* code */, | 448 blink::WebServiceWorkerError::ErrorType /* code */, |
| 445 base::string16 /* message */) | 449 base::string16 /* message */) |
| 446 | 450 |
| 451 // Sent via EmbeddedWorker to Ping the worker, expecting a Pong in response. |
| 452 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_Ping) |
| 453 |
| 447 // Sent via EmbeddedWorker as a response of GetClientDocuments. | 454 // Sent via EmbeddedWorker as a response of GetClientDocuments. |
| 448 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, | 455 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, |
| 449 int /* request_id */, | 456 int /* request_id */, |
| 450 std::vector<content::ServiceWorkerClientInfo>) | 457 std::vector<content::ServiceWorkerClientInfo>) |
| 451 | 458 |
| 452 // Sent via EmbeddedWorker as a response of OpenWindow. | 459 // Sent via EmbeddedWorker as a response of OpenWindow. |
| 453 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowResponse, | 460 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowResponse, |
| 454 int /* request_id */, | 461 int /* request_id */, |
| 455 content::ServiceWorkerClientInfo /* client */) | 462 content::ServiceWorkerClientInfo /* client */) |
| 456 | 463 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 blink::WebServiceWorkerCacheError) | 522 blink::WebServiceWorkerCacheError) |
| 516 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, | 523 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, |
| 517 int /* request_id */, | 524 int /* request_id */, |
| 518 blink::WebServiceWorkerCacheError) | 525 blink::WebServiceWorkerCacheError) |
| 519 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, | 526 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, |
| 520 int /* request_id */, | 527 int /* request_id */, |
| 521 blink::WebServiceWorkerCacheError) | 528 blink::WebServiceWorkerCacheError) |
| 522 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, | 529 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, |
| 523 int /* request_id */, | 530 int /* request_id */, |
| 524 blink::WebServiceWorkerCacheError) | 531 blink::WebServiceWorkerCacheError) |
| OLD | NEW |