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

Unified Diff: net/http/http_log_util.h

Issue 1360253002: Log GOAWAY frame debug data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initialize |goaway_count_|. Created 5 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
Index: net/http/http_log_util.h
diff --git a/net/http/http_log_util.h b/net/http/http_log_util.h
index 775894332568d3d9b3c79540c9264d30cdd3afcc..5fda79ccf13570c583bb622ff51915c23679deab 100644
--- a/net/http/http_log_util.h
+++ b/net/http/http_log_util.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/strings/string_piece.h"
#include "net/base/net_export.h"
#include "net/log/net_log.h"
@@ -19,6 +20,12 @@ NET_EXPORT_PRIVATE std::string ElideHeaderValueForNetLog(
const std::string& header,
const std::string& value);
+// Given an HTTP/2 GOAWAY frame |debug_data|, returns the elided version
+// according to |capture_mode|.
+NET_EXPORT_PRIVATE std::string ElideGoAwayDebugDataForNetLog(
+ NetLogCaptureMode capture_mode,
+ base::StringPiece debug_data);
+
} // namespace net
#endif // NET_HTTP_HTTP_LOG_UTIL_

Powered by Google App Engine
This is Rietveld 408576698