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

Unified Diff: net/tools/quic/spdy_balsa_utils.cc

Issue 1666843002: Refactor StringPiece hash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sort includes. Created 4 years, 10 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') | tools/gn/scope.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/spdy_balsa_utils.cc
diff --git a/net/tools/quic/spdy_balsa_utils.cc b/net/tools/quic/spdy_balsa_utils.cc
index 670cbd3acfea166224d36ee85a6bf9f2e7828719..d6132f9679c633d03845b90d61fcb26c5d7cceb6 100644
--- a/net/tools/quic/spdy_balsa_utils.cc
+++ b/net/tools/quic/spdy_balsa_utils.cc
@@ -20,6 +20,7 @@
#include "url/gurl.h"
using base::StringPiece;
+using base::StringPieceHash;
using std::make_pair;
using std::pair;
using std::string;
@@ -40,7 +41,7 @@ void PopulateSpdyHeaderBlock(const BalsaHeaders& headers,
SpdyHeaderBlock* block,
bool allow_empty_values) {
using HeaderValuesMap =
- linked_hash_map<StringPiece, std::vector<StringPiece>>;
+ linked_hash_map<StringPiece, std::vector<StringPiece>, StringPieceHash>;
std::deque<string> names;
HeaderValuesMap header_values_map;
// First, gather references to all values for each name.
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | tools/gn/scope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698