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

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

Issue 945973002: Add validation to ui::PageTransition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 10 matching lines...) Expand all
21 #include "third_party/WebKit/public/platform/WebRect.h" 21 #include "third_party/WebKit/public/platform/WebRect.h"
22 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" 22 #include "third_party/WebKit/public/platform/WebReferrerPolicy.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/web/WebWindowFeatures.h" 24 #include "third_party/WebKit/public/web/WebWindowFeatures.h"
25 #include "ui/base/page_transition_types.h" 25 #include "ui/base/page_transition_types.h"
26 #include "ui/base/window_open_disposition.h" 26 #include "ui/base/window_open_disposition.h"
27 27
28 #undef IPC_MESSAGE_EXPORT 28 #undef IPC_MESSAGE_EXPORT
29 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 29 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
30 30
31 IPC_ENUM_TRAITS(ui::PageTransition) // Bitmask. 31 IPC_ENUM_TRAITS_VALIDATE(ui::PageTransition,
32 ((value &
33 ui::PageTransition::PAGE_TRANSITION_CORE_MASK) <=
34 ui::PageTransition::PAGE_TRANSITION_LAST_CORE))
32 IPC_ENUM_TRAITS_MAX_VALUE(net::NetworkChangeNotifier::ConnectionType, 35 IPC_ENUM_TRAITS_MAX_VALUE(net::NetworkChangeNotifier::ConnectionType,
33 net::NetworkChangeNotifier::CONNECTION_LAST) 36 net::NetworkChangeNotifier::CONNECTION_LAST)
34 IPC_ENUM_TRAITS_MAX_VALUE(content::ConsoleMessageLevel, 37 IPC_ENUM_TRAITS_MAX_VALUE(content::ConsoleMessageLevel,
35 content::CONSOLE_MESSAGE_LEVEL_LAST) 38 content::CONSOLE_MESSAGE_LEVEL_LAST)
36 IPC_ENUM_TRAITS_MAX_VALUE(content::SecurityStyle, 39 IPC_ENUM_TRAITS_MAX_VALUE(content::SecurityStyle,
37 content::SECURITY_STYLE_LAST) 40 content::SECURITY_STYLE_LAST)
38 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebReferrerPolicy, 41 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebReferrerPolicy,
39 blink::WebReferrerPolicyLast) 42 blink::WebReferrerPolicyLast)
40 IPC_ENUM_TRAITS_MAX_VALUE(content::EditingBehavior, 43 IPC_ENUM_TRAITS_MAX_VALUE(content::EditingBehavior,
41 content::EDITING_BEHAVIOR_LAST) 44 content::EDITING_BEHAVIOR_LAST)
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 IPC_STRUCT_TRAITS_MEMBER(statusBarVisible) 240 IPC_STRUCT_TRAITS_MEMBER(statusBarVisible)
238 IPC_STRUCT_TRAITS_MEMBER(toolBarVisible) 241 IPC_STRUCT_TRAITS_MEMBER(toolBarVisible)
239 IPC_STRUCT_TRAITS_MEMBER(locationBarVisible) 242 IPC_STRUCT_TRAITS_MEMBER(locationBarVisible)
240 IPC_STRUCT_TRAITS_MEMBER(scrollbarsVisible) 243 IPC_STRUCT_TRAITS_MEMBER(scrollbarsVisible)
241 IPC_STRUCT_TRAITS_MEMBER(resizable) 244 IPC_STRUCT_TRAITS_MEMBER(resizable)
242 IPC_STRUCT_TRAITS_MEMBER(fullscreen) 245 IPC_STRUCT_TRAITS_MEMBER(fullscreen)
243 IPC_STRUCT_TRAITS_MEMBER(dialog) 246 IPC_STRUCT_TRAITS_MEMBER(dialog)
244 IPC_STRUCT_TRAITS_END() 247 IPC_STRUCT_TRAITS_END()
245 248
246 #endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ 249 #endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698