Nan Lin | 33421d8 | 2023-05-18 16:19:37 | [diff] [blame] | 1 | // Copyright 2023 The Chromium Authors |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef COMPONENTS_AGGREGATION_SERVICE_FEATURES_H_ |
| 6 | #define COMPONENTS_AGGREGATION_SERVICE_FEATURES_H_ |
| 7 | |
Nan Lin | da6af78c | 2023-06-08 00:48:33 | [diff] [blame] | 8 | #include <string> |
| 9 | |
Nan Lin | 33421d8 | 2023-05-18 16:19:37 | [diff] [blame] | 10 | #include "base/component_export.h" |
| 11 | #include "base/feature_list.h" |
Nan Lin | da6af78c | 2023-06-08 00:48:33 | [diff] [blame] | 12 | #include "base/metrics/field_trial_params.h" |
Nan Lin | 33421d8 | 2023-05-18 16:19:37 | [diff] [blame] | 13 | |
| 14 | namespace aggregation_service { |
| 15 | |
Nan Lin | 2f7f87d | 2024-05-22 20:10:07 | [diff] [blame] | 16 | // This feature is no longer checked, and only the feature param is used. |
Nan Lin | 33421d8 | 2023-05-18 16:19:37 | [diff] [blame] | 17 | COMPONENT_EXPORT(AGGREGATION_SERVICE) |
| 18 | BASE_DECLARE_FEATURE(kAggregationServiceMultipleCloudProviders); |
| 19 | |
Nan Lin | 5ab04886 | 2024-04-22 18:06:50 | [diff] [blame] | 20 | // Comma-separated origins. The first origin will be used as default. When |
| 21 | // empty, the default coordinator origins will be used. |
| 22 | // |
| 23 | // TODO(linnan): Consider replacing this with a command-line switch since it |
| 24 | // isn't needed in production. |
Nan Lin | da6af78c | 2023-06-08 00:48:33 | [diff] [blame] | 25 | COMPONENT_EXPORT(AGGREGATION_SERVICE) |
| 26 | extern const base::FeatureParam<std::string> |
Nan Lin | 5ab04886 | 2024-04-22 18:06:50 | [diff] [blame] | 27 | kAggregationServiceCoordinatorAllowlist; |
Nan Lin | 8eecf3a | 2023-06-13 19:26:18 | [diff] [blame] | 28 | |
Nan Lin | 33421d8 | 2023-05-18 16:19:37 | [diff] [blame] | 29 | } // namespace aggregation_service |
| 30 | |
| 31 | #endif // COMPONENTS_AGGREGATION_SERVICE_FEATURES_H_ |