#include "components/feature_engagement/internal/in_memory_event_store.h"
#include <memory>
#include <utility>
#include <vector>
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "components/feature_engagement/internal/event_store.h"
namespace feature_engagement {
InMemoryEventStore::InMemoryEventStore(
std::unique_ptr<std::vector<Event>> events)
: … { … }
InMemoryEventStore::InMemoryEventStore()
: … { … }
InMemoryEventStore::~InMemoryEventStore() = default;
void InMemoryEventStore::Load(OnLoadedCallback callback) { … }
bool InMemoryEventStore::IsReady() const { … }
void InMemoryEventStore::WriteEvent(const Event& event) { … }
void InMemoryEventStore::DeleteEvent(const std::string& event_name) { … }
void InMemoryEventStore::HandleLoadResult(OnLoadedCallback callback,
bool success) { … }
}