| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_TASK_SWITCH_METRIC_RECORDER_H_ | 5 #ifndef ASH_METRICS_TASK_SWITCH_METRIC_RECORDER_H_ |
| 6 #define ASH_METRICS_TASK_SWITCH_METRIC_RECORDER_H_ | 6 #define ASH_METRICS_TASK_SWITCH_METRIC_RECORDER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| 11 #include "base/containers/scoped_ptr_hash_map.h" | 11 #include "base/containers/scoped_ptr_hash_map.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/scoped_ptr.h" |
| 13 | 14 |
| 14 namespace aura { | 15 namespace aura { |
| 15 class Window; | 16 class Window; |
| 16 } // namespace aura | 17 } // namespace aura |
| 17 | 18 |
| 18 namespace ash { | 19 namespace ash { |
| 19 | 20 |
| 20 class TaskSwitchTimeTracker; | 21 class TaskSwitchTimeTracker; |
| 21 | 22 |
| 22 // The TaskSwitchMetricsRecorder class records UMA metrics related to task | 23 // The TaskSwitchMetricsRecorder class records UMA metrics related to task |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // |histogram_map_| is populated on demand the first time a | 88 // |histogram_map_| is populated on demand the first time a |
| 88 // TaskSwitchTimeTracker is needed for a given source. | 89 // TaskSwitchTimeTracker is needed for a given source. |
| 89 base::ScopedPtrHashMap<int, scoped_ptr<TaskSwitchTimeTracker>> histogram_map_; | 90 base::ScopedPtrHashMap<int, scoped_ptr<TaskSwitchTimeTracker>> histogram_map_; |
| 90 | 91 |
| 91 DISALLOW_COPY_AND_ASSIGN(TaskSwitchMetricsRecorder); | 92 DISALLOW_COPY_AND_ASSIGN(TaskSwitchMetricsRecorder); |
| 92 }; | 93 }; |
| 93 | 94 |
| 94 } // namespace ash | 95 } // namespace ash |
| 95 | 96 |
| 96 #endif // ASH_METRICS_TASK_SWITCH_METRIC_RECORDER_H_ | 97 #endif // ASH_METRICS_TASK_SWITCH_METRIC_RECORDER_H_ |
| OLD | NEW |