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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 IPC_STRUCT_TRAITS_MEMBER(url) | 99 IPC_STRUCT_TRAITS_MEMBER(url) |
100 IPC_STRUCT_TRAITS_MEMBER(frame_type) | 100 IPC_STRUCT_TRAITS_MEMBER(frame_type) |
101 IPC_STRUCT_TRAITS_MEMBER(client_type) | 101 IPC_STRUCT_TRAITS_MEMBER(client_type) |
102 IPC_STRUCT_TRAITS_END() | 102 IPC_STRUCT_TRAITS_END() |
103 | 103 |
104 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientQueryOptions) | 104 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientQueryOptions) |
105 IPC_STRUCT_TRAITS_MEMBER(client_type) | 105 IPC_STRUCT_TRAITS_MEMBER(client_type) |
106 IPC_STRUCT_TRAITS_MEMBER(include_uncontrolled) | 106 IPC_STRUCT_TRAITS_MEMBER(include_uncontrolled) |
107 IPC_STRUCT_TRAITS_END() | 107 IPC_STRUCT_TRAITS_END() |
108 | 108 |
| 109 IPC_STRUCT_BEGIN(ServiceWorkerMsg_MessageToDocument_Params) |
| 110 IPC_STRUCT_MEMBER(int, thread_id) |
| 111 IPC_STRUCT_MEMBER(int, provider_id) |
| 112 IPC_STRUCT_MEMBER(content::ServiceWorkerObjectInfo, service_worker_info) |
| 113 IPC_STRUCT_MEMBER(base::string16, message) |
| 114 IPC_STRUCT_MEMBER(std::vector<content::TransferredMessagePort>, message_ports) |
| 115 IPC_STRUCT_MEMBER(std::vector<int>, new_routing_ids) |
| 116 IPC_STRUCT_END() |
| 117 |
109 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType, | 118 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType, |
110 blink::WebGeofencingEventTypeLast) | 119 blink::WebGeofencingEventTypeLast) |
111 | 120 |
112 //--------------------------------------------------------------------------- | 121 //--------------------------------------------------------------------------- |
113 // Messages sent from the child process to the browser. | 122 // Messages sent from the child process to the browser. |
114 | 123 |
115 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker, | 124 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker, |
116 int /* thread_id */, | 125 int /* thread_id */, |
117 int /* request_id */, | 126 int /* request_id */, |
118 int /* provider_id */, | 127 int /* provider_id */, |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 | 397 |
389 // Tells the child process to set the controller ServiceWorker for the given | 398 // Tells the child process to set the controller ServiceWorker for the given |
390 // provider. | 399 // provider. |
391 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_SetControllerServiceWorker, | 400 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_SetControllerServiceWorker, |
392 int /* thread_id */, | 401 int /* thread_id */, |
393 int /* provider_id */, | 402 int /* provider_id */, |
394 content::ServiceWorkerObjectInfo, | 403 content::ServiceWorkerObjectInfo, |
395 bool /* should_notify_controllerchange */) | 404 bool /* should_notify_controllerchange */) |
396 | 405 |
397 // Sends a 'message' event to a client document (browser->renderer). | 406 // Sends a 'message' event to a client document (browser->renderer). |
398 IPC_MESSAGE_CONTROL5( | 407 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_MessageToDocument, |
399 ServiceWorkerMsg_MessageToDocument, | 408 ServiceWorkerMsg_MessageToDocument_Params) |
400 int /* thread_id */, | |
401 int /* provider_id */, | |
402 base::string16 /* message */, | |
403 std::vector<content::TransferredMessagePort> /* sent_message_ports */, | |
404 std::vector<int> /* new_routing_ids */) | |
405 | 409 |
406 // Sent via EmbeddedWorker to dispatch events. | 410 // Sent via EmbeddedWorker to dispatch events. |
407 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, | 411 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, |
408 int /* request_id */) | 412 int /* request_id */) |
409 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, | 413 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, |
410 int /* request_id */) | 414 int /* request_id */) |
411 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, | 415 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, |
412 int /* request_id */, | 416 int /* request_id */, |
413 content::ServiceWorkerFetchRequest) | 417 content::ServiceWorkerFetchRequest) |
414 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_SyncEvent, | 418 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_SyncEvent, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, | 474 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, |
471 int /* request_id */, | 475 int /* request_id */, |
472 content::ServiceWorkerClientInfo /* client */) | 476 content::ServiceWorkerClientInfo /* client */) |
473 | 477 |
474 // Sent via EmbeddedWorker to transfer a stashed message port to the worker. | 478 // Sent via EmbeddedWorker to transfer a stashed message port to the worker. |
475 IPC_MESSAGE_CONTROL3( | 479 IPC_MESSAGE_CONTROL3( |
476 ServiceWorkerMsg_SendStashedMessagePorts, | 480 ServiceWorkerMsg_SendStashedMessagePorts, |
477 std::vector<content::TransferredMessagePort> /* stashed_message_ports */, | 481 std::vector<content::TransferredMessagePort> /* stashed_message_ports */, |
478 std::vector<int> /* new_routing_ids */, | 482 std::vector<int> /* new_routing_ids */, |
479 std::vector<base::string16> /* port_names */) | 483 std::vector<base::string16> /* port_names */) |
OLD | NEW |