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

Unified Diff: chrome/browser/extensions/api/metrics_private/metrics_private_api.h

Issue 213433003: Add Sparse Histogram Support to metricsPrivate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR Feedback 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/metrics_private/metrics_private_api.h
diff --git a/chrome/browser/extensions/api/metrics_private/metrics_private_api.h b/chrome/browser/extensions/api/metrics_private/metrics_private_api.h
index fce8f8801998d4a2f43f45a92ece2cd493af750e..84264167bd58dc667f46c0c5af448104507a4ef1 100644
--- a/chrome/browser/extensions/api/metrics_private/metrics_private_api.h
+++ b/chrome/browser/extensions/api/metrics_private/metrics_private_api.h
@@ -83,6 +83,19 @@ class MetricsPrivateRecordValueFunction
virtual bool RunImpl() OVERRIDE;
};
+class MetricsPrivateRecordSparseValueFunction
+ : public MetricsHistogramHelperFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("metricsPrivate.recordSparseValue",
+ METRICSPRIVATE_RECORDSPARSEVALUE)
+
+ protected:
+ virtual ~MetricsPrivateRecordSparseValueFunction() {}
+
+ // ExtensionFunction:
+ virtual bool RunImpl() OVERRIDE;
+};
+
class MetricsPrivateRecordPercentageFunction
: public MetricsHistogramHelperFunction {
public:

Powered by Google App Engine
This is Rietveld 408576698