#include "chrome/browser/notifications/scheduler/internal/stats.h"
#include <string>
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
#include "base/time/time.h"
#include "chrome/browser/notifications/scheduler/public/notification_data.h"
namespace notifications {
namespace stats {
namespace {
std::string ToHistogramSuffix(SchedulerClientType client_type) { … }
template <typename T>
void LogHistogramEnumWithSuffix(const std::string& name,
T value,
SchedulerClientType client_type) { … }
}
void LogUserAction(const UserActionData& action_data) { … }
void LogBackgroundTaskNotificationShown(int shown_count) { … }
void LogNotificationShow(const NotificationData& notification_data,
SchedulerClientType client_type) { … }
void LogNotificationLifeCycleEvent(NotificationLifeCycleEvent event,
SchedulerClientType client_type) { … }
}
}