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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 // ServiceWorker. | 216 // ServiceWorker. |
217 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments, | 217 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments, |
218 int /* request_id */) | 218 int /* request_id */) |
219 | 219 |
220 // Sends a 'message' event to a client document (renderer->browser). | 220 // Sends a 'message' event to a client document (renderer->browser). |
221 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, | 221 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, |
222 int /* client_id */, | 222 int /* client_id */, |
223 base::string16 /* message */, | 223 base::string16 /* message */, |
224 std::vector<int> /* sent_message_port_ids */) | 224 std::vector<int> /* sent_message_port_ids */) |
225 | 225 |
| 226 // Ask the browser to open a tab/window (renderer->browser). |
| 227 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_OpenWindow, |
| 228 int /* request_id */, |
| 229 GURL /* url */) |
| 230 |
226 // Ask the browser to focus a client (renderer->browser). | 231 // Ask the browser to focus a client (renderer->browser). |
227 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, | 232 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, |
228 int /* request_id */, | 233 int /* request_id */, |
229 int /* client_id */) | 234 int /* client_id */) |
230 | 235 |
231 // Asks the browser to force this worker to become activated. | 236 // Asks the browser to force this worker to become activated. |
232 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting, | 237 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting, |
233 int /* request_id */) | 238 int /* request_id */) |
234 | 239 |
235 // Asks the browser to have this worker take control of pages that match | 240 // Asks the browser to have this worker take control of pages that match |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError, | 442 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError, |
438 int /* request_id */, | 443 int /* request_id */, |
439 blink::WebServiceWorkerError::ErrorType /* code */, | 444 blink::WebServiceWorkerError::ErrorType /* code */, |
440 base::string16 /* message */) | 445 base::string16 /* message */) |
441 | 446 |
442 // Sent via EmbeddedWorker as a response of GetClientDocuments. | 447 // Sent via EmbeddedWorker as a response of GetClientDocuments. |
443 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, | 448 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, |
444 int /* request_id */, | 449 int /* request_id */, |
445 std::vector<content::ServiceWorkerClientInfo>) | 450 std::vector<content::ServiceWorkerClientInfo>) |
446 | 451 |
| 452 // Sent via EmbeddedWorker as a response of OpenWindow. |
| 453 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowResponse, |
| 454 int /* request_id */, |
| 455 content::ServiceWorkerClientInfo /* client */) |
| 456 |
| 457 // Sent via EmbeddedWorker as an error response of OpenWindow. |
| 458 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_OpenWindowError, |
| 459 int /* request_id */ ) |
| 460 |
447 // Sent via EmbeddedWorker as a response of FocusClient. | 461 // Sent via EmbeddedWorker as a response of FocusClient. |
448 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, | 462 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, |
449 int /* request_id */, | 463 int /* request_id */, |
450 bool /* result */) | 464 bool /* result */) |
451 | 465 |
452 // Sent via EmbeddedWorker at successful completion of CacheStorage operations. | 466 // Sent via EmbeddedWorker at successful completion of CacheStorage operations. |
453 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_CacheStorageHasSuccess, | 467 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_CacheStorageHasSuccess, |
454 int /* request_id */) | 468 int /* request_id */) |
455 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageOpenSuccess, | 469 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageOpenSuccess, |
456 int /* request_id */, | 470 int /* request_id */, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 blink::WebServiceWorkerCacheError) | 515 blink::WebServiceWorkerCacheError) |
502 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, | 516 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, |
503 int /* request_id */, | 517 int /* request_id */, |
504 blink::WebServiceWorkerCacheError) | 518 blink::WebServiceWorkerCacheError) |
505 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, | 519 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, |
506 int /* request_id */, | 520 int /* request_id */, |
507 blink::WebServiceWorkerCacheError) | 521 blink::WebServiceWorkerCacheError) |
508 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, | 522 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, |
509 int /* request_id */, | 523 int /* request_id */, |
510 blink::WebServiceWorkerCacheError) | 524 blink::WebServiceWorkerCacheError) |
OLD | NEW |