| Index: net/http/http_log_util.cc
|
| diff --git a/net/http/http_log_util.cc b/net/http/http_log_util.cc
|
| index 87c2fd99f191cf2c11443611bd6db6d90000686b..6595e4761582267385afb4db7985795d767a3634 100644
|
| --- a/net/http/http_log_util.cc
|
| +++ b/net/http/http_log_util.cc
|
| @@ -42,7 +42,7 @@ std::string ElideHeaderValueForNetLog(NetLogCaptureMode capture_mode,
|
|
|
| if (redact_begin == redact_end &&
|
| !capture_mode.include_cookies_and_credentials()) {
|
| - // Note: this logic should be kept in sync with stripCookiesAndLoginInfo in
|
| + // Note: this logic should be kept in sync with stripCookieOrLoginInfo in
|
| // chrome/browser/resources/net_internals/log_view_painter.js.
|
|
|
| if (base::EqualsCaseInsensitiveASCII(header, "set-cookie") ||
|
| @@ -73,4 +73,16 @@ std::string ElideHeaderValueForNetLog(NetLogCaptureMode capture_mode,
|
| std::string(redact_end, value.end());
|
| }
|
|
|
| +std::string ElideGoAwayDebugDataForNetLog(NetLogCaptureMode capture_mode,
|
| + base::StringPiece debug_data) {
|
| + // Note: this logic should be kept in sync with stripGoAwayDebugData in
|
| + // chrome/browser/resources/net_internals/log_view_painter.js.
|
| + if (capture_mode.include_cookies_and_credentials()) {
|
| + return debug_data.as_string();
|
| + }
|
| +
|
| + return base::StringPrintf("[%ld bytes were stripped]",
|
| + static_cast<long>(debug_data.size()));
|
| +}
|
| +
|
| } // namespace net
|
|
|