#include "base/metrics/single_sample_metrics.h"
#include "base/memory/ptr_util.h"
#include "base/metrics/histogram.h"
namespace base {
static SingleSampleMetricsFactory* g_factory = …;
SingleSampleMetricsFactory* SingleSampleMetricsFactory::Get() { … }
void SingleSampleMetricsFactory::SetFactory(
std::unique_ptr<SingleSampleMetricsFactory> factory) { … }
void SingleSampleMetricsFactory::DeleteFactoryForTesting() { … }
std::unique_ptr<SingleSampleMetric>
DefaultSingleSampleMetricsFactory::CreateCustomCountsMetric(
const std::string& histogram_name,
HistogramBase::Sample min,
HistogramBase::Sample max,
uint32_t bucket_count) { … }
DefaultSingleSampleMetric::DefaultSingleSampleMetric(
const std::string& histogram_name,
HistogramBase::Sample min,
HistogramBase::Sample max,
uint32_t bucket_count,
int32_t flags)
: … { … }
DefaultSingleSampleMetric::~DefaultSingleSampleMetric() { … }
void DefaultSingleSampleMetric::SetSample(HistogramBase::Sample sample) { … }
}