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

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

Issue 1660593004: Landing Recent QUIC changes until 01/28/2016 18:41 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0202
Patch Set: Created 4 years, 11 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_dispatcher.h ('k') | no next file » | 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 59cd273da09cac9fff196e36f4b3f8a4510b1533..d23d1e34f6989287f410c2c9e5ceb33229c34955 100644
--- a/net/tools/quic/quic_in_memory_cache.h
+++ b/net/tools/quic/quic_in_memory_cache.h
@@ -7,6 +7,7 @@
#include <map>
#include <string>
+#include <unordered_map>
#include "base/containers/hash_tables.h"
#include "base/macros.h"
@@ -106,11 +107,11 @@ class QuicInMemoryCache {
// path) associated with it.
// Push resource implicitly come from the same host.
void AddSimpleResponseWithServerPushResources(
- StringPiece host,
- StringPiece path,
+ base::StringPiece host,
+ base::StringPiece path,
int response_code,
- StringPiece body,
- list<ServerPushInfo> push_resources);
+ base::StringPiece body,
+ std::list<ServerPushInfo> push_resources);
// Add a response to the cache.
void AddResponse(base::StringPiece host,
@@ -141,7 +142,7 @@ class QuicInMemoryCache {
list<ServerPushInfo> GetServerPushResources(string request_url);
private:
- typedef base::hash_map<string, Response*> ResponseMap;
+ typedef std::unordered_map<std::string, Response*> ResponseMap;
friend struct base::DefaultSingletonTraits<QuicInMemoryCache>;
friend class test::QuicInMemoryCachePeer;
@@ -162,9 +163,9 @@ class QuicInMemoryCache {
// Add some server push urls with given responses for specified
// request if these push resources are not associated with this request yet.
- void MaybeAddServerPushResources(StringPiece request_host,
- StringPiece request_path,
- list<ServerPushInfo> push_resources);
+ void MaybeAddServerPushResources(base::StringPiece request_host,
+ base::StringPiece request_path,
+ std::list<ServerPushInfo> push_resources);
// Check if push resource(push_host/push_path) associated with given request
// url already exists in server push map.
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698