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

Side by Side Diff: content/browser/power_profiler/power_data_provider.h

Issue 140583003: Chrome power profiler service (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove PowerDataProviderFactory Created 6 years, 9 months 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 2014 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_POWER_DATA_PROVIDER_H_
6 #define CONTENT_BROWSER_POWER_PROFILER_POWER_DATA_PROVIDER_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "content/browser/power_profiler/power_event.h"
10
11 namespace content {
12
13 typedef std::vector<PowerEvent> PowerEventVector;
14
15 // A class used to get power usage.
16 class PowerDataProvider {
17 public:
18 static scoped_ptr<PowerDataProvider> Create();
19
20 PowerDataProvider() {}
21 virtual ~PowerDataProvider() {}
22
23 // Returns a vector of power events, one per type, for the types it supports.
24 virtual PowerEventVector GetData() = 0;
25
26 private:
27 DISALLOW_COPY_AND_ASSIGN(PowerDataProvider);
jam 2014/02/27 21:55:04 nit: this isn't needed because an abstract class i
Pan 2014/02/27 22:21:10 thanks, done!
28 };
29
30 } // namespace content
31
32 #endif // CONTENT_BROWSER_POWER_PROFILER_POWER_DATA_PROVIDER_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/devtools_power_handler.cc ('k') | content/browser/power_profiler/power_data_provider_dummy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698