DescriptionRefactor StringPiece hash.
Rename struct BASE_HASH_NAMESPACE::hash<base::StringPiece> to struct
base::StringPieceHash, and modify existing code as necessary. This is motivated
by https://crrev.com/1660273002/#msg6.
* Remove #include "base/containers/hash_tables.h" where not used any more.
* Add this include for hash_map where necessary (string_piece.h does not include
it any longer, so this might be necessary for the code to compile).
* Change net::linked_hash_map from base::hash_map to std::unordered_map and add
Hash template parameter. This way BASE_HASH_NAMESPACE::hash<Key> will not be
implicitly used any more, so move QuicBlockedWriterInterfacePtrHash out of
that namespace.
BUG=576864
Committed: https://crrev.com/63c013002ffbbb4c7eac172097e16ea907403e08
Cr-Commit-Position: refs/heads/master@{#374005}
Patch Set 1 #Patch Set 2 : Define hash on all compilers. #
Total comments: 5
Patch Set 3 : s/StringPieceHash16/StringPiece16Hash/ #Patch Set 4 : Include hash_tables.h in components/mus/ws/ids.h to fix win8_chromium_ng compile error. #Patch Set 5 : Sort includes. #
Messages
Total messages: 30 (15 generated)
|