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

Side by Side Diff: net/http/http_log_util.h

Issue 1932853002: Log urls and headers in BIDIRECTIONAL_STREAM events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « net/http/bidirectional_stream_unittest.cc ('k') | net/http/http_log_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_HTTP_HTTP_LOG_UTIL_ 5 #ifndef NET_HTTP_HTTP_LOG_UTIL_
6 #define NET_HTTP_HTTP_LOG_UTIL_ 6 #define NET_HTTP_HTTP_LOG_UTIL_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
11 #include "net/base/net_export.h" 11 #include "net/base/net_export.h"
12 #include "net/log/net_log.h" 12 #include "net/log/net_log.h"
13 #include "net/spdy/spdy_header_block.h"
14
15 namespace base {
16 class ListValue;
17 } // namespace base
13 18
14 namespace net { 19 namespace net {
15 20
16 // Given an HTTP header |header| with value |value|, returns the elided version 21 // Given an HTTP header |header| with value |value|, returns the elided version
17 // of the header value at |log_level|. 22 // of the header value at |log_level|.
18 NET_EXPORT_PRIVATE std::string ElideHeaderValueForNetLog( 23 NET_EXPORT_PRIVATE std::string ElideHeaderValueForNetLog(
19 NetLogCaptureMode capture_mode, 24 NetLogCaptureMode capture_mode,
20 const std::string& header, 25 const std::string& header,
21 const std::string& value); 26 const std::string& value);
22 27
23 // Given an HTTP/2 GOAWAY frame |debug_data|, returns the elided version 28 // Given an HTTP/2 GOAWAY frame |debug_data|, returns the elided version
24 // according to |capture_mode|. 29 // according to |capture_mode|.
25 NET_EXPORT_PRIVATE std::string ElideGoAwayDebugDataForNetLog( 30 NET_EXPORT_PRIVATE std::string ElideGoAwayDebugDataForNetLog(
26 NetLogCaptureMode capture_mode, 31 NetLogCaptureMode capture_mode,
27 base::StringPiece debug_data); 32 base::StringPiece debug_data);
28 33
34 // Given a SpdyHeaderBlock, return its base::ListValue representation.
35 std::unique_ptr<base::ListValue> ElideSpdyHeaderBlockForNetLog(
36 const SpdyHeaderBlock& headers,
37 NetLogCaptureMode capture_mode);
38
29 } // namespace net 39 } // namespace net
30 40
31 #endif // NET_HTTP_HTTP_LOG_UTIL_ 41 #endif // NET_HTTP_HTTP_LOG_UTIL_
OLDNEW
« no previous file with comments | « net/http/bidirectional_stream_unittest.cc ('k') | net/http/http_log_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698