| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetRegistrations, | 180 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetRegistrations, |
| 181 int /* thread_id */, | 181 int /* thread_id */, |
| 182 int /* request_id */, | 182 int /* request_id */, |
| 183 int /* provider_id */) | 183 int /* provider_id */) |
| 184 | 184 |
| 185 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetRegistrationForReady, | 185 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetRegistrationForReady, |
| 186 int /* thread_id */, | 186 int /* thread_id */, |
| 187 int /* request_id */, | 187 int /* request_id */, |
| 188 int /* provider_id */) | 188 int /* provider_id */) |
| 189 | 189 |
| 190 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_SetNavigationPreload, |
| 191 int /* thread_id */, |
| 192 int /* request_id */, |
| 193 int /* handle_id */, |
| 194 std::string /* value */) |
| 195 |
| 196 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetNavigationPreload, |
| 197 int /* thread_id */, |
| 198 int /* request_id */, |
| 199 int /* handle_id */) |
| 200 |
| 190 // Sends ExtendableMessageEvent to a service worker (renderer->browser). | 201 // Sends ExtendableMessageEvent to a service worker (renderer->browser). |
| 191 IPC_MESSAGE_CONTROL5( | 202 IPC_MESSAGE_CONTROL5( |
| 192 ServiceWorkerHostMsg_PostMessageToWorker, | 203 ServiceWorkerHostMsg_PostMessageToWorker, |
| 193 int /* handle_id */, | 204 int /* handle_id */, |
| 194 int /* provider_id */, | 205 int /* provider_id */, |
| 195 base::string16 /* message */, | 206 base::string16 /* message */, |
| 196 url::Origin /* source_origin */, | 207 url::Origin /* source_origin */, |
| 197 std::vector<int> /* sent_message_ports */) | 208 std::vector<int> /* sent_message_ports */) |
| 198 | 209 |
| 199 // Informs the browser of a new ServiceWorkerProvider in the child process, | 210 // Informs the browser of a new ServiceWorkerProvider in the child process, |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 std::vector<content::ServiceWorkerRegistrationObjectInfo>, | 416 std::vector<content::ServiceWorkerRegistrationObjectInfo>, |
| 406 std::vector<content::ServiceWorkerVersionAttributes>) | 417 std::vector<content::ServiceWorkerVersionAttributes>) |
| 407 | 418 |
| 408 // Response to ServiceWorkerHostMsg_GetRegistrationForReady. | 419 // Response to ServiceWorkerHostMsg_GetRegistrationForReady. |
| 409 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistrationForReady, | 420 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistrationForReady, |
| 410 int /* thread_id */, | 421 int /* thread_id */, |
| 411 int /* request_id */, | 422 int /* request_id */, |
| 412 content::ServiceWorkerRegistrationObjectInfo, | 423 content::ServiceWorkerRegistrationObjectInfo, |
| 413 content::ServiceWorkerVersionAttributes) | 424 content::ServiceWorkerVersionAttributes) |
| 414 | 425 |
| 426 // Response to ServiceWorkerHostMsg_SetNavigationPreload. |
| 427 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidSetNavigationPreload, |
| 428 int /* thread_id */, |
| 429 int /* request_id */) |
| 430 |
| 431 // Response to ServiceWorkerHostMsg_GetNavigationPreload. |
| 432 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetNavigationPreload, |
| 433 int /* thread_id */, |
| 434 int /* request_id */, |
| 435 bool /* enabled */, |
| 436 std::string /* value */) |
| 437 |
| 415 // Sent when any kind of registration error occurs during a | 438 // Sent when any kind of registration error occurs during a |
| 416 // RegisterServiceWorker handler above. | 439 // RegisterServiceWorker handler above. |
| 417 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, | 440 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, |
| 418 int /* thread_id */, | 441 int /* thread_id */, |
| 419 int /* request_id */, | 442 int /* request_id */, |
| 420 blink::WebServiceWorkerError::ErrorType /* code */, | 443 blink::WebServiceWorkerError::ErrorType /* code */, |
| 421 base::string16 /* message */) | 444 base::string16 /* message */) |
| 422 | 445 |
| 423 // Sent when any kind of update error occurs during a | 446 // Sent when any kind of update error occurs during a |
| 424 // UpdateServiceWorker handler above. | 447 // UpdateServiceWorker handler above. |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 | 570 |
| 548 // Sent via EmbeddedWorker as a response of NavigateClient. | 571 // Sent via EmbeddedWorker as a response of NavigateClient. |
| 549 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, | 572 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, |
| 550 int /* request_id */, | 573 int /* request_id */, |
| 551 content::ServiceWorkerClientInfo /* client */) | 574 content::ServiceWorkerClientInfo /* client */) |
| 552 | 575 |
| 553 // Sent via EmbeddedWorker as an error response of NavigateClient. | 576 // Sent via EmbeddedWorker as an error response of NavigateClient. |
| 554 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, | 577 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, |
| 555 int /* request_id */, | 578 int /* request_id */, |
| 556 GURL /* url */) | 579 GURL /* url */) |
| OLD | NEW |