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

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

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 unified diff | Download patch
« no previous file with comments | « net/http/bidirectional_stream.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_H_ 5 #ifndef NET_HTTP_HTTP_LOG_UTIL_H_
6 #define NET_HTTP_HTTP_LOG_UTIL_H_ 6 #define NET_HTTP_HTTP_LOG_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string_piece.h"
11 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
12 #include "net/spdy/spdy_header_block.h" 11 #include "net/log/net_log_capture_mode.h"
13
14 namespace base {
15 class ListValue;
16 } // namespace base
17 12
18 namespace net { 13 namespace net {
19 14
20 class NetLogCaptureMode;
21
22 // Given an HTTP header |header| with value |value|, returns the elided version 15 // Given an HTTP header |header| with value |value|, returns the elided version
23 // of the header value at |log_level|. 16 // of the header value at |log_level|.
24 NET_EXPORT_PRIVATE std::string ElideHeaderValueForNetLog( 17 NET_EXPORT_PRIVATE std::string ElideHeaderValueForNetLog(
25 NetLogCaptureMode capture_mode, 18 NetLogCaptureMode capture_mode,
26 const std::string& header, 19 const std::string& header,
27 const std::string& value); 20 const std::string& value);
28 21
29 // Given an HTTP/2 GOAWAY frame |debug_data|, returns the elided version
30 // according to |capture_mode|.
31 NET_EXPORT_PRIVATE std::string ElideGoAwayDebugDataForNetLog(
32 NetLogCaptureMode capture_mode,
33 base::StringPiece debug_data);
34
35 // Given a SpdyHeaderBlock, return its base::ListValue representation.
36 std::unique_ptr<base::ListValue> ElideSpdyHeaderBlockForNetLog(
37 const SpdyHeaderBlock& headers,
38 NetLogCaptureMode capture_mode);
39
40 } // namespace net 22 } // namespace net
41 23
42 #endif // NET_HTTP_HTTP_LOG_UTIL_H_ 24 #endif // NET_HTTP_HTTP_LOG_UTIL_H_
OLDNEW
« no previous file with comments | « net/http/bidirectional_stream.cc ('k') | net/http/http_log_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698