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 #include "content/browser/power_usage_monitor_impl.h" | 5 #include "content/browser/power_usage_monitor_impl.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
10 #include "base/macros.h" | 12 #include "base/macros.h" |
11 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
12 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
13 #include "base/sys_info.h" | 15 #include "base/sys_info.h" |
14 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
15 #include "content/public/browser/notification_service.h" | 17 #include "content/public/browser/notification_service.h" |
16 #include "content/public/browser/notification_source.h" | 18 #include "content/public/browser/notification_source.h" |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 RenderProcessHost* rph = Source<RenderProcessHost>(source).ptr(); | 268 RenderProcessHost* rph = Source<RenderProcessHost>(source).ptr(); |
267 OnRenderProcessNotification(type, rph->GetID()); | 269 OnRenderProcessNotification(type, rph->GetID()); |
268 } | 270 } |
269 | 271 |
270 void PowerUsageMonitor::CancelPendingHistogramReporting() { | 272 void PowerUsageMonitor::CancelPendingHistogramReporting() { |
271 // Cancel any in-progress histogram reports and reporting of discharge UMA. | 273 // Cancel any in-progress histogram reports and reporting of discharge UMA. |
272 system_interface_->CancelPendingHistogramReports(); | 274 system_interface_->CancelPendingHistogramReports(); |
273 } | 275 } |
274 | 276 |
275 } // namespace content | 277 } // namespace content |
OLD | NEW |