Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: ash/metrics/user_metrics_recorder.h

Issue 2618143002: cros: Remove some OS platform ifdefs from ash (Closed)
Patch Set: rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 ASH_METRICS_USER_METRICS_RECORDER_H_ 5 #ifndef ASH_METRICS_USER_METRICS_RECORDER_H_
6 #define ASH_METRICS_USER_METRICS_RECORDER_H_ 6 #define ASH_METRICS_USER_METRICS_RECORDER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
11 #include "ash/common/metrics/user_metrics_action.h" 11 #include "ash/common/metrics/user_metrics_action.h"
12 #include "ash/metrics/task_switch_metrics_recorder.h" 12 #include "ash/metrics/task_switch_metrics_recorder.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/timer/timer.h" 14 #include "base/timer/timer.h"
15 15
16 namespace ash { 16 namespace ash {
17 17
18 class DesktopTaskSwitchMetricRecorder; 18 class DesktopTaskSwitchMetricRecorder;
19
20 #if defined(OS_CHROMEOS)
21 class PointerMetricsRecorder; 19 class PointerMetricsRecorder;
22 #endif
23 20
24 namespace test { 21 namespace test {
25 class UserMetricsRecorderTestAPI; 22 class UserMetricsRecorderTestAPI;
26 } 23 }
27 24
28 // User Metrics Recorder provides a repeating callback (RecordPeriodicMetrics) 25 // User Metrics Recorder provides a repeating callback (RecordPeriodicMetrics)
29 // on a timer to allow recording of state data over time to the UMA records. 26 // on a timer to allow recording of state data over time to the UMA records.
30 // Any additional states (in ash) that require monitoring can be added to 27 // Any additional states (in ash) that require monitoring can be added to
31 // this class. As well calls to record on action metrics 28 // this class. As well calls to record on action metrics
32 // (RecordUserMetricsAction) are passed through the UserMetricsRecorder. 29 // (RecordUserMetricsAction) are passed through the UserMetricsRecorder.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // The periodic timer that triggers metrics to be recorded. 72 // The periodic timer that triggers metrics to be recorded.
76 base::RepeatingTimer timer_; 73 base::RepeatingTimer timer_;
77 74
78 TaskSwitchMetricsRecorder task_switch_metrics_recorder_; 75 TaskSwitchMetricsRecorder task_switch_metrics_recorder_;
79 76
80 // Metric recorder to track how often task windows are activated by mouse 77 // Metric recorder to track how often task windows are activated by mouse
81 // clicks or touchscreen taps. 78 // clicks or touchscreen taps.
82 std::unique_ptr<DesktopTaskSwitchMetricRecorder> 79 std::unique_ptr<DesktopTaskSwitchMetricRecorder>
83 desktop_task_switch_metric_recorder_; 80 desktop_task_switch_metric_recorder_;
84 81
85 #if defined(OS_CHROMEOS)
86 // Metric recorder to track pointer down events. 82 // Metric recorder to track pointer down events.
87 std::unique_ptr<PointerMetricsRecorder> pointer_metrics_recorder_; 83 std::unique_ptr<PointerMetricsRecorder> pointer_metrics_recorder_;
88 #endif
89 84
90 DISALLOW_COPY_AND_ASSIGN(UserMetricsRecorder); 85 DISALLOW_COPY_AND_ASSIGN(UserMetricsRecorder);
91 }; 86 };
92 87
93 } // namespace ash 88 } // namespace ash
94 89
95 #endif // ASH_METRICS_USER_METRICS_RECORDER_H_ 90 #endif // ASH_METRICS_USER_METRICS_RECORDER_H_
OLDNEW
« no previous file with comments | « ash/magnifier/magnification_controller_unittest.cc ('k') | ash/metrics/user_metrics_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698