Index: content/browser/power_profiler/power_profiler_helper_dummy.h |
diff --git a/content/browser/power_profiler/power_profiler_helper_dummy.h b/content/browser/power_profiler/power_profiler_helper_dummy.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..74103502cf1b35ed485af10545f530522e46eb45 |
--- /dev/null |
+++ b/content/browser/power_profiler/power_profiler_helper_dummy.h |
@@ -0,0 +1,34 @@ |
+// Copyright 2013 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_BROWSER_POWER_PROFILER_HELPER_DUMMY_H_ |
+#define CONTENT_BROWSER_POWER_PROFILER_HELPER_DUMMY_H_ |
+ |
+#include "content/browser/power_profiler/power_profiler_helper.h" |
+ |
+namespace content { |
+ |
+class PowerProfilerHelperDummy : public PowerProfilerHelper { |
pfeldman
2014/01/09 11:38:58
Also move into helper.
|
+ public: |
+ virtual ~PowerProfilerHelperDummy() { } |
+ |
+ virtual bool Initialize() OVERRIDE { return false; } |
+ |
+ virtual void Reset(size_t) OVERRIDE { } |
+ |
+ virtual int GetData(PowerEvent* data, double* energies, int count) OVERRIDE { |
+ return -1; |
+ } |
+ |
+ protected: |
+ PowerProfilerHelperDummy() { } |
+ |
+ private: |
+ friend class PowerProfilerHelperFactory; |
+ DISALLOW_COPY_AND_ASSIGN(PowerProfilerHelperDummy); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_POWER_PROFILER_HELPER_DUMMY_H_ |