Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1319)

Unified Diff: content/browser/power_profiler/power_profiler_helper_dummy.h

Issue 106223002: chrome power profiler chrome side changes (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698