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

Unified Diff: net/spdy/hpack/hpack_header_table.h

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/quic/quic_blocked_writer_interface.h ('k') | net/spdy/hpack/hpack_header_table.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack/hpack_header_table.h
diff --git a/net/spdy/hpack/hpack_header_table.h b/net/spdy/hpack/hpack_header_table.h
index 5952bb5b666665bdf29b2a1f6afd466acb1f1e95..02b9e27d7458c3e8756415cf32ce2d86b2df593c 100644
--- a/net/spdy/hpack/hpack_header_table.h
+++ b/net/spdy/hpack/hpack_header_table.h
@@ -10,7 +10,6 @@
#include <unordered_map>
#include <unordered_set>
-#include "base/containers/hash_tables.h"
#include "base/macros.h"
#include "base/strings/string_piece.h"
#include "net/base/net_export.h"
@@ -45,10 +44,9 @@ class NET_EXPORT_PRIVATE HpackHeaderTable {
using UnorderedEntrySet =
std::unordered_set<HpackEntry*, EntryHasher, EntriesEq>;
- using NameToEntryMap =
- std::unordered_map<base::StringPiece,
- const HpackEntry*,
- BASE_HASH_NAMESPACE::hash<base::StringPiece>>;
+ using NameToEntryMap = std::unordered_map<base::StringPiece,
+ const HpackEntry*,
+ base::StringPieceHash>;
HpackHeaderTable();
« no previous file with comments | « net/quic/quic_blocked_writer_interface.h ('k') | net/spdy/hpack/hpack_header_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698