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

Unified Diff: net/http/http_log_util.cc

Issue 2771033005: Split out spdy_log_util from http_log_util. (Closed)
Patch Set: Remove http_log_util.h include from two files that do not use ElideHeaderValueForNetLog(). Created 3 years, 9 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 | « net/http/http_log_util.h ('k') | net/http/http_log_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « net/http/http_log_util.h ('k') | net/http/http_log_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698