Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ui / events / ipc / latency_info_param_traits.h
blob0716f432d9c2bedb937a505291de57f8dce794e8
1 // Copyright 2014 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 #ifndef UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_H_
6 #define UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_H_
8 #include "ui/events/ipc/events_ipc_export.h"
9 #include "ui/events/latency_info.h"
11 namespace IPC {
12 template <>
13 struct EVENTS_IPC_EXPORT ParamTraits<ui::LatencyInfo> {
14 typedef ui::LatencyInfo param_type;
15 static void Write(Message* m, const param_type& p);
16 static bool Read(const Message* m, base::PickleIterator* iter, param_type* p);
17 static void Log(const param_type& p, std::string* l);
19 } // namespace IPC
21 #endif // UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_H_