• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2020 The Chromium Authors
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 
PrivacyModeToDebugString(PrivacyMode privacy_mode)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";
19     case PRIVACY_MODE_ENABLED_PARTITIONED_STATE_ALLOWED:
20       return "enabled partitioned state allowed";
21   }
22   NOTREACHED();
23 }
24 
25 }  // namespace net
26