feature_configurations.h 856 B

12345678910111213141516171819202122232425
  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_FEATURE_ENGAGEMENT_PUBLIC_FEATURE_CONFIGURATIONS_H_
  5. #define COMPONENTS_FEATURE_ENGAGEMENT_PUBLIC_FEATURE_CONFIGURATIONS_H_
  6. #include "third_party/abseil-cpp/absl/types/optional.h"
  7. namespace base {
  8. struct Feature;
  9. } // namespace base
  10. namespace feature_engagement {
  11. struct FeatureConfig;
  12. // Returns client-side specified FeatureConfig if it exists, else an empty
  13. // optional. For this FeatureConfig to be usable, the feature also needs to
  14. // be enabled by default.
  15. absl::optional<FeatureConfig> GetClientSideFeatureConfig(
  16. const base::Feature* feature);
  17. } // namespace feature_engagement
  18. #endif // COMPONENTS_FEATURE_ENGAGEMENT_PUBLIC_FEATURE_CONFIGURATIONS_H_