| 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 <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 int /* provider_id */) | 188 int /* provider_id */) |
| 189 | 189 |
| 190 // Asks the browser to enable/disable navigation preload for a registration. | 190 // Asks the browser to enable/disable navigation preload for a registration. |
| 191 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_EnableNavigationPreload, | 191 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_EnableNavigationPreload, |
| 192 int /* thread_id */, | 192 int /* thread_id */, |
| 193 int /* request_id */, | 193 int /* request_id */, |
| 194 int /* provider_id */, | 194 int /* provider_id */, |
| 195 int64_t /* registration_id */, | 195 int64_t /* registration_id */, |
| 196 bool /* enable */) | 196 bool /* enable */) |
| 197 | 197 |
| 198 // Asks the browser to get navigation preload state for a registration. |
| 199 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetNavigationPreloadState, |
| 200 int /* thread_id */, |
| 201 int /* request_id */, |
| 202 int /* provider_id */, |
| 203 int64_t /* registration_id */) |
| 204 |
| 198 // Sends ExtendableMessageEvent to a service worker (renderer->browser). | 205 // Sends ExtendableMessageEvent to a service worker (renderer->browser). |
| 199 IPC_MESSAGE_CONTROL5( | 206 IPC_MESSAGE_CONTROL5( |
| 200 ServiceWorkerHostMsg_PostMessageToWorker, | 207 ServiceWorkerHostMsg_PostMessageToWorker, |
| 201 int /* handle_id */, | 208 int /* handle_id */, |
| 202 int /* provider_id */, | 209 int /* provider_id */, |
| 203 base::string16 /* message */, | 210 base::string16 /* message */, |
| 204 url::Origin /* source_origin */, | 211 url::Origin /* source_origin */, |
| 205 std::vector<int> /* sent_message_ports */) | 212 std::vector<int> /* sent_message_ports */) |
| 206 | 213 |
| 207 // Informs the browser of a new ServiceWorkerProvider in the child process, | 214 // Informs the browser of a new ServiceWorkerProvider in the child process, |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 bool /* should_notify_controllerchange */) | 491 bool /* should_notify_controllerchange */) |
| 485 | 492 |
| 486 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidEnableNavigationPreload, | 493 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidEnableNavigationPreload, |
| 487 int /* thread_id */, | 494 int /* thread_id */, |
| 488 int /* request_id */) | 495 int /* request_id */) |
| 489 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_EnableNavigationPreloadError, | 496 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_EnableNavigationPreloadError, |
| 490 int /* thread_id */, | 497 int /* thread_id */, |
| 491 int /* request_id */, | 498 int /* request_id */, |
| 492 blink::WebServiceWorkerError::ErrorType /* code */, | 499 blink::WebServiceWorkerError::ErrorType /* code */, |
| 493 std::string /* message */) | 500 std::string /* message */) |
| 501 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_DidGetNavigationPreloadState, |
| 502 int /* thread_id */, |
| 503 int /* request_id */, |
| 504 bool /* enabled */) |
| 505 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GetNavigationPreloadStateError, |
| 506 int /* thread_id */, |
| 507 int /* request_id */, |
| 508 blink::WebServiceWorkerError::ErrorType /* code */, |
| 509 std::string /* message */) |
| 494 | 510 |
| 495 // Sends MessageEvent to a client document (browser->renderer). | 511 // Sends MessageEvent to a client document (browser->renderer). |
| 496 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_MessageToDocument, | 512 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_MessageToDocument, |
| 497 ServiceWorkerMsg_MessageToDocument_Params) | 513 ServiceWorkerMsg_MessageToDocument_Params) |
| 498 | 514 |
| 499 // Sent via EmbeddedWorker to dispatch events. | 515 // Sent via EmbeddedWorker to dispatch events. |
| 500 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, | 516 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, |
| 501 int /* request_id */) | 517 int /* request_id */) |
| 502 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, | 518 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, |
| 503 int /* request_id */) | 519 int /* request_id */) |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 | 573 |
| 558 // Sent via EmbeddedWorker as a response of NavigateClient. | 574 // Sent via EmbeddedWorker as a response of NavigateClient. |
| 559 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, | 575 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, |
| 560 int /* request_id */, | 576 int /* request_id */, |
| 561 content::ServiceWorkerClientInfo /* client */) | 577 content::ServiceWorkerClientInfo /* client */) |
| 562 | 578 |
| 563 // Sent via EmbeddedWorker as an error response of NavigateClient. | 579 // Sent via EmbeddedWorker as an error response of NavigateClient. |
| 564 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, | 580 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, |
| 565 int /* request_id */, | 581 int /* request_id */, |
| 566 GURL /* url */) | 582 GURL /* url */) |
| OLD | NEW |