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

Unified Diff: content/common/content_param_traits_macros.h

Issue 165423002: Use validating IPC enum macros in common param traits. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/events/latency_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/content_param_traits_macros.h
diff --git a/content/common/content_param_traits_macros.h b/content/common/content_param_traits_macros.h
index 38d48d6acdc733b2286409d6a6138c9959dd2187..dff46f325945e168daf114ea3d0bc15b1d52e10e 100644
--- a/content/common/content_param_traits_macros.h
+++ b/content/common/content_param_traits_macros.h
@@ -19,11 +19,16 @@
#undef IPC_MESSAGE_EXPORT
#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
-IPC_ENUM_TRAITS(ResourceType::Type)
-IPC_ENUM_TRAITS(blink::WebContentSecurityPolicyType)
-IPC_ENUM_TRAITS(blink::WebInputEvent::Type)
-IPC_ENUM_TRAITS(blink::WebPageVisibilityState)
-IPC_ENUM_TRAITS(ui::LatencyComponentType)
+IPC_ENUM_TRAITS_MAX_VALUE(ResourceType::Type, ResourceType::LAST_TYPE - 1)
+IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContentSecurityPolicyType,
+ blink::WebContentSecurityPolicyTypeLast)
+IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebInputEvent::Type,
+ blink::WebInputEvent::TypeFirst,
+ blink::WebInputEvent::TypeLast)
+IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPageVisibilityState,
+ blink::WebPageVisibilityStateLast)
+IPC_ENUM_TRAITS_MAX_VALUE(ui::LatencyComponentType,
+ ui::LATENCY_COMPONENT_TYPE_LAST)
IPC_STRUCT_TRAITS_BEGIN(ui::LatencyInfo::LatencyComponent)
IPC_STRUCT_TRAITS_MEMBER(sequence_number)
« no previous file with comments | « no previous file | ui/events/latency_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698