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

Unified Diff: net/tools/balsa/balsa_headers.h

Issue 847813005: Updates quic_client_bin.cc to be more user friendly, and support more (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Refactoring_code_for_readability_83493327
Patch Set: Added DumpHeadersToString to dump response headers Created 5 years, 11 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/tools/balsa/balsa_headers.cc » ('j') | net/tools/quic/quic_client_bin.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/balsa/balsa_headers.h
diff --git a/net/tools/balsa/balsa_headers.h b/net/tools/balsa/balsa_headers.h
index 840aae5e72e46398196d47fd35fc40ccf6ea3ef5..72f90c72925860509a3800cee0e3c6e800bb3f90 100644
--- a/net/tools/balsa/balsa_headers.h
+++ b/net/tools/balsa/balsa_headers.h
@@ -818,11 +818,14 @@ class BalsaHeaders {
// Dump the textural representation of the header object to a string, which
// is suitable for writing out to logs. All CRLF will be printed out as \n.
- // This function can be called on a header object in any state. Raw header
- // data will be printed out if the header object is not completely parsed,
- // e.g., when there was an error in the middle of parsing.
- // The header content is appended to the string; the original content is not
- // cleared.
+ // This function can be called on a header object in any state. The header
+ // content is appended to the string; the original content is not cleared.
+ void DumpHeadersToString(std::string* str) const;
+
+ // Calls DumpHeadersToString to dump the textural representation of the header
+ // object to a string. Raw header data will be printed out if the header
+ // object is not completely parsed, e.g., when there was an error in the
+ // middle of parsing.
void DumpToString(std::string* str) const;
const base::StringPiece first_line() const {
« no previous file with comments | « no previous file | net/tools/balsa/balsa_headers.cc » ('j') | net/tools/quic/quic_client_bin.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698