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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 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
« no previous file with comments | « ash/magnifier/magnification_controller.cc ('k') | ash/shelf/shelf_layout_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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_
OLDNEW
« no previous file with comments | « ash/magnifier/magnification_controller.cc ('k') | ash/shelf/shelf_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698