chromium/components/dom_distiller/core/distilled_content_store.h

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

#ifndef COMPONENTS_DOM_DISTILLER_CORE_DISTILLED_CONTENT_STORE_H_
#define COMPONENTS_DOM_DISTILLER_CORE_DISTILLED_CONTENT_STORE_H_

#include <memory>
#include <string>
#include <unordered_map>

#include "base/containers/lru_cache.h"
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "components/dom_distiller/core/article_entry.h"
#include "components/dom_distiller/core/proto/distilled_article.pb.h"

namespace dom_distiller {

// The maximum number of items to keep in the cache before deleting some.
const int kDefaultMaxNumCachedEntries =;

// This is a simple interface for saving and loading of distilled content for an
// ArticleEntry.
class DistilledContentStore {};

// This content store keeps up to |max_num_entries| of the last accessed items
// in its cache. Both loading and saving content is counted as access.
// Lookup can be done based on entry ID or URL.
class InMemoryContentStore : public DistilledContentStore {};

}  // namespace dom_distiller

#endif  // COMPONENTS_DOM_DISTILLER_CORE_DISTILLED_CONTENT_STORE_H_