| OLD | NEW |
| 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 "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
| 11 #include "net/log/net_log.h" | 12 #include "net/log/net_log.h" |
| 12 | 13 |
| 13 namespace net { | 14 namespace net { |
| 14 | 15 |
| 15 // Given an HTTP header |header| with value |value|, returns the elided version | 16 // Given an HTTP header |header| with value |value|, returns the elided version |
| 16 // of the header value at |log_level|. | 17 // of the header value at |log_level|. |
| 17 NET_EXPORT_PRIVATE std::string ElideHeaderValueForNetLog( | 18 NET_EXPORT_PRIVATE std::string ElideHeaderValueForNetLog( |
| 18 NetLogCaptureMode capture_mode, | 19 NetLogCaptureMode capture_mode, |
| 19 const std::string& header, | 20 const std::string& header, |
| 20 const std::string& value); | 21 const std::string& value); |
| 21 | 22 |
| 23 // Given an HTTP/2 GOAWAY frame |debug_data|, returns the elided version |
| 24 // according to |capture_mode|. |
| 25 NET_EXPORT_PRIVATE std::string ElideGoAwayDebugDataForNetLog( |
| 26 NetLogCaptureMode capture_mode, |
| 27 base::StringPiece debug_data); |
| 28 |
| 22 } // namespace net | 29 } // namespace net |
| 23 | 30 |
| 24 #endif // NET_HTTP_HTTP_LOG_UTIL_ | 31 #endif // NET_HTTP_HTTP_LOG_UTIL_ |
| OLD | NEW |