| 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_ROUTED3(ServiceWorkerHostMsg_OpenWindow, |
| 228 int /* request_id */, |
| 229 GURL /* url */, |
| 230 GURL /* referrer */) |
| 231 |
| 226 // Ask the browser to focus a client (renderer->browser). | 232 // Ask the browser to focus a client (renderer->browser). |
| 227 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, | 233 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, |
| 228 int /* request_id */, | 234 int /* request_id */, |
| 229 int /* client_id */) | 235 int /* client_id */) |
| 230 | 236 |
| 231 // Response to ServiceWorkerMsg_GetClientInfo. | 237 // Response to ServiceWorkerMsg_GetClientInfo. |
| 232 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClientInfoSuccess, | 238 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClientInfoSuccess, |
| 233 int /* request_id */, | 239 int /* request_id */, |
| 234 content::ServiceWorkerClientInfo) | 240 content::ServiceWorkerClientInfo) |
| 235 | 241 |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 std::vector<int> /* sent_message_port_ids */, | 440 std::vector<int> /* sent_message_port_ids */, |
| 435 std::vector<int> /* new_routing_ids */) | 441 std::vector<int> /* new_routing_ids */) |
| 436 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting, | 442 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting, |
| 437 int /* request_id */) | 443 int /* request_id */) |
| 438 | 444 |
| 439 // Sent via EmbeddedWorker as a response of GetClientDocuments. | 445 // Sent via EmbeddedWorker as a response of GetClientDocuments. |
| 440 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, | 446 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, |
| 441 int /* request_id */, | 447 int /* request_id */, |
| 442 std::vector<content::ServiceWorkerClientInfo>) | 448 std::vector<content::ServiceWorkerClientInfo>) |
| 443 | 449 |
| 450 // Sent via EmbeddedWorker as a response of OpenWindow. |
| 451 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_OpenWindowResponse, |
| 452 int /* request_id */, |
| 453 content::ServiceWorkerClientInfo /* client */, |
| 454 bool /* dummy_client */) |
| 455 |
| 456 // Sent via EmbeddedWorker as an error response of OpenWindow. |
| 457 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_OpenWindowError, |
| 458 int /* request_id */ ) |
| 459 |
| 444 // Sent via EmbeddedWorker as a response of FocusClient. | 460 // Sent via EmbeddedWorker as a response of FocusClient. |
| 445 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, | 461 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, |
| 446 int /* request_id */, | 462 int /* request_id */, |
| 447 bool /* result */) | 463 bool /* result */) |
| 448 | 464 |
| 449 // Sent via EmbeddedWorker at successful completion of CacheStorage operations. | 465 // Sent via EmbeddedWorker at successful completion of CacheStorage operations. |
| 450 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_CacheStorageHasSuccess, | 466 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_CacheStorageHasSuccess, |
| 451 int /* request_id */) | 467 int /* request_id */) |
| 452 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageOpenSuccess, | 468 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageOpenSuccess, |
| 453 int /* request_id */, | 469 int /* request_id */, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 blink::WebServiceWorkerCacheError) | 514 blink::WebServiceWorkerCacheError) |
| 499 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, | 515 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, |
| 500 int /* request_id */, | 516 int /* request_id */, |
| 501 blink::WebServiceWorkerCacheError) | 517 blink::WebServiceWorkerCacheError) |
| 502 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, | 518 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, |
| 503 int /* request_id */, | 519 int /* request_id */, |
| 504 blink::WebServiceWorkerCacheError) | 520 blink::WebServiceWorkerCacheError) |
| 505 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, | 521 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, |
| 506 int /* request_id */, | 522 int /* request_id */, |
| 507 blink::WebServiceWorkerCacheError) | 523 blink::WebServiceWorkerCacheError) |
| OLD | NEW |