Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
|
brettw
2016/02/22 22:07:15
New copyright notice has no "(c)". Also for other
| |
| 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 #ifndef UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_H_ | 5 #ifndef URL_IPC_URL_PARAM_TRAITS_H_ |
| 6 #define UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_H_ | 6 #define URL_IPC_URL_PARAM_TRAITS_H_ |
| 7 | 7 |
| 8 #include "ui/events/ipc/events_ipc_export.h" | 8 #include "ipc/ipc_message_utils.h" |
| 9 #include "ui/events/latency_info.h" | 9 #include "url/gurl.h" |
| 10 #include "url/url_export.h" | |
|
brettw
2016/02/22 22:07:15
Delete this line and the usage of URL_EXPORT below
| |
| 10 | 11 |
| 11 namespace IPC { | 12 namespace IPC { |
| 13 | |
| 12 template <> | 14 template <> |
| 13 struct EVENTS_IPC_EXPORT ParamTraits<ui::LatencyInfo> { | 15 struct URL_EXPORT ParamTraits<GURL> { |
| 14 typedef ui::LatencyInfo param_type; | 16 typedef GURL param_type; |
| 15 static void Write(base::Pickle* m, const param_type& p); | 17 static void Write(base::Pickle* m, const param_type& p); |
| 16 static bool Read(const base::Pickle* m, | 18 static bool Read(const base::Pickle* m, |
| 17 base::PickleIterator* iter, | 19 base::PickleIterator* iter, |
| 18 param_type* p); | 20 param_type* p); |
| 19 static void Log(const param_type& p, std::string* l); | 21 static void Log(const param_type& p, std::string* l); |
| 20 }; | 22 }; |
| 23 | |
| 21 } // namespace IPC | 24 } // namespace IPC |
| 22 | 25 |
| 23 #endif // UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_H_ | 26 #endif // URL_IPC_URL_PARAM_TRAITS_H_ |
| OLD | NEW |