#include "components/feature_engagement/internal/init_aware_event_model.h"
#include "base/functional/bind.h"
namespace feature_engagement {
InitAwareEventModel::InitAwareEventModel(
std::unique_ptr<EventModel> event_model)
: … { … }
InitAwareEventModel::~InitAwareEventModel() = default;
void InitAwareEventModel::Initialize(OnModelInitializationFinished callback,
uint32_t current_day) { … }
bool InitAwareEventModel::IsReady() const { … }
const Event* InitAwareEventModel::GetEvent(
const std::string& event_name) const { … }
uint32_t InitAwareEventModel::GetEventCount(const std::string& event_name,
uint32_t current_day,
uint32_t window_size) const { … }
void InitAwareEventModel::IncrementEvent(const std::string& event_name,
uint32_t current_day) { … }
void InitAwareEventModel::ClearEvent(const std::string& event_name) { … }
void InitAwareEventModel::IncrementSnooze(const std::string& event_name,
uint32_t current_day,
base::Time current_time) { … }
void InitAwareEventModel::DismissSnooze(const std::string& event_name) { … }
base::Time InitAwareEventModel::GetLastSnoozeTimestamp(
const std::string& event_name) const { … }
uint32_t InitAwareEventModel::GetSnoozeCount(const std::string& event_name,
uint32_t window,
uint32_t current_day) const { … }
bool InitAwareEventModel::IsSnoozeDismissed(
const std::string& event_name) const { … }
void InitAwareEventModel::OnInitializeComplete(
OnModelInitializationFinished callback,
bool success) { … }
size_t InitAwareEventModel::GetQueuedEventCountForTesting() { … }
}