optimization_guide_constants.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Copyright 2017 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_CONSTANTS_H_
  5. #define COMPONENTS_OPTIMIZATION_GUIDE_CORE_OPTIMIZATION_GUIDE_CONSTANTS_H_
  6. #include "base/files/file_path.h"
  7. namespace optimization_guide {
  8. // The name of the file that stores the unindexed hints.
  9. extern const base::FilePath::CharType kUnindexedHintsFileName[];
  10. extern const char kRulesetFormatVersionString[];
  11. // The remote Optimization Guide Service production server to fetch hints from.
  12. extern const char kOptimizationGuideServiceGetHintsDefaultURL[];
  13. // The remote Optimization Guide Service production server to fetch models and
  14. // hosts features from.
  15. extern const char kOptimizationGuideServiceGetModelsDefaultURL[];
  16. // The local histogram used to record that the component hints are stored in
  17. // the cache and are ready for use.
  18. extern const char kLoadedHintLocalHistogramString[];
  19. // The folder where the hint data will be stored on disk.
  20. extern const base::FilePath::CharType kOptimizationGuideHintStore[];
  21. // The folder where the prediction model and associated metadata are
  22. // currently stored on disk. This is per profile.
  23. extern const base::FilePath::CharType
  24. kOptimizationGuidePredictionModelMetadataStore[];
  25. // The folder where the prediction model downloads are stored. This is per
  26. // profile.
  27. extern const base::FilePath::CharType
  28. kOptimizationGuidePredictionModelDownloads[];
  29. // The folder where the page entities metadata store will be stored on disk.
  30. extern const base::FilePath::CharType kPageEntitiesMetadataStore[];
  31. } // namespace optimization_guide
  32. #endif // COMPONENTS_OPTIMIZATION_GUIDE_CORE_OPTIMIZATION_GUIDE_CONSTANTS_H_