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

Unified Diff: net/quic/core/quic_framer.cc

Issue 2651673004: Add quic_map_util. (Closed)
Patch Set: Created 3 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/core/quic_connection_test.cc ('k') | net/quic/core/quic_received_packet_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_framer.cc
diff --git a/net/quic/core/quic_framer.cc b/net/quic/core/quic_framer.cc
index 99c23b97d57ba6643d6fd0d2de0150914a205914..df632bb38c11b8e5b66b6d3f112b9106ec88555d 100644
--- a/net/quic/core/quic_framer.cc
+++ b/net/quic/core/quic_framer.cc
@@ -8,7 +8,6 @@
#include <memory>
#include "base/compiler_specific.h"
-#include "base/stl_util.h"
#include "net/quic/core/crypto/crypto_framer.h"
#include "net/quic/core/crypto/crypto_handshake_message.h"
#include "net/quic/core/crypto/crypto_protocol.h"
@@ -24,9 +23,9 @@
#include "net/quic/platform/api/quic_aligned.h"
#include "net/quic/platform/api/quic_bug_tracker.h"
#include "net/quic/platform/api/quic_logging.h"
+#include "net/quic/platform/api/quic_map_util.h"
#include "net/quic/platform/api/quic_ptr_util.h"
-using base::ContainsKey;
using base::StringPiece;
using std::string;
#define PREDICT_FALSE(x) (x)
@@ -747,7 +746,7 @@ const QuicTime::Delta QuicFramer::CalculateTimestampFromWire(
bool QuicFramer::IsValidPath(QuicPathId path_id,
QuicPacketNumber* base_packet_number) {
- if (ContainsKey(closed_paths_, path_id)) {
+ if (QuicContainsKey(closed_paths_, path_id)) {
// Path is closed.
return false;
}
@@ -757,7 +756,7 @@ bool QuicFramer::IsValidPath(QuicPathId path_id,
return true;
}
- if (ContainsKey(largest_packet_numbers_, path_id)) {
+ if (QuicContainsKey(largest_packet_numbers_, path_id)) {
*base_packet_number = largest_packet_numbers_[path_id];
} else {
*base_packet_number = 0;
« no previous file with comments | « net/quic/core/quic_connection_test.cc ('k') | net/quic/core/quic_received_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698