pref_names.cc 1.0 KB

1234567891011121314151617181920212223242526272829
  1. // Copyright 2016 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 "components/certificate_transparency/pref_names.h"
  5. #include "components/prefs/pref_change_registrar.h"
  6. #include "components/prefs/pref_registry_simple.h"
  7. namespace certificate_transparency {
  8. namespace prefs {
  9. void RegisterPrefs(PrefRegistrySimple* registry) {
  10. registry->RegisterListPref(prefs::kCTRequiredHosts);
  11. registry->RegisterListPref(prefs::kCTExcludedHosts);
  12. registry->RegisterListPref(prefs::kCTExcludedSPKIs);
  13. registry->RegisterListPref(prefs::kCTExcludedLegacySPKIs);
  14. }
  15. const char kCTRequiredHosts[] = "certificate_transparency.required_hosts";
  16. const char kCTExcludedHosts[] = "certificate_transparency.excluded_hosts";
  17. const char kCTExcludedSPKIs[] = "certificate_transparency.excluded_spkis";
  18. const char kCTExcludedLegacySPKIs[] =
  19. "certificate_transparency.excluded_legacy_spkis";
  20. } // namespace prefs
  21. } // namespace certificate_transparency