Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 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_HELPER_DUMMY_H_ | |
| 6 #define CONTENT_BROWSER_POWER_PROFILER_HELPER_DUMMY_H_ | |
| 7 | |
| 8 #include "content/browser/power_profiler/power_profiler_helper.h" | |
| 9 | |
| 10 namespace content { | |
| 11 | |
| 12 class PowerProfilerHelperDummy : public PowerProfilerHelper { | |
|
pfeldman
2014/01/09 11:38:58
Also move into helper.
| |
| 13 public: | |
| 14 virtual ~PowerProfilerHelperDummy() { } | |
| 15 | |
| 16 virtual bool Initialize() OVERRIDE { return false; } | |
| 17 | |
| 18 virtual void Reset(size_t) OVERRIDE { } | |
| 19 | |
| 20 virtual int GetData(PowerEvent* data, double* energies, int count) OVERRIDE { | |
| 21 return -1; | |
| 22 } | |
| 23 | |
| 24 protected: | |
| 25 PowerProfilerHelperDummy() { } | |
| 26 | |
| 27 private: | |
| 28 friend class PowerProfilerHelperFactory; | |
| 29 DISALLOW_COPY_AND_ASSIGN(PowerProfilerHelperDummy); | |
| 30 }; | |
| 31 | |
| 32 } // namespace content | |
| 33 | |
| 34 #endif // CONTENT_BROWSER_POWER_PROFILER_HELPER_DUMMY_H_ | |
| OLD | NEW |