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 COMPONENTS_MEMORY_PRESSURE_MEMORY_PRESSURE_STATS_COLLECTOR_H_ | 5 #ifndef COMPONENTS_MEMORY_PRESSURE_MEMORY_PRESSURE_STATS_COLLECTOR_H_ |
6 #define COMPONENTS_MEMORY_PRESSURE_MEMORY_PRESSURE_STATS_COLLECTOR_H_ | 6 #define COMPONENTS_MEMORY_PRESSURE_MEMORY_PRESSURE_STATS_COLLECTOR_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/time/time.h" | 9 #include "base/time/time.h" |
9 #include "components/memory_pressure/memory_pressure_listener.h" | 10 #include "components/memory_pressure/memory_pressure_listener.h" |
10 | 11 |
11 namespace base { | 12 namespace base { |
12 class TickClock; | 13 class TickClock; |
13 } | 14 } |
14 | 15 |
15 namespace memory_pressure { | 16 namespace memory_pressure { |
16 | 17 |
17 // Enumeration of UMA memory pressure levels. The pressure level enum defined in | 18 // Enumeration of UMA memory pressure levels. The pressure level enum defined in |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // the time when this pressure level started. | 85 // the time when this pressure level started. |
85 MemoryPressureLevel last_pressure_level_; | 86 MemoryPressureLevel last_pressure_level_; |
86 base::TimeTicks last_update_time_; | 87 base::TimeTicks last_update_time_; |
87 | 88 |
88 DISALLOW_COPY_AND_ASSIGN(MemoryPressureStatsCollector); | 89 DISALLOW_COPY_AND_ASSIGN(MemoryPressureStatsCollector); |
89 }; | 90 }; |
90 | 91 |
91 } // namespace memory_pressure | 92 } // namespace memory_pressure |
92 | 93 |
93 #endif // COMPONENTS_MEMORY_PRESSURE_MEMORY_PRESSURE_STATS_COLLECTOR_H_ | 94 #endif // COMPONENTS_MEMORY_PRESSURE_MEMORY_PRESSURE_STATS_COLLECTOR_H_ |
OLD | NEW |