Avi Drissman | 6459548 | 2022-09-14 20:52:29 | [diff] [blame] | 1 | // Copyright 2020 The Chromium Authors |
David Benjamin | f6f0431 | 2020-07-15 00:19:21 | [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/base/privacy_mode.h" |
| 6 | |
| 7 | #include "base/notreached.h" |
| 8 | |
| 9 | namespace net { |
| 10 | |
| 11 | const char* PrivacyModeToDebugString(PrivacyMode privacy_mode) { |
| 12 | switch (privacy_mode) { |
| 13 | case PRIVACY_MODE_DISABLED: |
| 14 | return "disabled"; |
| 15 | case PRIVACY_MODE_ENABLED: |
| 16 | return "enabled"; |
| 17 | case PRIVACY_MODE_ENABLED_WITHOUT_CLIENT_CERTS: |
| 18 | return "enabled without client certs"; |
Dylan Cutler | 86f47b0 | 2022-01-21 01:12:22 | [diff] [blame] | 19 | case PRIVACY_MODE_ENABLED_PARTITIONED_STATE_ALLOWED: |
| 20 | return "enabled partitioned state allowed"; |
David Benjamin | f6f0431 | 2020-07-15 00:19:21 | [diff] [blame] | 21 | } |
Peter Boström | 54bd8e3 | 2024-10-31 01:36:37 | [diff] [blame] | 22 | NOTREACHED(); |
David Benjamin | f6f0431 | 2020-07-15 00:19:21 | [diff] [blame] | 23 | } |
| 24 | |
| 25 | } // namespace net |