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

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

Issue 332943005: [Chromium] [PowerProfiler] Support accuracy level attribute for power data provider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch for landing! Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/power_profiler/power_data_provider.h
diff --git a/content/browser/power_profiler/power_data_provider.h b/content/browser/power_profiler/power_data_provider.h
index 85f67e7f5fb9a048c45eab8cf5cea4fe457a5d54..897bc9b636ca3158a77d70d80a9b9ad02d8e9203 100644
--- a/content/browser/power_profiler/power_data_provider.h
+++ b/content/browser/power_profiler/power_data_provider.h
@@ -21,6 +21,12 @@ typedef std::vector<PowerEvent> PowerEventVector;
// A class used to get power usage.
class PowerDataProvider {
public:
+ enum AccuracyLevel {
+ High,
+ Moderate,
+ Low
+ };
+
static scoped_ptr<PowerDataProvider> Create();
PowerDataProvider() {}
@@ -31,6 +37,9 @@ class PowerDataProvider {
// Returns sampling rate at which the provider can operate.
virtual base::TimeDelta GetSamplingRate() = 0;
+
+ // Returns accuracy level of the provider.
+ virtual AccuracyLevel GetAccuracyLevel() = 0;
};
} // namespace content
« no previous file with comments | « content/browser/devtools/devtools_power_handler.cc ('k') | content/browser/power_profiler/power_data_provider_ia_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698