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

Unified Diff: net/quic/core/crypto/quic_compressed_certs_cache.h

Issue 2603843002: Add QuicLRUCache. (Closed)
Patch Set: fix Created 4 years 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/quic/core/crypto/quic_compressed_certs_cache.h
diff --git a/net/quic/core/crypto/quic_compressed_certs_cache.h b/net/quic/core/crypto/quic_compressed_certs_cache.h
index cb1daa8e4f9824075c878efa8105601d6c979257..ce480e35859cf6aa9f9900e65a2148e39f94593b 100644
--- a/net/quic/core/crypto/quic_compressed_certs_cache.h
+++ b/net/quic/core/crypto/quic_compressed_certs_cache.h
@@ -8,9 +8,9 @@
#include <string>
#include <vector>
-#include "base/containers/mru_cache.h"
#include "net/quic/core/crypto/proof_source.h"
#include "net/quic/platform/api/quic_export.h"
+#include "net/quic/platform/api/quic_lru_cache.h"
namespace net {
@@ -100,7 +100,7 @@ class QUIC_EXPORT_PRIVATE QuicCompressedCertsCache {
// Key is a unit64_t hash for UncompressedCerts. Stored associated value is
// CachedCerts which has both original uncompressed certs data and the
// compressed representation of the certs.
- base::MRUCache<uint64_t, CachedCerts> certs_cache_;
+ QuicLRUCache<uint64_t, CachedCerts> certs_cache_;
};
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698