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

Unified Diff: net/tools/quic/quic_in_memory_cache.h

Issue 2417183003: Remove stl_util's deletion functions from remaining quic code. (Closed)
Patch Set: rebase Created 4 years, 2 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
« no previous file with comments | « net/tools/quic/quic_client_session.cc ('k') | net/tools/quic/quic_in_memory_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_in_memory_cache.h
diff --git a/net/tools/quic/quic_in_memory_cache.h b/net/tools/quic/quic_in_memory_cache.h
index 174a7d51635e268346b26506e0945f792223c65f..c19aa5e3f9e759d077593f076b2b6cf7a605b0fd 100644
--- a/net/tools/quic/quic_in_memory_cache.h
+++ b/net/tools/quic/quic_in_memory_cache.h
@@ -195,8 +195,6 @@ class QuicInMemoryCache {
std::list<ServerPushInfo> GetServerPushResources(std::string request_url);
private:
- typedef std::unordered_map<std::string, Response*> ResponseMap;
-
friend struct base::DefaultSingletonTraits<QuicInMemoryCache>;
friend class test::QuicInMemoryCachePeer;
@@ -226,7 +224,7 @@ class QuicInMemoryCache {
ServerPushInfo resource);
// Cached responses.
- ResponseMap responses_;
+ std::unordered_map<std::string, std::unique_ptr<Response>> responses_;
// The default response for cache misses, if set.
std::unique_ptr<Response> default_response_;
« no previous file with comments | « net/tools/quic/quic_client_session.cc ('k') | net/tools/quic/quic_in_memory_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698