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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_PushEventFinished, | 236 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_PushEventFinished, |
237 int /* request_id */, | 237 int /* request_id */, |
238 blink::WebServiceWorkerEventResult) | 238 blink::WebServiceWorkerEventResult) |
239 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GeofencingEventFinished, | 239 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GeofencingEventFinished, |
240 int /* request_id */) | 240 int /* request_id */) |
241 | 241 |
242 // Responds to a Ping from the browser. | 242 // Responds to a Ping from the browser. |
243 // Routed to the target ServiceWorkerVersion. | 243 // Routed to the target ServiceWorkerVersion. |
244 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong) | 244 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong) |
245 | 245 |
| 246 // Asks the browser to retrieve client of the sender ServiceWorker. |
| 247 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClient, |
| 248 int /* request_id */, |
| 249 std::string) |
| 250 |
246 // Asks the browser to retrieve clients of the sender ServiceWorker. | 251 // Asks the browser to retrieve clients of the sender ServiceWorker. |
247 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClients, | 252 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClients, |
248 int /* request_id */, | 253 int /* request_id */, |
249 content::ServiceWorkerClientQueryOptions) | 254 content::ServiceWorkerClientQueryOptions) |
250 | 255 |
251 // Sends a 'message' event to a client (renderer->browser). | 256 // Sends a 'message' event to a client (renderer->browser). |
252 IPC_MESSAGE_ROUTED3( | 257 IPC_MESSAGE_ROUTED3( |
253 ServiceWorkerHostMsg_PostMessageToClient, | 258 ServiceWorkerHostMsg_PostMessageToClient, |
254 std::string /* uuid */, | 259 std::string /* uuid */, |
255 base::string16 /* message */, | 260 base::string16 /* message */, |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients, | 466 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients, |
462 int /* request_id */) | 467 int /* request_id */) |
463 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError, | 468 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError, |
464 int /* request_id */, | 469 int /* request_id */, |
465 blink::WebServiceWorkerError::ErrorType /* code */, | 470 blink::WebServiceWorkerError::ErrorType /* code */, |
466 base::string16 /* message */) | 471 base::string16 /* message */) |
467 | 472 |
468 // Sent via EmbeddedWorker to Ping the worker, expecting a Pong in response. | 473 // Sent via EmbeddedWorker to Ping the worker, expecting a Pong in response. |
469 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_Ping) | 474 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_Ping) |
470 | 475 |
| 476 // Sent via EmbeddedWorker as a response of GetClient. |
| 477 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClient, |
| 478 int /* request_id */, |
| 479 content::ServiceWorkerClientInfo) |
| 480 |
471 // Sent via EmbeddedWorker as a response of GetClients. | 481 // Sent via EmbeddedWorker as a response of GetClients. |
472 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClients, | 482 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClients, |
473 int /* request_id */, | 483 int /* request_id */, |
474 std::vector<content::ServiceWorkerClientInfo>) | 484 std::vector<content::ServiceWorkerClientInfo>) |
475 | 485 |
476 // Sent via EmbeddedWorker as a response of OpenWindow. | 486 // Sent via EmbeddedWorker as a response of OpenWindow. |
477 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowResponse, | 487 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowResponse, |
478 int /* request_id */, | 488 int /* request_id */, |
479 content::ServiceWorkerClientInfo /* client */) | 489 content::ServiceWorkerClientInfo /* client */) |
480 | 490 |
481 // Sent via EmbeddedWorker as an error response of OpenWindow. | 491 // Sent via EmbeddedWorker as an error response of OpenWindow. |
482 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError, | 492 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError, |
483 int /* request_id */, | 493 int /* request_id */, |
484 std::string /* message */ ) | 494 std::string /* message */ ) |
485 | 495 |
486 // Sent via EmbeddedWorker as a response of FocusClient. | 496 // Sent via EmbeddedWorker as a response of FocusClient. |
487 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, | 497 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, |
488 int /* request_id */, | 498 int /* request_id */, |
489 content::ServiceWorkerClientInfo /* client */) | 499 content::ServiceWorkerClientInfo /* client */) |
490 | 500 |
491 // Sent via EmbeddedWorker as a response of NavigateClient. | 501 // Sent via EmbeddedWorker as a response of NavigateClient. |
492 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, | 502 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, |
493 int /* request_id */, | 503 int /* request_id */, |
494 content::ServiceWorkerClientInfo /* client */) | 504 content::ServiceWorkerClientInfo /* client */) |
495 | 505 |
496 // Sent via EmbeddedWorker as an error response of NavigateClient. | 506 // Sent via EmbeddedWorker as an error response of NavigateClient. |
497 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, | 507 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, |
498 int /* request_id */, | 508 int /* request_id */, |
499 GURL /* url */) | 509 GURL /* url */) |
OLD | NEW |