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

Unified Diff: net/quic/quic_header_list.h

Issue 1907683002: Adds a DebugString() method to QuicHeaderList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | net/quic/quic_header_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_header_list.h
diff --git a/net/quic/quic_header_list.h b/net/quic/quic_header_list.h
index 3d07061b5d671dc37530e8dda2908d0890a93b02..b218f359f34920114e1dad4e0e815ec15cb7c33d 100644
--- a/net/quic/quic_header_list.h
+++ b/net/quic/quic_header_list.h
@@ -20,6 +20,7 @@ namespace net {
class NET_EXPORT_PRIVATE QuicHeaderList : public SpdyHeadersHandlerInterface {
public:
typedef std::deque<std::pair<std::string, std::string>> ListType;
+ typedef ListType::const_iterator const_iterator;
QuicHeaderList();
QuicHeaderList(QuicHeaderList&& other);
@@ -35,14 +36,16 @@ class NET_EXPORT_PRIVATE QuicHeaderList : public SpdyHeadersHandlerInterface {
void Clear();
- ListType::const_iterator begin() const { return header_list_.begin(); }
- ListType::const_iterator end() const { return header_list_.end(); }
+ const_iterator begin() const { return header_list_.begin(); }
+ const_iterator end() const { return header_list_.end(); }
bool empty() const { return header_list_.empty(); }
size_t uncompressed_header_bytes() const {
return uncompressed_header_bytes_;
}
+ std::string DebugString() const;
+
private:
std::deque<std::pair<std::string, std::string>> header_list_;
size_t uncompressed_header_bytes_;
« no previous file with comments | « no previous file | net/quic/quic_header_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698