Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Unified Diff: components/dom_distiller/core/distilled_content_store.h

Issue 1763273002: base: Remove OwningMRUCache in favor of scoped_ptrs in MRUCache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + fix Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/dom_distiller/core/distilled_content_store.h
diff --git a/components/dom_distiller/core/distilled_content_store.h b/components/dom_distiller/core/distilled_content_store.h
index e83501aa048b53f6fa58fc6d63f80275016b43d7..62bbb49eb66989ca5c65467841932e0cde1d8269 100644
--- a/components/dom_distiller/core/distilled_content_store.h
+++ b/components/dom_distiller/core/distilled_content_store.h
@@ -64,7 +64,7 @@ class InMemoryContentStore : public DistilledContentStore {
public:
explicit CacheDeletor(InMemoryContentStore* store);
~CacheDeletor();
- void operator()(const DistilledArticleProto& proto);
+ void operator()(DistilledArticleProto* proto);
private:
InMemoryContentStore* store_;
@@ -75,10 +75,9 @@ class InMemoryContentStore : public DistilledContentStore {
void EraseUrlToIdMapping(const DistilledArticleProto& proto);
- typedef base::MRUCacheBase<std::string,
- DistilledArticleProto,
- std::less<std::string>,
- InMemoryContentStore::CacheDeletor>
+ typedef base::MRUCache<std::string,
+ scoped_ptr<DistilledArticleProto, CacheDeletor>>
+
ContentMap;
typedef base::hash_map<std::string, std::string> UrlMap;

Powered by Google App Engine
This is Rietveld 408576698