| // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // Singly or Multiply-included shared traits file depending on circumstances. |
| // This allows the use of IPC serialization macros in more than one IPC message |
| // file. |
| #ifndef CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ |
| #define CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ |
| |
| #include "content/common/content_export.h" |
| #include "ipc/ipc_message_macros.h" |
| #include "third_party/WebKit/public/web/WebContentSecurityPolicy.h" |
| #include "third_party/WebKit/public/web/WebInputEvent.h" |
| #include "third_party/WebKit/public/web/WebPageVisibilityState.h" |
| #include "ui/events/latency_info.h" |
| #include "webkit/common/resource_type.h" |
| |
| #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_STRUCT_TRAITS_BEGIN(ui::LatencyInfo::LatencyComponent) |
| IPC_STRUCT_TRAITS_MEMBER(sequence_number) |
| IPC_STRUCT_TRAITS_MEMBER(event_time) |
| IPC_STRUCT_TRAITS_MEMBER(event_count) |
| IPC_STRUCT_TRAITS_END() |
| |
| IPC_STRUCT_TRAITS_BEGIN(ui::LatencyInfo) |
| IPC_STRUCT_TRAITS_MEMBER(latency_components) |
| IPC_STRUCT_TRAITS_MEMBER(trace_id) |
| IPC_STRUCT_TRAITS_MEMBER(terminated) |
| IPC_STRUCT_TRAITS_END() |
| |
| #endif // CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ |