Index: net/http/http_log_util.cc |
diff --git a/net/http/http_log_util.cc b/net/http/http_log_util.cc |
index f92d3eee9e7d8e561bc8d2d79e94bfb6aa2d33cc..37aea0396076d98eea0212a9776aa37baba2681d 100644 |
--- a/net/http/http_log_util.cc |
+++ b/net/http/http_log_util.cc |
@@ -4,14 +4,10 @@ |
#include "net/http/http_log_util.h" |
-#include "base/strings/string_number_conversions.h" |
#include "base/strings/string_util.h" |
#include "base/strings/stringprintf.h" |
-#include "base/values.h" |
#include "net/http/http_auth_challenge_tokenizer.h" |
#include "net/http/http_auth_scheme.h" |
-#include "net/http/http_util.h" |
-#include "net/log/net_log_capture_mode.h" |
namespace net { |
@@ -77,30 +73,4 @@ 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 std::string("[") + base::SizeTToString(debug_data.size()) + |
- std::string(" bytes were stripped]"); |
-} |
- |
-std::unique_ptr<base::ListValue> ElideSpdyHeaderBlockForNetLog( |
- const SpdyHeaderBlock& headers, |
- NetLogCaptureMode capture_mode) { |
- std::unique_ptr<base::ListValue> headers_list(new base::ListValue()); |
- for (SpdyHeaderBlock::const_iterator it = headers.begin(); |
- it != headers.end(); ++it) { |
- headers_list->AppendString( |
- it->first.as_string() + ": " + |
- ElideHeaderValueForNetLog(capture_mode, it->first.as_string(), |
- it->second.as_string())); |
- } |
- return headers_list; |
-} |
- |
} // namespace net |