OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
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_LATENCY_INFO_H_ | 5 #ifndef UI_EVENTS_LATENCY_INFO_H_ |
6 #define UI_EVENTS_LATENCY_INFO_H_ | 6 #define UI_EVENTS_LATENCY_INFO_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/containers/small_map.h" | 13 #include "base/containers/small_map.h" |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "base/trace_event/trace_event.h" | 17 #include "base/trace_event/trace_event.h" |
18 #include "ipc/ipc_param_traits.h" | 18 #include "ipc/ipc_param_traits.h" |
19 #include "ui/events/events_base_export.h" | 19 #include "ui/events/events_base_export.h" |
20 | 20 |
21 namespace ipc_fuzzer { | |
inferno
2015/08/05 15:40:01
We never sprinkle ipc fuzzer code in regular build
Yufeng Shen (Slow to review)
2015/08/05 16:08:24
I copied from here
https://code.google.com/p/chro
| |
22 template <class T> | |
23 struct FuzzTraits; | |
24 } // namespace ipc_fuzzer | |
25 | |
21 namespace ui { | 26 namespace ui { |
22 | 27 |
23 enum LatencyComponentType { | 28 enum LatencyComponentType { |
24 // ---------------------------BEGIN COMPONENT------------------------------- | 29 // ---------------------------BEGIN COMPONENT------------------------------- |
25 // BEGIN COMPONENT is when we show the latency begin in chrome://tracing. | 30 // BEGIN COMPONENT is when we show the latency begin in chrome://tracing. |
26 // Timestamp when the input event is sent from RenderWidgetHost to renderer. | 31 // Timestamp when the input event is sent from RenderWidgetHost to renderer. |
27 INPUT_EVENT_LATENCY_BEGIN_RWH_COMPONENT, | 32 INPUT_EVENT_LATENCY_BEGIN_RWH_COMPONENT, |
28 // In threaded scrolling, main thread scroll listener update is async to | 33 // In threaded scrolling, main thread scroll listener update is async to |
29 // scroll processing in impl thread. This is the timestamp when we consider | 34 // scroll processing in impl thread. This is the timestamp when we consider |
30 // the main thread scroll listener update is begun. | 35 // the main thread scroll listener update is begun. |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
205 uint32 input_coordinates_size_; | 210 uint32 input_coordinates_size_; |
206 InputCoordinate input_coordinates_[kMaxInputCoordinates]; | 211 InputCoordinate input_coordinates_[kMaxInputCoordinates]; |
207 | 212 |
208 // The unique id for matching the ASYNC_BEGIN/END trace event. | 213 // The unique id for matching the ASYNC_BEGIN/END trace event. |
209 int64 trace_id_; | 214 int64 trace_id_; |
210 // Whether a terminal component has been added. | 215 // Whether a terminal component has been added. |
211 bool terminated_; | 216 bool terminated_; |
212 | 217 |
213 FRIEND_TEST_ALL_PREFIXES(LatencyInfoParamTraitsTest, Basic); | 218 FRIEND_TEST_ALL_PREFIXES(LatencyInfoParamTraitsTest, Basic); |
214 friend struct IPC::ParamTraits<ui::LatencyInfo>; | 219 friend struct IPC::ParamTraits<ui::LatencyInfo>; |
220 friend struct ipc_fuzzer::FuzzTraits<ui::LatencyInfo>; | |
215 }; | 221 }; |
216 | 222 |
217 } // namespace ui | 223 } // namespace ui |
218 | 224 |
219 #endif // UI_EVENTS_LATENCY_INFO_H_ | 225 #endif // UI_EVENTS_LATENCY_INFO_H_ |
OLD | NEW |