Disable signin-to-Chrome when using Guest profile.
[chromium-blink-merge.git] / content / common / content_param_traits_macros.h
blobdff46f325945e168daf114ea3d0bc15b1d52e10e
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
3 // found in the LICENSE file.
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
7 // file.
8 #ifndef CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_
9 #define CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_
11 #include "content/common/content_export.h"
12 #include "ipc/ipc_message_macros.h"
13 #include "third_party/WebKit/public/web/WebContentSecurityPolicy.h"
14 #include "third_party/WebKit/public/web/WebInputEvent.h"
15 #include "third_party/WebKit/public/web/WebPageVisibilityState.h"
16 #include "ui/events/latency_info.h"
17 #include "webkit/common/resource_type.h"
19 #undef IPC_MESSAGE_EXPORT
20 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
22 IPC_ENUM_TRAITS_MAX_VALUE(ResourceType::Type, ResourceType::LAST_TYPE - 1)
23 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContentSecurityPolicyType,
24 blink::WebContentSecurityPolicyTypeLast)
25 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebInputEvent::Type,
26 blink::WebInputEvent::TypeFirst,
27 blink::WebInputEvent::TypeLast)
28 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPageVisibilityState,
29 blink::WebPageVisibilityStateLast)
30 IPC_ENUM_TRAITS_MAX_VALUE(ui::LatencyComponentType,
31 ui::LATENCY_COMPONENT_TYPE_LAST)
33 IPC_STRUCT_TRAITS_BEGIN(ui::LatencyInfo::LatencyComponent)
34 IPC_STRUCT_TRAITS_MEMBER(sequence_number)
35 IPC_STRUCT_TRAITS_MEMBER(event_time)
36 IPC_STRUCT_TRAITS_MEMBER(event_count)
37 IPC_STRUCT_TRAITS_END()
39 IPC_STRUCT_TRAITS_BEGIN(ui::LatencyInfo)
40 IPC_STRUCT_TRAITS_MEMBER(latency_components)
41 IPC_STRUCT_TRAITS_MEMBER(trace_id)
42 IPC_STRUCT_TRAITS_MEMBER(terminated)
43 IPC_STRUCT_TRAITS_END()
45 #endif // CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_