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

Unified Diff: net/quic/core/quic_header_list.h

Issue 2462823002: Deletes dead code. (Closed)
Patch Set: Updated patchset dependency Created 4 years, 2 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/core/quic_client_session_base.cc ('k') | net/quic/core/quic_spdy_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « net/quic/core/quic_client_session_base.cc ('k') | net/quic/core/quic_spdy_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698