#include "components/metrics/daily_event.h"
#include <utility>
#include "base/logging.h"
#include "base/metrics/histogram_functions.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
namespace metrics {
namespace {
void RecordIntervalTypeHistogram(const std::string& histogram_name,
DailyEvent::IntervalType type) { … }
}
DailyEvent::Observer::Observer() { … }
DailyEvent::Observer::~Observer() { … }
DailyEvent::DailyEvent(PrefService* pref_service,
const char* pref_name,
const std::string& histogram_name)
: … { … }
DailyEvent::~DailyEvent() { … }
void DailyEvent::RegisterPref(PrefRegistrySimple* registry,
const std::string& pref_name) { … }
void DailyEvent::AddObserver(std::unique_ptr<DailyEvent::Observer> observer) { … }
void DailyEvent::CheckInterval() { … }
void DailyEvent::OnInterval(base::Time now, IntervalType type) { … }
}