This change plumbs an equality function object type through the quiche linked hash map type. This will enable future changes to the hashing behavior of SpdyHeaderBlock.
gfe-relnote: Adds a class template parameter with an appropriate default. No functional change intended.
PiperOrigin-RevId: 287990478
Change-Id: Icd72f36561fc31f2f7092306b960e4d8721aa774
diff --git a/spdy/core/spdy_header_block.h b/spdy/core/spdy_header_block.h
index b02284f..56ee1d5 100644
--- a/spdy/core/spdy_header_block.h
+++ b/spdy/core/spdy_header_block.h
@@ -7,6 +7,7 @@
#include <stddef.h>
+#include <functional>
#include <list>
#include <string>
#include <utility>
@@ -81,7 +82,10 @@
size_t separator_size_ = 0;
};
- typedef SpdyLinkedHashMap<SpdyStringPiece, HeaderValue, SpdyStringPieceHash>
+ typedef SpdyLinkedHashMap<SpdyStringPiece,
+ HeaderValue,
+ SpdyStringPieceHash,
+ std::equal_to<SpdyStringPiece>>
MapType;
public: