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 // Asks the browser to enable/disable navigation preload for a registration. | |
191 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_EnableNavigationPreload, | |
192 int /* thread_id */, | |
193 int /* request_id */, | |
194 int /* provider_id */, | |
195 int64_t /* registration_id */, | |
196 bool /* enable */) | |
197 | |
190 // Sends ExtendableMessageEvent to a service worker (renderer->browser). | 198 // Sends ExtendableMessageEvent to a service worker (renderer->browser). |
191 IPC_MESSAGE_CONTROL5( | 199 IPC_MESSAGE_CONTROL5( |
192 ServiceWorkerHostMsg_PostMessageToWorker, | 200 ServiceWorkerHostMsg_PostMessageToWorker, |
193 int /* handle_id */, | 201 int /* handle_id */, |
194 int /* provider_id */, | 202 int /* provider_id */, |
195 base::string16 /* message */, | 203 base::string16 /* message */, |
196 url::Origin /* source_origin */, | 204 url::Origin /* source_origin */, |
197 std::vector<int> /* sent_message_ports */) | 205 std::vector<int> /* sent_message_ports */) |
198 | 206 |
199 // Informs the browser of a new ServiceWorkerProvider in the child process, | 207 // Informs the browser of a new ServiceWorkerProvider in the child process, |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
468 int /* registration_handle_id */) | 476 int /* registration_handle_id */) |
469 | 477 |
470 // Tells the child process to set the controller ServiceWorker for the given | 478 // Tells the child process to set the controller ServiceWorker for the given |
471 // provider. | 479 // provider. |
472 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_SetControllerServiceWorker, | 480 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_SetControllerServiceWorker, |
473 int /* thread_id */, | 481 int /* thread_id */, |
474 int /* provider_id */, | 482 int /* provider_id */, |
475 content::ServiceWorkerObjectInfo, | 483 content::ServiceWorkerObjectInfo, |
476 bool /* should_notify_controllerchange */) | 484 bool /* should_notify_controllerchange */) |
477 | 485 |
486 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidEnableNavigationPreload, | |
487 int /* thread_id */, | |
488 int /* request_id */) | |
489 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_EnableNavigationPreloadError, | |
490 int /* thread_id */, | |
491 int /* request_id */, | |
492 blink::WebServiceWorkerError::ErrorType /* code */, | |
493 base::string16 /* message */) | |
nasko
2016/10/21 16:42:02
Can we transfer the message as std::string and do
falken
2016/10/24 05:14:42
Yes this puzzled me recently too. For some reason
nasko
2016/10/24 15:54:48
Thanks for the background info!
| |
494 | |
478 // Sends MessageEvent to a client document (browser->renderer). | 495 // Sends MessageEvent to a client document (browser->renderer). |
479 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_MessageToDocument, | 496 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_MessageToDocument, |
480 ServiceWorkerMsg_MessageToDocument_Params) | 497 ServiceWorkerMsg_MessageToDocument_Params) |
481 | 498 |
482 // Sent via EmbeddedWorker to dispatch events. | 499 // Sent via EmbeddedWorker to dispatch events. |
483 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, | 500 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, |
484 int /* request_id */) | 501 int /* request_id */) |
485 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, | 502 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, |
486 int /* request_id */) | 503 int /* request_id */) |
487 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ExtendableMessageEvent, | 504 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ExtendableMessageEvent, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
540 | 557 |
541 // Sent via EmbeddedWorker as a response of NavigateClient. | 558 // Sent via EmbeddedWorker as a response of NavigateClient. |
542 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, | 559 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, |
543 int /* request_id */, | 560 int /* request_id */, |
544 content::ServiceWorkerClientInfo /* client */) | 561 content::ServiceWorkerClientInfo /* client */) |
545 | 562 |
546 // Sent via EmbeddedWorker as an error response of NavigateClient. | 563 // Sent via EmbeddedWorker as an error response of NavigateClient. |
547 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, | 564 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, |
548 int /* request_id */, | 565 int /* request_id */, |
549 GURL /* url */) | 566 GURL /* url */) |
OLD | NEW |