optimization_guide_prefs.h 988 B

123456789101112131415161718192021222324252627
  1. // Copyright 2019 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. #ifndef COMPONENTS_OPTIMIZATION_GUIDE_CORE_OPTIMIZATION_GUIDE_PREFS_H_
  5. #define COMPONENTS_OPTIMIZATION_GUIDE_CORE_OPTIMIZATION_GUIDE_PREFS_H_
  6. class PrefRegistrySimple;
  7. namespace optimization_guide {
  8. namespace prefs {
  9. extern const char kHintsFetcherLastFetchAttempt[];
  10. extern const char kModelAndFeaturesLastFetchAttempt[];
  11. extern const char kModelLastFetchSuccess[];
  12. extern const char kHintsFetcherHostsSuccessfullyFetched[];
  13. extern const char kPendingHintsProcessingVersion[];
  14. extern const char kPreviouslyRegisteredOptimizationTypes[];
  15. extern const char kStoreFilePathsToDelete[];
  16. // Registers the optimization guide's prefs.
  17. void RegisterProfilePrefs(PrefRegistrySimple* registry);
  18. } // namespace prefs
  19. } // namespace optimization_guide
  20. #endif // COMPONENTS_OPTIMIZATION_GUIDE_CORE_OPTIMIZATION_GUIDE_PREFS_H_