OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Singly or Multiply-included shared traits file depending on circumstances. | 5 // Singly or Multiply-included shared traits file depending on circumstances. |
6 // This allows the use of IPC serialization macros in more than one IPC message | 6 // This allows the use of IPC serialization macros in more than one IPC message |
7 // file. | 7 // file. |
8 #ifndef CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ | 8 #ifndef CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ |
9 #define CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ | 9 #define CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ |
10 | 10 |
11 #include "content/public/common/console_message_level.h" | 11 #include "content/public/common/console_message_level.h" |
12 #include "content/public/common/page_transition_types.h" | 12 #include "content/public/common/page_transition_types.h" |
13 #include "content/public/common/referrer.h" | 13 #include "content/public/common/referrer.h" |
14 #include "content/public/common/security_style.h" | 14 #include "content/public/common/security_style.h" |
15 #include "content/public/common/ssl_status.h" | 15 #include "content/public/common/ssl_status.h" |
16 #include "content/public/common/webplugininfo.h" | 16 #include "content/public/common/webplugininfo.h" |
17 #include "ipc/ipc_message_macros.h" | 17 #include "ipc/ipc_message_macros.h" |
18 #include "net/base/network_change_notifier.h" | |
18 #include "net/base/request_priority.h" | 19 #include "net/base/request_priority.h" |
19 #include "third_party/WebKit/public/platform/WebPoint.h" | 20 #include "third_party/WebKit/public/platform/WebPoint.h" |
20 #include "third_party/WebKit/public/platform/WebRect.h" | 21 #include "third_party/WebKit/public/platform/WebRect.h" |
21 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" | 22 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
22 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 23 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
23 #include "third_party/WebKit/public/web/WebWindowFeatures.h" | 24 #include "third_party/WebKit/public/web/WebWindowFeatures.h" |
24 #include "ui/base/window_open_disposition.h" | 25 #include "ui/base/window_open_disposition.h" |
25 #include "webkit/common/webpreferences.h" | 26 #include "webkit/common/webpreferences.h" |
26 | 27 |
27 #undef IPC_MESSAGE_EXPORT | 28 #undef IPC_MESSAGE_EXPORT |
28 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 29 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
29 | 30 |
30 IPC_ENUM_TRAITS(content::PageTransition) // Bitmask. | 31 IPC_ENUM_TRAITS(content::PageTransition) // Bitmask. |
31 | 32 IPC_ENUM_TRAITS_MIN_MAX_VALUE(net::NetworkChangeNotifier::ConnectionType, |
Tom Sepez
2014/05/28 17:40:16
nit: you can use the shorter _MAX_VALUE() form her
jkarlin
2014/05/28 18:00:46
Done.
| |
33 net::NetworkChangeNotifier::CONNECTION_UNKNOWN, | |
34 net::NetworkChangeNotifier::CONNECTION_LAST) | |
32 IPC_ENUM_TRAITS_MAX_VALUE(content::ConsoleMessageLevel, | 35 IPC_ENUM_TRAITS_MAX_VALUE(content::ConsoleMessageLevel, |
33 content::CONSOLE_MESSAGE_LEVEL_LAST) | 36 content::CONSOLE_MESSAGE_LEVEL_LAST) |
34 IPC_ENUM_TRAITS_MAX_VALUE(content::SecurityStyle, | 37 IPC_ENUM_TRAITS_MAX_VALUE(content::SecurityStyle, |
35 content::SECURITY_STYLE_LAST) | 38 content::SECURITY_STYLE_LAST) |
36 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebReferrerPolicy, | 39 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebReferrerPolicy, |
37 blink::WebReferrerPolicyLast) | 40 blink::WebReferrerPolicyLast) |
38 IPC_ENUM_TRAITS_MAX_VALUE(webkit_glue::EditingBehavior, | 41 IPC_ENUM_TRAITS_MAX_VALUE(webkit_glue::EditingBehavior, |
39 webkit_glue::EDITING_BEHAVIOR_LAST) | 42 webkit_glue::EDITING_BEHAVIOR_LAST) |
40 IPC_ENUM_TRAITS_MAX_VALUE(WindowOpenDisposition, | 43 IPC_ENUM_TRAITS_MAX_VALUE(WindowOpenDisposition, |
41 WINDOW_OPEN_DISPOSITION_LAST) | 44 WINDOW_OPEN_DISPOSITION_LAST) |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
114 IPC_STRUCT_TRAITS_MEMBER(remote_fonts_enabled) | 117 IPC_STRUCT_TRAITS_MEMBER(remote_fonts_enabled) |
115 IPC_STRUCT_TRAITS_MEMBER(javascript_can_access_clipboard) | 118 IPC_STRUCT_TRAITS_MEMBER(javascript_can_access_clipboard) |
116 IPC_STRUCT_TRAITS_MEMBER(xslt_enabled) | 119 IPC_STRUCT_TRAITS_MEMBER(xslt_enabled) |
117 IPC_STRUCT_TRAITS_MEMBER(xss_auditor_enabled) | 120 IPC_STRUCT_TRAITS_MEMBER(xss_auditor_enabled) |
118 IPC_STRUCT_TRAITS_MEMBER(dns_prefetching_enabled) | 121 IPC_STRUCT_TRAITS_MEMBER(dns_prefetching_enabled) |
119 IPC_STRUCT_TRAITS_MEMBER(local_storage_enabled) | 122 IPC_STRUCT_TRAITS_MEMBER(local_storage_enabled) |
120 IPC_STRUCT_TRAITS_MEMBER(databases_enabled) | 123 IPC_STRUCT_TRAITS_MEMBER(databases_enabled) |
121 IPC_STRUCT_TRAITS_MEMBER(application_cache_enabled) | 124 IPC_STRUCT_TRAITS_MEMBER(application_cache_enabled) |
122 IPC_STRUCT_TRAITS_MEMBER(tabs_to_links) | 125 IPC_STRUCT_TRAITS_MEMBER(tabs_to_links) |
123 IPC_STRUCT_TRAITS_MEMBER(hyperlink_auditing_enabled) | 126 IPC_STRUCT_TRAITS_MEMBER(hyperlink_auditing_enabled) |
124 IPC_STRUCT_TRAITS_MEMBER(is_online) | 127 IPC_STRUCT_TRAITS_MEMBER(connection_type) |
125 IPC_STRUCT_TRAITS_MEMBER(allow_universal_access_from_file_urls) | 128 IPC_STRUCT_TRAITS_MEMBER(allow_universal_access_from_file_urls) |
126 IPC_STRUCT_TRAITS_MEMBER(allow_file_access_from_file_urls) | 129 IPC_STRUCT_TRAITS_MEMBER(allow_file_access_from_file_urls) |
127 IPC_STRUCT_TRAITS_MEMBER(webaudio_enabled) | 130 IPC_STRUCT_TRAITS_MEMBER(webaudio_enabled) |
128 IPC_STRUCT_TRAITS_MEMBER(experimental_webgl_enabled) | 131 IPC_STRUCT_TRAITS_MEMBER(experimental_webgl_enabled) |
129 IPC_STRUCT_TRAITS_MEMBER(pepper_3d_enabled) | 132 IPC_STRUCT_TRAITS_MEMBER(pepper_3d_enabled) |
130 IPC_STRUCT_TRAITS_MEMBER(pinch_virtual_viewport_enabled) | 133 IPC_STRUCT_TRAITS_MEMBER(pinch_virtual_viewport_enabled) |
131 IPC_STRUCT_TRAITS_MEMBER(pinch_overlay_scrollbar_thickness) | 134 IPC_STRUCT_TRAITS_MEMBER(pinch_overlay_scrollbar_thickness) |
132 IPC_STRUCT_TRAITS_MEMBER(use_solid_color_scrollbars) | 135 IPC_STRUCT_TRAITS_MEMBER(use_solid_color_scrollbars) |
133 IPC_STRUCT_TRAITS_MEMBER(flash_3d_enabled) | 136 IPC_STRUCT_TRAITS_MEMBER(flash_3d_enabled) |
134 IPC_STRUCT_TRAITS_MEMBER(flash_stage3d_enabled) | 137 IPC_STRUCT_TRAITS_MEMBER(flash_stage3d_enabled) |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
214 IPC_STRUCT_TRAITS_MEMBER(statusBarVisible) | 217 IPC_STRUCT_TRAITS_MEMBER(statusBarVisible) |
215 IPC_STRUCT_TRAITS_MEMBER(toolBarVisible) | 218 IPC_STRUCT_TRAITS_MEMBER(toolBarVisible) |
216 IPC_STRUCT_TRAITS_MEMBER(locationBarVisible) | 219 IPC_STRUCT_TRAITS_MEMBER(locationBarVisible) |
217 IPC_STRUCT_TRAITS_MEMBER(scrollbarsVisible) | 220 IPC_STRUCT_TRAITS_MEMBER(scrollbarsVisible) |
218 IPC_STRUCT_TRAITS_MEMBER(resizable) | 221 IPC_STRUCT_TRAITS_MEMBER(resizable) |
219 IPC_STRUCT_TRAITS_MEMBER(fullscreen) | 222 IPC_STRUCT_TRAITS_MEMBER(fullscreen) |
220 IPC_STRUCT_TRAITS_MEMBER(dialog) | 223 IPC_STRUCT_TRAITS_MEMBER(dialog) |
221 IPC_STRUCT_TRAITS_END() | 224 IPC_STRUCT_TRAITS_END() |
222 | 225 |
223 #endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ | 226 #endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ |
OLD | NEW |