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

Unified Diff: net/quic/quic_multipath_transmissions_map.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_multipath_received_packet_manager.h ('k') | net/quic/quic_multipath_transmissions_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_multipath_transmissions_map.h
diff --git a/net/quic/quic_multipath_transmissions_map.h b/net/quic/quic_multipath_transmissions_map.h
index 121e63ee6a510af43074b3ae37035fd0c824e416..25b899467b65e2736c8f24d2e11200f6a1868c25 100644
--- a/net/quic/quic_multipath_transmissions_map.h
+++ b/net/quic/quic_multipath_transmissions_map.h
@@ -13,20 +13,30 @@
#define NET_QUIC_QUIC_MULTIPATH_TRANSMISSIONS_MAP_H_
#include <deque>
+#include <unordered_map>
#include "base/containers/hash_tables.h"
#include "base/macros.h"
#include "net/quic/quic_protocol.h"
+#include "net/quic/quic_utils.h"
-namespace net_quic {
+namespace net {
typedef std::pair<net::QuicPathId, net::QuicPacketNumber>
QuicPathIdPacketNumber;
class NET_EXPORT_PRIVATE QuicMultipathTransmissionsMap {
public:
+ struct QuicPathIdPacketNumberHash {
+ size_t operator()(std::pair<QuicPathId, QuicPacketNumber> value) const {
+ return QuicUtils::PackPathIdAndPacketNumber(value.first, value.second);
+ }
+ };
+
typedef std::deque<QuicPathIdPacketNumber> MultipathTransmissionsList;
- typedef base::hash_map<QuicPathIdPacketNumber, MultipathTransmissionsList*>
+ typedef std::unordered_map<QuicPathIdPacketNumber,
+ MultipathTransmissionsList*,
+ QuicPathIdPacketNumberHash>
MultipathTransmissionsMap;
QuicMultipathTransmissionsMap();
@@ -60,6 +70,6 @@ class NET_EXPORT_PRIVATE QuicMultipathTransmissionsMap {
MultipathTransmissionsMap transmission_map_;
};
-} // namespace net_quic
+} // namespace net
#endif // NET_QUIC_QUIC_MULTIPATH_TRANSMISSIONS_MAP_H_
« no previous file with comments | « net/quic/quic_multipath_received_packet_manager.h ('k') | net/quic/quic_multipath_transmissions_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698