Avi Drissman | 6459548 | 2022-09-14 20:52:29 | [diff] [blame] | 1 | // Copyright 2015 The Chromium Authors |
eroman | 001c374 | 2015-04-23 03:11:17 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "net/log/net_log_capture_mode.h" |
| 6 | |
eroman | 001c374 | 2015-04-23 03:11:17 | [diff] [blame] | 7 | namespace net { |
| 8 | |
Eric Roman | 3124cde | 2019-07-10 22:26:15 | [diff] [blame] | 9 | bool NetLogCaptureIncludesSensitive(NetLogCaptureMode capture_mode) { |
| 10 | return capture_mode >= NetLogCaptureMode::kIncludeSensitive; |
eroman | 001c374 | 2015-04-23 03:11:17 | [diff] [blame] | 11 | } |
| 12 | |
Eric Roman | 3124cde | 2019-07-10 22:26:15 | [diff] [blame] | 13 | bool NetLogCaptureIncludesSocketBytes(NetLogCaptureMode capture_mode) { |
| 14 | return capture_mode == NetLogCaptureMode::kEverything; |
eroman | 001c374 | 2015-04-23 03:11:17 | [diff] [blame] | 15 | } |
| 16 | |
eroman | 001c374 | 2015-04-23 03:11:17 | [diff] [blame] | 17 | } // namespace net |