| Index: net/quic/core/quic_header_list.h
|
| diff --git a/net/quic/core/quic_header_list.h b/net/quic/core/quic_header_list.h
|
| index 529bde5b097bbc3644d7cdd1fc31fbe3c834d69e..e74275b3c9bfb2a422d1394d7a749bc17b2624fe 100644
|
| --- a/net/quic/core/quic_header_list.h
|
| +++ b/net/quic/core/quic_header_list.h
|
| @@ -5,6 +5,7 @@
|
| #ifndef NET_QUIC_QUIC_HEADER_LIST_H_
|
| #define NET_QUIC_QUIC_HEADER_LIST_H_
|
|
|
| +#include <algorithm>
|
| #include <deque>
|
| #include <functional>
|
|
|
| @@ -60,6 +61,14 @@ class NET_EXPORT_PRIVATE QuicHeaderList : public SpdyHeadersHandlerInterface {
|
| size_t compressed_header_bytes_;
|
| };
|
|
|
| +inline bool operator==(const QuicHeaderList& l1, const QuicHeaderList& l2) {
|
| + auto pred = [](const std::pair<std::string, std::string>& p1,
|
| + const std::pair<std::string, std::string>& p2) {
|
| + return p1.first == p2.first && p1.second == p2.second;
|
| + };
|
| + return std::equal(l1.begin(), l1.end(), l2.begin(), pred);
|
| +}
|
| +
|
| } // namespace net
|
|
|
| #endif // NET_QUIC_QUIC_HEADER_LIST_H_
|
|
|