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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 // ServiceWorker. | 209 // ServiceWorker. |
210 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments, | 210 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments, |
211 int /* request_id */) | 211 int /* request_id */) |
212 | 212 |
213 // Sends a 'message' event to a client document (renderer->browser). | 213 // Sends a 'message' event to a client document (renderer->browser). |
214 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, | 214 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, |
215 int /* client_id */, | 215 int /* client_id */, |
216 base::string16 /* message */, | 216 base::string16 /* message */, |
217 std::vector<int> /* sent_message_port_ids */) | 217 std::vector<int> /* sent_message_port_ids */) |
218 | 218 |
| 219 // Ask the browser to open a tab/window (renderer->browser). |
| 220 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_OpenWindow, |
| 221 int /* request_id */, |
| 222 GURL /* url */) |
| 223 |
219 // Ask the browser to focus a client (renderer->browser). | 224 // Ask the browser to focus a client (renderer->browser). |
220 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, | 225 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, |
221 int /* request_id */, | 226 int /* request_id */, |
222 int /* client_id */) | 227 int /* client_id */) |
223 | 228 |
224 // Asks the browser to force this worker to become activated. | 229 // Asks the browser to force this worker to become activated. |
225 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting, | 230 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting, |
226 int /* request_id */) | 231 int /* request_id */) |
227 | 232 |
228 // CacheStorage operations in the browser. | 233 // CacheStorage operations in the browser. |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 std::vector<int> /* sent_message_port_ids */, | 424 std::vector<int> /* sent_message_port_ids */, |
420 std::vector<int> /* new_routing_ids */) | 425 std::vector<int> /* new_routing_ids */) |
421 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting, | 426 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting, |
422 int /* request_id */) | 427 int /* request_id */) |
423 | 428 |
424 // Sent via EmbeddedWorker as a response of GetClientDocuments. | 429 // Sent via EmbeddedWorker as a response of GetClientDocuments. |
425 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, | 430 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, |
426 int /* request_id */, | 431 int /* request_id */, |
427 std::vector<content::ServiceWorkerClientInfo>) | 432 std::vector<content::ServiceWorkerClientInfo>) |
428 | 433 |
| 434 // Sent via EmbeddedWorker as a response of OpenWindow. |
| 435 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowResponse, |
| 436 int /* request_id */, |
| 437 content::ServiceWorkerClientInfo /* client */) |
| 438 |
| 439 // Sent via EmbeddedWorker as an error response of OpenWindow. |
| 440 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_OpenWindowError, |
| 441 int /* request_id */ ) |
| 442 |
429 // Sent via EmbeddedWorker as a response of FocusClient. | 443 // Sent via EmbeddedWorker as a response of FocusClient. |
430 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, | 444 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, |
431 int /* request_id */, | 445 int /* request_id */, |
432 bool /* result */) | 446 bool /* result */) |
433 | 447 |
434 // Sent via EmbeddedWorker at successful completion of CacheStorage operations. | 448 // Sent via EmbeddedWorker at successful completion of CacheStorage operations. |
435 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_CacheStorageHasSuccess, | 449 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_CacheStorageHasSuccess, |
436 int /* request_id */) | 450 int /* request_id */) |
437 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageOpenSuccess, | 451 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageOpenSuccess, |
438 int /* request_id */, | 452 int /* request_id */, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 blink::WebServiceWorkerCacheError) | 497 blink::WebServiceWorkerCacheError) |
484 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, | 498 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, |
485 int /* request_id */, | 499 int /* request_id */, |
486 blink::WebServiceWorkerCacheError) | 500 blink::WebServiceWorkerCacheError) |
487 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, | 501 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, |
488 int /* request_id */, | 502 int /* request_id */, |
489 blink::WebServiceWorkerCacheError) | 503 blink::WebServiceWorkerCacheError) |
490 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, | 504 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, |
491 int /* request_id */, | 505 int /* request_id */, |
492 blink::WebServiceWorkerCacheError) | 506 blink::WebServiceWorkerCacheError) |
OLD | NEW |