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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698