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

Unified Diff: components/rappor/rappor_service.h

Issue 1090683003: Alternative Multi-dimensional Rappor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: components/rappor/rappor_service.h
diff --git a/components/rappor/rappor_service.h b/components/rappor/rappor_service.h
index d50b91e9ca2edda4878a7314e5344b94e16e6c7d..d78735b548b9448148dec453d0dd1b308ae928f8 100644
--- a/components/rappor/rappor_service.h
+++ b/components/rappor/rappor_service.h
@@ -15,6 +15,8 @@
#include "base/timer/timer.h"
#include "components/metrics/daily_event.h"
#include "components/rappor/rappor_parameters.h"
+#include "components/rappor/sample.h"
+#include "components/rappor/sampler.h"
class PrefRegistrySimple;
class PrefService;
@@ -73,6 +75,11 @@ class RapporService {
// provided PrefRegistry. This should be called before calling Start().
static void RegisterPrefs(PrefRegistrySimple* registry);
+ scoped_ptr<Sample> MakeSampleObj(RapporType);
+
+ void RecordSampleObj(const std::string& metric_name,
+ scoped_ptr<Sample> sample);
+
protected:
// Initializes the state of the RapporService.
void InitializeInternal(scoped_ptr<LogUploaderInterface> uploader,
@@ -141,6 +148,8 @@ class RapporService {
// The map owns the metrics it contains.
std::map<std::string, RapporMetric*> metrics_map_;
+ Sampler sampler_;
+
DISALLOW_COPY_AND_ASSIGN(RapporService);
};

Powered by Google App Engine
This is Rietveld 408576698