| 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);
|
| };
|
|
|
|
|