#include "components/dom_distiller/core/distilled_content_store.h"
#include "base/task/single_thread_task_runner.h"
#include <memory>
#include <utility>
namespace dom_distiller {
InMemoryContentStore::InMemoryContentStore(const int max_num_entries)
: … { … }
InMemoryContentStore::~InMemoryContentStore() { … }
void InMemoryContentStore::SaveContent(
const ArticleEntry& entry,
const DistilledArticleProto& proto,
InMemoryContentStore::SaveCallback callback) { … }
void InMemoryContentStore::LoadContent(
const ArticleEntry& entry,
InMemoryContentStore::LoadCallback callback) { … }
void InMemoryContentStore::InjectContent(const ArticleEntry& entry,
const DistilledArticleProto& proto) { … }
void InMemoryContentStore::AddUrlToIdMapping(
const ArticleEntry& entry,
const DistilledArticleProto& proto) { … }
void InMemoryContentStore::EraseUrlToIdMapping(
const DistilledArticleProto& proto) { … }
InMemoryContentStore::CacheDeletor::CacheDeletor(InMemoryContentStore* store)
: … { … }
InMemoryContentStore::CacheDeletor::~CacheDeletor() = default;
void InMemoryContentStore::CacheDeletor::operator()(
DistilledArticleProto* proto) { … }
}