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_FILTERED_MEMORY_PRESSURE_CALCULATOR_H_ | 5 #ifndef COMPONENTS_MEMORY_PRESSURE_FILTERED_MEMORY_PRESSURE_CALCULATOR_H_ |
6 #define COMPONENTS_MEMORY_PRESSURE_FILTERED_MEMORY_PRESSURE_CALCULATOR_H_ | 6 #define COMPONENTS_MEMORY_PRESSURE_FILTERED_MEMORY_PRESSURE_CALCULATOR_H_ |
7 | 7 |
8 #include "components/memory_pressure/memory_pressure_calculator.h" | 8 #include "components/memory_pressure/memory_pressure_calculator.h" |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "base/time/time.h" | 11 #include "base/time/time.h" |
11 | 12 |
12 namespace base { | 13 namespace base { |
13 class TickClock; | 14 class TickClock; |
14 } // namespace base | 15 } // namespace base |
15 | 16 |
16 namespace memory_pressure { | 17 namespace memory_pressure { |
17 | 18 |
18 #if defined(MEMORY_PRESSURE_IS_POLLING) | 19 #if defined(MEMORY_PRESSURE_IS_POLLING) |
19 | 20 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 MemoryPressureLevel cooldown_high_tide_; | 74 MemoryPressureLevel cooldown_high_tide_; |
74 | 75 |
75 DISALLOW_COPY_AND_ASSIGN(FilteredMemoryPressureCalculator); | 76 DISALLOW_COPY_AND_ASSIGN(FilteredMemoryPressureCalculator); |
76 }; | 77 }; |
77 | 78 |
78 #endif // defined(MEMORY_PRESSURE_IS_POLLING) | 79 #endif // defined(MEMORY_PRESSURE_IS_POLLING) |
79 | 80 |
80 } // namespace memory_pressure | 81 } // namespace memory_pressure |
81 | 82 |
82 #endif // COMPONENTS_MEMORY_PRESSURE_FILTERED_MEMORY_PRESSURE_CALCULATOR_H_ | 83 #endif // COMPONENTS_MEMORY_PRESSURE_FILTERED_MEMORY_PRESSURE_CALCULATOR_H_ |
OLD | NEW |