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 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 "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/metrics/task_switch_metrics_recorder.h" | 9 #include "ash/metrics/task_switch_metrics_recorder.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 void RecordPeriodicMetrics(); | 179 void RecordPeriodicMetrics(); |
180 | 180 |
181 // Returns true if the user's session is active and they are in a desktop | 181 // Returns true if the user's session is active and they are in a desktop |
182 // environment. | 182 // environment. |
183 bool IsUserInActiveDesktopEnvironment() const; | 183 bool IsUserInActiveDesktopEnvironment() const; |
184 | 184 |
185 // Starts the |timer_| and binds it to |RecordPeriodicMetrics|. | 185 // Starts the |timer_| and binds it to |RecordPeriodicMetrics|. |
186 void StartTimer(); | 186 void StartTimer(); |
187 | 187 |
188 // The periodic timer that triggers metrics to be recorded. | 188 // The periodic timer that triggers metrics to be recorded. |
189 base::RepeatingTimer<UserMetricsRecorder> timer_; | 189 base::RepeatingTimer timer_; |
190 | 190 |
191 TaskSwitchMetricsRecorder task_switch_metrics_recorder_; | 191 TaskSwitchMetricsRecorder task_switch_metrics_recorder_; |
192 | 192 |
193 // Metric recorder to track how often task windows are activated by mouse | 193 // Metric recorder to track how often task windows are activated by mouse |
194 // clicks or touchscreen taps. | 194 // clicks or touchscreen taps. |
195 scoped_ptr<DesktopTaskSwitchMetricRecorder> | 195 scoped_ptr<DesktopTaskSwitchMetricRecorder> |
196 desktop_task_switch_metric_recorder_; | 196 desktop_task_switch_metric_recorder_; |
197 | 197 |
198 DISALLOW_COPY_AND_ASSIGN(UserMetricsRecorder); | 198 DISALLOW_COPY_AND_ASSIGN(UserMetricsRecorder); |
199 }; | 199 }; |
200 | 200 |
201 } // namespace ash | 201 } // namespace ash |
202 | 202 |
203 #endif // ASH_METRICS_USER_METRICS_RECORDER_H_ | 203 #endif // ASH_METRICS_USER_METRICS_RECORDER_H_ |
OLD | NEW |