| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_POWER_PROCESS_POWER_COLLECTOR_H_ | 5 #ifndef CHROME_BROWSER_POWER_PROCESS_POWER_COLLECTOR_H_ |
| 6 #define CHROME_BROWSER_POWER_PROCESS_POWER_COLLECTOR_H_ | 6 #define CHROME_BROWSER_POWER_PROCESS_POWER_COLLECTOR_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "base/memory/linked_ptr.h" | 11 #include "base/memory/linked_ptr.h" |
| 11 #include "base/process/process_handle.h" | 12 #include "base/process/process_handle.h" |
| 12 #include "base/process/process_metrics.h" | 13 #include "base/process/process_metrics.h" |
| 13 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
| 15 #include "build/build_config.h" |
| 14 #include "components/power/origin_power_map_factory.h" | 16 #include "components/power/origin_power_map_factory.h" |
| 15 #include "url/gurl.h" | 17 #include "url/gurl.h" |
| 16 | 18 |
| 17 #if defined(OS_CHROMEOS) | 19 #if defined(OS_CHROMEOS) |
| 18 #include "chromeos/dbus/power_manager_client.h" | 20 #include "chromeos/dbus/power_manager_client.h" |
| 19 #endif | 21 #endif |
| 20 | 22 |
| 21 class Profile; | 23 class Profile; |
| 22 | 24 |
| 23 namespace content { | 25 namespace content { |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 // Callback to use to get CPU usage if set. | 142 // Callback to use to get CPU usage if set. |
| 141 CpuUsageCallback cpu_usage_callback_; | 143 CpuUsageCallback cpu_usage_callback_; |
| 142 | 144 |
| 143 // The factor to scale the CPU usage by. | 145 // The factor to scale the CPU usage by. |
| 144 double scale_factor_; | 146 double scale_factor_; |
| 145 | 147 |
| 146 DISALLOW_COPY_AND_ASSIGN(ProcessPowerCollector); | 148 DISALLOW_COPY_AND_ASSIGN(ProcessPowerCollector); |
| 147 }; | 149 }; |
| 148 | 150 |
| 149 #endif // CHROME_BROWSER_POWER_PROCESS_POWER_COLLECTOR_H_ | 151 #endif // CHROME_BROWSER_POWER_PROCESS_POWER_COLLECTOR_H_ |
| OLD | NEW |