chromium/components/feature_engagement/internal/persistent_event_store.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/feature_engagement/internal/persistent_event_store.h"

#include <vector>

#include "base/functional/bind.h"
#include "components/feature_engagement/internal/stats.h"
#include "components/leveldb_proto/public/proto_database.h"

namespace feature_engagement {
namespace {

KeyEventPair;
KeyEventList;

void NoopUpdateCallback(bool success) {}

}  // namespace

PersistentEventStore::PersistentEventStore(
    std::unique_ptr<leveldb_proto::ProtoDatabase<Event>> db)
    :{}

PersistentEventStore::~PersistentEventStore() = default;

void PersistentEventStore::Load(OnLoadedCallback callback) {}

bool PersistentEventStore::IsReady() const {}

void PersistentEventStore::WriteEvent(const Event& event) {}

void PersistentEventStore::DeleteEvent(const std::string& event_name) {}

void PersistentEventStore::OnInitComplete(
    OnLoadedCallback callback,
    leveldb_proto::Enums::InitStatus status) {}

void PersistentEventStore::OnLoadComplete(
    OnLoadedCallback callback,
    bool success,
    std::unique_ptr<std::vector<Event>> entries) {}

}  // namespace feature_engagement