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

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

Issue 309803002: [PowerProfiler] Power Profiler service should detect the sampling rate from the 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
« no previous file with comments | « no previous file | content/browser/power_profiler/power_data_provider_ia_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f6c043811f016479cfacc53ff05150fe25e116ec..55c3cd8c4db2a7141625a1788934d9210a03a7cf 100644
--- a/content/browser/power_profiler/power_data_provider.h
+++ b/content/browser/power_profiler/power_data_provider.h
@@ -7,6 +7,7 @@
#include <vector>
+#include "base/basictypes.h"
sky 2014/06/04 15:31:48 Why do you need to add this? If it's to get base::
vivekg 2014/06/04 16:49:31 Done.
#include "base/memory/scoped_ptr.h"
#include "content/browser/power_profiler/power_event.h"
@@ -24,6 +25,9 @@ class PowerDataProvider {
// Returns a vector of power events, one per type, for the types it supports.
virtual PowerEventVector GetData() = 0;
+
+ // Returns sampling rate at which the provider can operate.
+ virtual base::TimeDelta GetSamplingRate() = 0;
};
} // namespace content
« no previous file with comments | « no previous file | 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