Index: content/public/browser/power_profiler_observer.h |
diff --git a/content/public/browser/power_profiler_observer.h b/content/public/browser/power_profiler_observer.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5199d255d81a04e7d8b2126f1240aee8109e5d79 |
--- /dev/null |
+++ b/content/public/browser/power_profiler_observer.h |
@@ -0,0 +1,28 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_PUBLIC_BROWSER_POWER_PROFILER_OBSERVER_H_ |
+#define CONTENT_PUBLIC_BROWSER_POWER_PROFILER_OBSERVER_H_ |
+ |
+#include "base/basictypes.h" |
+#include "content/common/content_export.h" |
+ |
+namespace content { |
+ |
+// A class used to monitor the power usage and tell profiler the power data |
+class CONTENT_EXPORT PowerProfilerObserver { |
+ public: |
+ PowerProfilerObserver() {} |
+ virtual ~PowerProfilerObserver() {} |
+ |
+ // This method should be called on UI thread |
+ virtual void OnPowerEvent(const PowerEvent&) = 0; |
qsr
2014/01/29 14:26:52
You must forward declare PowerEvent, otherwise thi
Pan
2014/01/30 01:05:36
Done.
|
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(PowerProfilerObserver); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_BROWSER_POWER_PROFILER_OBSERVER_H_ |