Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(494)

Side by Side Diff: content/public/common/common_param_traits_macros.h

Issue 2881073003: Support DataSaver for SharedWorker (Closed)
Patch Set: fix #include "public/web/WebDataSaverFlag.h" Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "build/build_config.h" 11 #include "build/build_config.h"
12 #include "content/public/common/console_message_level.h" 12 #include "content/public/common/console_message_level.h"
13 #include "content/public/common/referrer.h" 13 #include "content/public/common/referrer.h"
14 #include "content/public/common/web_preferences.h" 14 #include "content/public/common/web_preferences.h"
15 #include "content/public/common/webplugininfo.h" 15 #include "content/public/common/webplugininfo.h"
16 #include "ipc/ipc_message_macros.h" 16 #include "ipc/ipc_message_macros.h"
17 #include "net/base/network_change_notifier.h" 17 #include "net/base/network_change_notifier.h"
18 #include "net/base/request_priority.h" 18 #include "net/base/request_priority.h"
19 #include "third_party/WebKit/public/platform/WebPoint.h" 19 #include "third_party/WebKit/public/platform/WebPoint.h"
20 #include "third_party/WebKit/public/platform/WebRect.h" 20 #include "third_party/WebKit/public/platform/WebRect.h"
21 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" 21 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
22 #include "third_party/WebKit/public/platform/WebSecurityStyle.h" 22 #include "third_party/WebKit/public/platform/WebSecurityStyle.h"
23 #include "third_party/WebKit/public/platform/WebURLRequest.h" 23 #include "third_party/WebKit/public/platform/WebURLRequest.h"
24 #include "third_party/WebKit/public/platform/modules/permissions/permission_stat us.mojom.h" 24 #include "third_party/WebKit/public/platform/modules/permissions/permission_stat us.mojom.h"
25 #include "third_party/WebKit/public/web/WebDataSaverFlag.h"
25 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h" 26 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h"
26 #include "third_party/WebKit/public/web/window_features.mojom.h" 27 #include "third_party/WebKit/public/web/window_features.mojom.h"
27 #include "ui/accessibility/ax_node_data.h" 28 #include "ui/accessibility/ax_node_data.h"
28 #include "ui/accessibility/ax_relative_bounds.h" 29 #include "ui/accessibility/ax_relative_bounds.h"
29 #include "ui/accessibility/ax_tree_update.h" 30 #include "ui/accessibility/ax_tree_update.h"
30 #include "ui/base/page_transition_types.h" 31 #include "ui/base/page_transition_types.h"
31 #include "ui/base/window_open_disposition.h" 32 #include "ui/base/window_open_disposition.h"
32 #include "ui/gfx/ipc/geometry/gfx_param_traits.h" 33 #include "ui/gfx/ipc/geometry/gfx_param_traits.h"
33 #include "ui/gfx/ipc/gfx_param_traits.h" 34 #include "ui/gfx/ipc/gfx_param_traits.h"
34 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" 35 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h"
35 #include "ui/gfx/transform.h" 36 #include "ui/gfx/transform.h"
36 37
37 #undef IPC_MESSAGE_EXPORT 38 #undef IPC_MESSAGE_EXPORT
38 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 39 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
39 40
40 IPC_ENUM_TRAITS_VALIDATE(ui::PageTransition, 41 IPC_ENUM_TRAITS_VALIDATE(ui::PageTransition,
41 ((value & 42 ((value &
42 ui::PageTransition::PAGE_TRANSITION_CORE_MASK) <= 43 ui::PageTransition::PAGE_TRANSITION_CORE_MASK) <=
43 ui::PageTransition::PAGE_TRANSITION_LAST_CORE)) 44 ui::PageTransition::PAGE_TRANSITION_LAST_CORE))
44 IPC_ENUM_TRAITS_MAX_VALUE(net::NetworkChangeNotifier::ConnectionType, 45 IPC_ENUM_TRAITS_MAX_VALUE(net::NetworkChangeNotifier::ConnectionType,
45 net::NetworkChangeNotifier::CONNECTION_LAST) 46 net::NetworkChangeNotifier::CONNECTION_LAST)
46 IPC_ENUM_TRAITS_MAX_VALUE(content::ConsoleMessageLevel, 47 IPC_ENUM_TRAITS_MAX_VALUE(content::ConsoleMessageLevel,
47 content::CONSOLE_MESSAGE_LEVEL_LAST) 48 content::CONSOLE_MESSAGE_LEVEL_LAST)
49 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDataSaverFlag,
50 blink::WebDataSaverFlag::kLast)
48 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebFrameSerializerCacheControlPolicy, 51 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebFrameSerializerCacheControlPolicy,
49 blink::WebFrameSerializerCacheControlPolicy::kLast) 52 blink::WebFrameSerializerCacheControlPolicy::kLast)
50 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebReferrerPolicy, 53 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebReferrerPolicy,
51 blink::kWebReferrerPolicyLast) 54 blink::kWebReferrerPolicyLast)
52 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebSecurityStyle, blink::kWebSecurityStyleLast) 55 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebSecurityStyle, blink::kWebSecurityStyleLast)
53 IPC_ENUM_TRAITS_MAX_VALUE(blink::mojom::PermissionStatus, 56 IPC_ENUM_TRAITS_MAX_VALUE(blink::mojom::PermissionStatus,
54 blink::mojom::PermissionStatus::LAST) 57 blink::mojom::PermissionStatus::LAST)
55 IPC_ENUM_TRAITS_MAX_VALUE(content::EditingBehavior, 58 IPC_ENUM_TRAITS_MAX_VALUE(content::EditingBehavior,
56 content::EDITING_BEHAVIOR_LAST) 59 content::EDITING_BEHAVIOR_LAST)
57 IPC_ENUM_TRAITS_MAX_VALUE(WindowOpenDisposition, 60 IPC_ENUM_TRAITS_MAX_VALUE(WindowOpenDisposition,
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 IPC_STRUCT_TRAITS_MEMBER(encrypted_media_enabled) 139 IPC_STRUCT_TRAITS_MEMBER(encrypted_media_enabled)
137 IPC_STRUCT_TRAITS_MEMBER(dom_paste_enabled) 140 IPC_STRUCT_TRAITS_MEMBER(dom_paste_enabled)
138 IPC_STRUCT_TRAITS_MEMBER(shrinks_standalone_images_to_fit) 141 IPC_STRUCT_TRAITS_MEMBER(shrinks_standalone_images_to_fit)
139 IPC_STRUCT_TRAITS_MEMBER(text_areas_are_resizable) 142 IPC_STRUCT_TRAITS_MEMBER(text_areas_are_resizable)
140 IPC_STRUCT_TRAITS_MEMBER(allow_scripts_to_close_windows) 143 IPC_STRUCT_TRAITS_MEMBER(allow_scripts_to_close_windows)
141 IPC_STRUCT_TRAITS_MEMBER(remote_fonts_enabled) 144 IPC_STRUCT_TRAITS_MEMBER(remote_fonts_enabled)
142 IPC_STRUCT_TRAITS_MEMBER(javascript_can_access_clipboard) 145 IPC_STRUCT_TRAITS_MEMBER(javascript_can_access_clipboard)
143 IPC_STRUCT_TRAITS_MEMBER(xslt_enabled) 146 IPC_STRUCT_TRAITS_MEMBER(xslt_enabled)
144 IPC_STRUCT_TRAITS_MEMBER(xss_auditor_enabled) 147 IPC_STRUCT_TRAITS_MEMBER(xss_auditor_enabled)
145 IPC_STRUCT_TRAITS_MEMBER(dns_prefetching_enabled) 148 IPC_STRUCT_TRAITS_MEMBER(dns_prefetching_enabled)
146 IPC_STRUCT_TRAITS_MEMBER(data_saver_enabled) 149 IPC_STRUCT_TRAITS_MEMBER(data_saver_flag)
147 IPC_STRUCT_TRAITS_MEMBER(local_storage_enabled) 150 IPC_STRUCT_TRAITS_MEMBER(local_storage_enabled)
148 IPC_STRUCT_TRAITS_MEMBER(databases_enabled) 151 IPC_STRUCT_TRAITS_MEMBER(databases_enabled)
149 IPC_STRUCT_TRAITS_MEMBER(application_cache_enabled) 152 IPC_STRUCT_TRAITS_MEMBER(application_cache_enabled)
150 IPC_STRUCT_TRAITS_MEMBER(tabs_to_links) 153 IPC_STRUCT_TRAITS_MEMBER(tabs_to_links)
151 IPC_STRUCT_TRAITS_MEMBER(history_entry_requires_user_gesture) 154 IPC_STRUCT_TRAITS_MEMBER(history_entry_requires_user_gesture)
152 IPC_STRUCT_TRAITS_MEMBER(hyperlink_auditing_enabled) 155 IPC_STRUCT_TRAITS_MEMBER(hyperlink_auditing_enabled)
153 IPC_STRUCT_TRAITS_MEMBER(allow_universal_access_from_file_urls) 156 IPC_STRUCT_TRAITS_MEMBER(allow_universal_access_from_file_urls)
154 IPC_STRUCT_TRAITS_MEMBER(allow_file_access_from_file_urls) 157 IPC_STRUCT_TRAITS_MEMBER(allow_file_access_from_file_urls)
155 IPC_STRUCT_TRAITS_MEMBER(experimental_webgl_enabled) 158 IPC_STRUCT_TRAITS_MEMBER(experimental_webgl_enabled)
156 IPC_STRUCT_TRAITS_MEMBER(pepper_3d_enabled) 159 IPC_STRUCT_TRAITS_MEMBER(pepper_3d_enabled)
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXTextAffinity, ui::AX_TEXT_AFFINITY_LAST) 289 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXTextAffinity, ui::AX_TEXT_AFFINITY_LAST)
287 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXEventFrom, ui::AX_EVENT_FROM_LAST) 290 IPC_ENUM_TRAITS_MAX_VALUE(ui::AXEventFrom, ui::AX_EVENT_FROM_LAST)
288 291
289 IPC_STRUCT_TRAITS_BEGIN(ui::AXRelativeBounds) 292 IPC_STRUCT_TRAITS_BEGIN(ui::AXRelativeBounds)
290 IPC_STRUCT_TRAITS_MEMBER(offset_container_id) 293 IPC_STRUCT_TRAITS_MEMBER(offset_container_id)
291 IPC_STRUCT_TRAITS_MEMBER(bounds) 294 IPC_STRUCT_TRAITS_MEMBER(bounds)
292 IPC_STRUCT_TRAITS_MEMBER(transform) 295 IPC_STRUCT_TRAITS_MEMBER(transform)
293 IPC_STRUCT_TRAITS_END() 296 IPC_STRUCT_TRAITS_END()
294 297
295 #endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ 298 #endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698