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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
45 | 45 |
46 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerClientType, | 46 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerClientType, |
47 blink::WebServiceWorkerClientTypeLast) | 47 blink::WebServiceWorkerClientTypeLast) |
48 | 48 |
49 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerProviderType, | 49 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerProviderType, |
50 content::SERVICE_WORKER_PROVIDER_TYPE_LAST) | 50 content::SERVICE_WORKER_PROVIDER_TYPE_LAST) |
51 | 51 |
52 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerFetchType, | 52 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerFetchType, |
53 content::ServiceWorkerFetchType::LAST) | 53 content::ServiceWorkerFetchType::LAST) |
54 | 54 |
55 IPC_STRUCT_TRAITS_BEGIN(content::ExtendableMessageEventSource) | 55 IPC_STRUCT_TRAITS_BEGIN(content::ExtendableMessageEventSource) |
shimazu
2016/12/02 04:00:33
Could you remove this and write StructTraits in se
leonhsl(Using Gerrit)
2016/12/02 08:36:44
Yeah this work should be done sooner or later, but
shimazu
2016/12/05 03:40:21
Sounds good! Let's move them on another CL after m
| |
56 IPC_STRUCT_TRAITS_MEMBER(client_info) | 56 IPC_STRUCT_TRAITS_MEMBER(client_info) |
57 IPC_STRUCT_TRAITS_MEMBER(service_worker_info) | 57 IPC_STRUCT_TRAITS_MEMBER(service_worker_info) |
58 IPC_STRUCT_TRAITS_END() | 58 IPC_STRUCT_TRAITS_END() |
59 | 59 |
60 IPC_STRUCT_TRAITS_BEGIN(content::NavigationPreloadState) | 60 IPC_STRUCT_TRAITS_BEGIN(content::NavigationPreloadState) |
61 IPC_STRUCT_TRAITS_MEMBER(enabled) | 61 IPC_STRUCT_TRAITS_MEMBER(enabled) |
62 IPC_STRUCT_TRAITS_MEMBER(header) | 62 IPC_STRUCT_TRAITS_MEMBER(header) |
63 IPC_STRUCT_TRAITS_END() | 63 IPC_STRUCT_TRAITS_END() |
64 | 64 |
65 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest) | 65 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest) |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
125 IPC_STRUCT_TRAITS_MEMBER(url) | 125 IPC_STRUCT_TRAITS_MEMBER(url) |
126 IPC_STRUCT_TRAITS_MEMBER(frame_type) | 126 IPC_STRUCT_TRAITS_MEMBER(frame_type) |
127 IPC_STRUCT_TRAITS_MEMBER(client_type) | 127 IPC_STRUCT_TRAITS_MEMBER(client_type) |
128 IPC_STRUCT_TRAITS_END() | 128 IPC_STRUCT_TRAITS_END() |
129 | 129 |
130 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientQueryOptions) | 130 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientQueryOptions) |
131 IPC_STRUCT_TRAITS_MEMBER(client_type) | 131 IPC_STRUCT_TRAITS_MEMBER(client_type) |
132 IPC_STRUCT_TRAITS_MEMBER(include_uncontrolled) | 132 IPC_STRUCT_TRAITS_MEMBER(include_uncontrolled) |
133 IPC_STRUCT_TRAITS_END() | 133 IPC_STRUCT_TRAITS_END() |
134 | 134 |
135 IPC_STRUCT_BEGIN(ServiceWorkerMsg_ExtendableMessageEvent_Params) | |
136 IPC_STRUCT_MEMBER(base::string16, message) | |
137 IPC_STRUCT_MEMBER(url::Origin, source_origin) | |
138 IPC_STRUCT_MEMBER(std::vector<int>, message_ports) | |
139 IPC_STRUCT_MEMBER(std::vector<int>, new_routing_ids) | |
140 IPC_STRUCT_MEMBER(content::ExtendableMessageEventSource, source) | |
141 IPC_STRUCT_END() | |
142 | |
143 IPC_STRUCT_BEGIN(ServiceWorkerMsg_MessageToDocument_Params) | 135 IPC_STRUCT_BEGIN(ServiceWorkerMsg_MessageToDocument_Params) |
144 IPC_STRUCT_MEMBER(int, thread_id) | 136 IPC_STRUCT_MEMBER(int, thread_id) |
145 IPC_STRUCT_MEMBER(int, provider_id) | 137 IPC_STRUCT_MEMBER(int, provider_id) |
146 IPC_STRUCT_MEMBER(content::ServiceWorkerObjectInfo, service_worker_info) | 138 IPC_STRUCT_MEMBER(content::ServiceWorkerObjectInfo, service_worker_info) |
147 IPC_STRUCT_MEMBER(base::string16, message) | 139 IPC_STRUCT_MEMBER(base::string16, message) |
148 IPC_STRUCT_MEMBER(std::vector<int>, message_ports) | 140 IPC_STRUCT_MEMBER(std::vector<int>, message_ports) |
149 IPC_STRUCT_MEMBER(std::vector<int>, new_routing_ids) | 141 IPC_STRUCT_MEMBER(std::vector<int>, new_routing_ids) |
150 IPC_STRUCT_END() | 142 IPC_STRUCT_END() |
151 | 143 |
152 IPC_STRUCT_TRAITS_BEGIN(content::PushEventPayload) | 144 IPC_STRUCT_TRAITS_BEGIN(content::PushEventPayload) |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
287 IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_InstallEventFinished, | 279 IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_InstallEventFinished, |
288 int /* request_id */, | 280 int /* request_id */, |
289 blink::WebServiceWorkerEventResult, | 281 blink::WebServiceWorkerEventResult, |
290 bool /* has_fetch_event_handler */, | 282 bool /* has_fetch_event_handler */, |
291 base::Time /* dispatch_event_time */) | 283 base::Time /* dispatch_event_time */) |
292 | 284 |
293 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_ActivateEventFinished, | 285 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_ActivateEventFinished, |
294 int /* request_id */, | 286 int /* request_id */, |
295 blink::WebServiceWorkerEventResult, | 287 blink::WebServiceWorkerEventResult, |
296 base::Time /* dispatch_event_time */) | 288 base::Time /* dispatch_event_time */) |
297 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_ExtendableMessageEventFinished, | |
298 int /* request_id */, | |
299 blink::WebServiceWorkerEventResult, | |
300 base::Time /* dispatch_event_time */) | |
301 IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_FetchEventResponse, | 289 IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_FetchEventResponse, |
302 int /* fetch_event_id */, | 290 int /* fetch_event_id */, |
303 content::ServiceWorkerFetchEventResult, | 291 content::ServiceWorkerFetchEventResult, |
304 content::ServiceWorkerResponse, | 292 content::ServiceWorkerResponse, |
305 base::Time /* dispatch_event_time */) | 293 base::Time /* dispatch_event_time */) |
306 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_NotificationClickEventFinished, | 294 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_NotificationClickEventFinished, |
307 int /* request_id */, | 295 int /* request_id */, |
308 blink::WebServiceWorkerEventResult, | 296 blink::WebServiceWorkerEventResult, |
309 base::Time /* dispatch_event_time */) | 297 base::Time /* dispatch_event_time */) |
310 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_NotificationCloseEventFinished, | 298 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_NotificationCloseEventFinished, |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
531 | 519 |
532 // Sends MessageEvent to a client document (browser->renderer). | 520 // Sends MessageEvent to a client document (browser->renderer). |
533 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_MessageToDocument, | 521 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_MessageToDocument, |
534 ServiceWorkerMsg_MessageToDocument_Params) | 522 ServiceWorkerMsg_MessageToDocument_Params) |
535 | 523 |
536 // Sent via EmbeddedWorker to dispatch events. | 524 // Sent via EmbeddedWorker to dispatch events. |
537 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, | 525 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, |
538 int /* request_id */) | 526 int /* request_id */) |
539 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, | 527 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, |
540 int /* request_id */) | 528 int /* request_id */) |
541 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ExtendableMessageEvent, | |
542 int /* request_id */, | |
543 ServiceWorkerMsg_ExtendableMessageEvent_Params) | |
544 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_NotificationClickEvent, | 529 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_NotificationClickEvent, |
545 int /* request_id */, | 530 int /* request_id */, |
546 std::string /* notification_id */, | 531 std::string /* notification_id */, |
547 content::PlatformNotificationData /* notification_data */, | 532 content::PlatformNotificationData /* notification_data */, |
548 int /* action_index */, | 533 int /* action_index */, |
549 base::NullableString16 /* notification reply */) | 534 base::NullableString16 /* notification reply */) |
550 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_NotificationCloseEvent, | 535 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_NotificationCloseEvent, |
551 int /* request_id */, | 536 int /* request_id */, |
552 std::string /* notification_id */, | 537 std::string /* notification_id */, |
553 content::PlatformNotificationData /* notification_data */) | 538 content::PlatformNotificationData /* notification_data */) |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
594 | 579 |
595 // Sent via EmbeddedWorker as a response of NavigateClient. | 580 // Sent via EmbeddedWorker as a response of NavigateClient. |
596 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, | 581 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, |
597 int /* request_id */, | 582 int /* request_id */, |
598 content::ServiceWorkerClientInfo /* client */) | 583 content::ServiceWorkerClientInfo /* client */) |
599 | 584 |
600 // Sent via EmbeddedWorker as an error response of NavigateClient. | 585 // Sent via EmbeddedWorker as an error response of NavigateClient. |
601 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, | 586 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, |
602 int /* request_id */, | 587 int /* request_id */, |
603 GURL /* url */) | 588 GURL /* url */) |
OLD | NEW |