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

Unified Diff: net/quic/core/spdy_utils.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_session_test.cc ('k') | net/quic/platform/api/quic_map_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/spdy_utils.cc
diff --git a/net/quic/core/spdy_utils.cc b/net/quic/core/spdy_utils.cc
index 11ca27585b59272bdefc6da58a67ede5de27762d..65c8ebfe2d043d5c9e906bbc21c86e069696e669 100644
--- a/net/quic/core/spdy_utils.cc
+++ b/net/quic/core/spdy_utils.cc
@@ -7,8 +7,8 @@
#include <memory>
#include <vector>
-#include "base/stl_util.h"
#include "net/quic/platform/api/quic_logging.h"
+#include "net/quic/platform/api/quic_map_util.h"
#include "net/quic/platform/api/quic_text_utils.h"
#include "net/spdy/spdy_flags.h"
#include "net/spdy/spdy_frame_builder.h"
@@ -43,7 +43,7 @@ bool SpdyUtils::ParseHeaders(const char* data,
return false; // Headers were invalid.
}
- if (!ContainsKey(*headers, "content-length")) {
+ if (!QuicContainsKey(*headers, "content-length")) {
return true;
}
@@ -144,7 +144,7 @@ bool SpdyUtils::CopyAndValidateHeaders(const QuicHeaderList& header_list,
headers->AppendValueOrAddHeader(name, p.second);
}
- if (ContainsKey(*headers, "content-length") &&
+ if (QuicContainsKey(*headers, "content-length") &&
!ExtractContentLengthFromHeaders(content_length, headers)) {
return false;
}
« no previous file with comments | « net/quic/core/quic_session_test.cc ('k') | net/quic/platform/api/quic_map_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698