privacy_mode.cc 712 B

1234567891011121314151617181920212223242526
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "net/base/privacy_mode.h"
  5. #include "base/notreached.h"
  6. namespace net {
  7. const char* PrivacyModeToDebugString(PrivacyMode privacy_mode) {
  8. switch (privacy_mode) {
  9. case PRIVACY_MODE_DISABLED:
  10. return "disabled";
  11. case PRIVACY_MODE_ENABLED:
  12. return "enabled";
  13. case PRIVACY_MODE_ENABLED_WITHOUT_CLIENT_CERTS:
  14. return "enabled without client certs";
  15. case PRIVACY_MODE_ENABLED_PARTITIONED_STATE_ALLOWED:
  16. return "enabled partitioned state allowed";
  17. }
  18. NOTREACHED();
  19. return "";
  20. }
  21. } // namespace net