#include "components/supervised_user/core/browser/supervised_user_metrics_service.h"
#include "base/check.h"
#include "base/logging.h"
#include "base/time/time.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
#include "components/supervised_user/core/browser/supervised_user_preferences.h"
#include "components/supervised_user/core/browser/supervised_user_url_filter.h"
#include "components/supervised_user/core/common/pref_names.h"
namespace supervised_user {
namespace {
constexpr base::TimeDelta kTimerInterval = …;
int GetDayId(base::Time time) { … }
}
void SupervisedUserMetricsService::RegisterProfilePrefs(
PrefRegistrySimple* registry) { … }
int SupervisedUserMetricsService::GetDayIdForTesting(base::Time time) { … }
SupervisedUserMetricsService::SupervisedUserMetricsService(
PrefService* pref_service,
supervised_user::SupervisedUserURLFilter* url_filter,
std::unique_ptr<SupervisedUserMetricsServiceExtensionDelegate>
extensions_metrics_delegate)
: … { … }
SupervisedUserMetricsService::~SupervisedUserMetricsService() = default;
void SupervisedUserMetricsService::Shutdown() { … }
void SupervisedUserMetricsService::CheckForNewDay() { … }
}