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

Unified Diff: net/quic/quic_session.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/quic/quic_sent_packet_manager_test.cc ('k') | net/quic/quic_unacked_packet_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_session.h
diff --git a/net/quic/quic_session.h b/net/quic/quic_session.h
index 0201d4396cd6cdc767ab8b4a5ef50ae2b41122d3..007d4357bee371becf934d480fa991763ca30f66 100644
--- a/net/quic/quic_session.h
+++ b/net/quic/quic_session.h
@@ -11,6 +11,8 @@
#include <map>
#include <string>
+#include <unordered_map>
+#include <unordered_set>
#include <vector>
#include "base/compiler_specific.h"
@@ -225,7 +227,7 @@ class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface {
bool ShouldYield(QuicStreamId stream_id);
protected:
- typedef base::hash_map<QuicStreamId, ReliableQuicStream*> StreamMap;
+ typedef std::unordered_map<QuicStreamId, ReliableQuicStream*> StreamMap;
// Creates a new stream, owned by the caller, to handle a peer-initiated
// stream. Returns nullptr and does error handling if the stream can not be
@@ -373,12 +375,12 @@ class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface {
// Set of stream ids that are less than the largest stream id that has been
// received, but are nonetheless available to be created.
- base::hash_set<QuicStreamId> available_streams_;
+ std::unordered_set<QuicStreamId> available_streams_;
// Set of stream ids that are "draining" -- a FIN has been sent and received,
// but the stream object still exists because not all the received data has
// been consumed.
- base::hash_set<QuicStreamId> draining_streams_;
+ std::unordered_set<QuicStreamId> draining_streams_;
// A list of streams which need to write more data.
QuicWriteBlockedList write_blocked_streams_;
« no previous file with comments | « net/quic/quic_sent_packet_manager_test.cc ('k') | net/quic/quic_unacked_packet_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698