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

Unified Diff: net/ssl/ssl_client_session_cache_openssl.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: 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: net/ssl/ssl_client_session_cache_openssl.h
diff --git a/net/ssl/ssl_client_session_cache_openssl.h b/net/ssl/ssl_client_session_cache_openssl.h
index f3518b1a4ccfaffc7eb29871d41173844d6967af..a432b5958fc831561c1ca41a899fdded54d505c0 100644
--- a/net/ssl/ssl_client_session_cache_openssl.h
+++ b/net/ssl/ssl_client_session_cache_openssl.h
@@ -66,11 +66,7 @@ class NET_EXPORT SSLClientSessionCacheOpenSSL {
};
using CacheEntryMap =
- base::MRUCacheBase<std::string,
- CacheEntry*,
- std::hash<std::string>,
- base::MRUCachePointerDeletor<CacheEntry*>,
- base::MRUCacheHashMap>;
+ base::HashingMRUCache<std::string, scoped_ptr<CacheEntry>>;
// Returns true if |entry| is expired as of |now|.
bool IsExpired(CacheEntry* entry, const base::Time& now);

Powered by Google App Engine
This is Rietveld 408576698