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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerClientType, | 49 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerClientType, |
50 blink::WebServiceWorkerClientTypeLast) | 50 blink::WebServiceWorkerClientTypeLast) |
51 | 51 |
52 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerProviderType, | 52 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerProviderType, |
53 content::SERVICE_WORKER_PROVIDER_TYPE_LAST) | 53 content::SERVICE_WORKER_PROVIDER_TYPE_LAST) |
54 | 54 |
55 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerFetchType, | 55 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerFetchType, |
56 content::ServiceWorkerFetchType::LAST) | 56 content::ServiceWorkerFetchType::LAST) |
57 | 57 |
| 58 IPC_STRUCT_TRAITS_BEGIN(content::ExtendableMessageEventSource) |
| 59 IPC_STRUCT_TRAITS_MEMBER(client_info) |
| 60 IPC_STRUCT_TRAITS_MEMBER(service_worker_info) |
| 61 IPC_STRUCT_TRAITS_END() |
| 62 |
58 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest) | 63 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest) |
59 IPC_STRUCT_TRAITS_MEMBER(mode) | 64 IPC_STRUCT_TRAITS_MEMBER(mode) |
60 IPC_STRUCT_TRAITS_MEMBER(is_main_resource_load) | 65 IPC_STRUCT_TRAITS_MEMBER(is_main_resource_load) |
61 IPC_STRUCT_TRAITS_MEMBER(request_context_type) | 66 IPC_STRUCT_TRAITS_MEMBER(request_context_type) |
62 IPC_STRUCT_TRAITS_MEMBER(frame_type) | 67 IPC_STRUCT_TRAITS_MEMBER(frame_type) |
63 IPC_STRUCT_TRAITS_MEMBER(url) | 68 IPC_STRUCT_TRAITS_MEMBER(url) |
64 IPC_STRUCT_TRAITS_MEMBER(method) | 69 IPC_STRUCT_TRAITS_MEMBER(method) |
65 IPC_STRUCT_TRAITS_MEMBER(headers) | 70 IPC_STRUCT_TRAITS_MEMBER(headers) |
66 IPC_STRUCT_TRAITS_MEMBER(blob_uuid) | 71 IPC_STRUCT_TRAITS_MEMBER(blob_uuid) |
67 IPC_STRUCT_TRAITS_MEMBER(blob_size) | 72 IPC_STRUCT_TRAITS_MEMBER(blob_size) |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 IPC_STRUCT_TRAITS_MEMBER(url) | 120 IPC_STRUCT_TRAITS_MEMBER(url) |
116 IPC_STRUCT_TRAITS_MEMBER(frame_type) | 121 IPC_STRUCT_TRAITS_MEMBER(frame_type) |
117 IPC_STRUCT_TRAITS_MEMBER(client_type) | 122 IPC_STRUCT_TRAITS_MEMBER(client_type) |
118 IPC_STRUCT_TRAITS_END() | 123 IPC_STRUCT_TRAITS_END() |
119 | 124 |
120 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientQueryOptions) | 125 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientQueryOptions) |
121 IPC_STRUCT_TRAITS_MEMBER(client_type) | 126 IPC_STRUCT_TRAITS_MEMBER(client_type) |
122 IPC_STRUCT_TRAITS_MEMBER(include_uncontrolled) | 127 IPC_STRUCT_TRAITS_MEMBER(include_uncontrolled) |
123 IPC_STRUCT_TRAITS_END() | 128 IPC_STRUCT_TRAITS_END() |
124 | 129 |
| 130 IPC_STRUCT_BEGIN(ServiceWorkerMsg_ExtendableMessageEvent_Params) |
| 131 IPC_STRUCT_MEMBER(base::string16, message) |
| 132 IPC_STRUCT_MEMBER(url::Origin, source_origin) |
| 133 IPC_STRUCT_MEMBER(std::vector<content::TransferredMessagePort>, message_ports) |
| 134 IPC_STRUCT_MEMBER(std::vector<int>, new_routing_ids) |
| 135 IPC_STRUCT_MEMBER(content::ExtendableMessageEventSource, source) |
| 136 IPC_STRUCT_END() |
| 137 |
125 IPC_STRUCT_BEGIN(ServiceWorkerMsg_MessageToDocument_Params) | 138 IPC_STRUCT_BEGIN(ServiceWorkerMsg_MessageToDocument_Params) |
126 IPC_STRUCT_MEMBER(int, thread_id) | 139 IPC_STRUCT_MEMBER(int, thread_id) |
127 IPC_STRUCT_MEMBER(int, provider_id) | 140 IPC_STRUCT_MEMBER(int, provider_id) |
128 IPC_STRUCT_MEMBER(content::ServiceWorkerObjectInfo, service_worker_info) | 141 IPC_STRUCT_MEMBER(content::ServiceWorkerObjectInfo, service_worker_info) |
129 IPC_STRUCT_MEMBER(base::string16, message) | 142 IPC_STRUCT_MEMBER(base::string16, message) |
130 IPC_STRUCT_MEMBER(std::vector<content::TransferredMessagePort>, message_ports) | 143 IPC_STRUCT_MEMBER(std::vector<content::TransferredMessagePort>, message_ports) |
131 IPC_STRUCT_MEMBER(std::vector<int>, new_routing_ids) | 144 IPC_STRUCT_MEMBER(std::vector<int>, new_routing_ids) |
132 IPC_STRUCT_END() | 145 IPC_STRUCT_END() |
133 | 146 |
134 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType, | 147 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 int /* thread_id */, | 190 int /* thread_id */, |
178 int /* request_id */, | 191 int /* request_id */, |
179 int /* provider_id */) | 192 int /* provider_id */) |
180 | 193 |
181 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetRegistrationForReady, | 194 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetRegistrationForReady, |
182 int /* thread_id */, | 195 int /* thread_id */, |
183 int /* request_id */, | 196 int /* request_id */, |
184 int /* provider_id */) | 197 int /* provider_id */) |
185 | 198 |
186 // Sends ExtendableMessageEvent to a service worker (renderer->browser). | 199 // Sends ExtendableMessageEvent to a service worker (renderer->browser). |
187 IPC_MESSAGE_CONTROL3( | 200 IPC_MESSAGE_CONTROL5( |
188 ServiceWorkerHostMsg_PostMessageToWorker, | 201 ServiceWorkerHostMsg_PostMessageToWorker, |
189 int /* handle_id */, | 202 int /* handle_id */, |
| 203 int /* provider_id */, |
190 base::string16 /* message */, | 204 base::string16 /* message */, |
| 205 url::Origin /* source_origin */, |
191 std::vector<content::TransferredMessagePort> /* sent_message_ports */) | 206 std::vector<content::TransferredMessagePort> /* sent_message_ports */) |
192 | 207 |
193 // Sends MessageEvent to a service worker (renderer->browser). | 208 // Sends MessageEvent to a service worker (renderer->browser). |
194 // TODO(nhiroki): Remove this after ExtendableMessageEvent is enabled by | 209 // TODO(nhiroki): Remove this after ExtendableMessageEvent is enabled by |
195 // default (crbug.com/543198). | 210 // default (crbug.com/543198). |
196 IPC_MESSAGE_CONTROL3( | 211 IPC_MESSAGE_CONTROL3( |
197 ServiceWorkerHostMsg_DeprecatedPostMessageToWorker, | 212 ServiceWorkerHostMsg_DeprecatedPostMessageToWorker, |
198 int /* handle_id */, | 213 int /* handle_id */, |
199 base::string16 /* message */, | 214 base::string16 /* message */, |
200 std::vector<content::TransferredMessagePort> /* sent_message_ports */) | 215 std::vector<content::TransferredMessagePort> /* sent_message_ports */) |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 | 476 |
462 // Sends MessageEvent to a client document (browser->renderer). | 477 // Sends MessageEvent to a client document (browser->renderer). |
463 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_MessageToDocument, | 478 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_MessageToDocument, |
464 ServiceWorkerMsg_MessageToDocument_Params) | 479 ServiceWorkerMsg_MessageToDocument_Params) |
465 | 480 |
466 // Sent via EmbeddedWorker to dispatch events. | 481 // Sent via EmbeddedWorker to dispatch events. |
467 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, | 482 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, |
468 int /* request_id */) | 483 int /* request_id */) |
469 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, | 484 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, |
470 int /* request_id */) | 485 int /* request_id */) |
471 IPC_MESSAGE_CONTROL4( | 486 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ExtendableMessageEvent, |
472 ServiceWorkerMsg_ExtendableMessageEvent, | 487 int /* request_id */, |
473 int /* request_id */, | 488 ServiceWorkerMsg_ExtendableMessageEvent_Params) |
474 base::string16 /* message */, | |
475 std::vector<content::TransferredMessagePort> /* sent_message_ports */, | |
476 std::vector<int> /* new_routing_ids */) | |
477 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, | 489 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, |
478 int /* request_id */, | 490 int /* request_id */, |
479 content::ServiceWorkerFetchRequest) | 491 content::ServiceWorkerFetchRequest) |
480 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_NotificationClickEvent, | 492 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_NotificationClickEvent, |
481 int /* request_id */, | 493 int /* request_id */, |
482 int64_t /* persistent_notification_id */, | 494 int64_t /* persistent_notification_id */, |
483 content::PlatformNotificationData /* notification_data */, | 495 content::PlatformNotificationData /* notification_data */, |
484 int /* action_index */) | 496 int /* action_index */) |
485 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_NotificationCloseEvent, | 497 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_NotificationCloseEvent, |
486 int /* request_id */, | 498 int /* request_id */, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 | 560 |
549 // Sent via EmbeddedWorker as a response of NavigateClient. | 561 // Sent via EmbeddedWorker as a response of NavigateClient. |
550 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, | 562 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, |
551 int /* request_id */, | 563 int /* request_id */, |
552 content::ServiceWorkerClientInfo /* client */) | 564 content::ServiceWorkerClientInfo /* client */) |
553 | 565 |
554 // Sent via EmbeddedWorker as an error response of NavigateClient. | 566 // Sent via EmbeddedWorker as an error response of NavigateClient. |
555 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, | 567 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, |
556 int /* request_id */, | 568 int /* request_id */, |
557 GURL /* url */) | 569 GURL /* url */) |
OLD | NEW |