OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_POWER_PROFILER_POWER_PROFILER_OBSERVER_H_ |
| 6 #define CONTENT_BROWSER_POWER_PROFILER_POWER_PROFILER_OBSERVER_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "content/common/content_export.h" |
| 10 |
| 11 namespace content { |
| 12 |
| 13 struct PowerEvent; |
| 14 |
| 15 // A class used to monitor the power usage and tell profiler the power data |
| 16 class CONTENT_EXPORT PowerProfilerObserver { |
| 17 public: |
| 18 PowerProfilerObserver() {} |
| 19 virtual ~PowerProfilerObserver() {} |
| 20 |
| 21 // This method should be called on UI thread |
| 22 virtual void OnPowerEvent(const PowerEvent&) = 0; |
| 23 |
| 24 private: |
| 25 DISALLOW_COPY_AND_ASSIGN(PowerProfilerObserver); |
| 26 }; |
| 27 |
| 28 } // namespace content |
| 29 |
| 30 #endif // CONTENT_BROWSER_POWER_PROFILER_POWER_PROFILER_OBSERVER_H_ |
OLD | NEW |