#include "components/feature_engagement/internal/availability_model_impl.h"
#include <memory>
#include <utility>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/memory/weak_ptr.h"
#include "components/feature_engagement/internal/persistent_availability_store.h"
namespace feature_engagement {
AvailabilityModelImpl::AvailabilityModelImpl(
StoreLoadCallback store_load_callback)
: … { … }
AvailabilityModelImpl::~AvailabilityModelImpl() = default;
void AvailabilityModelImpl::Initialize(OnInitializedCallback callback,
uint32_t current_day) { … }
bool AvailabilityModelImpl::IsReady() const { … }
std::optional<uint32_t> AvailabilityModelImpl::GetAvailability(
const base::Feature& feature) const { … }
void AvailabilityModelImpl::OnStoreLoadComplete(
OnInitializedCallback on_initialized_callback,
bool success,
std::unique_ptr<std::map<std::string, uint32_t>> feature_availabilities) { … }
}