| // Copyright 2021 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef COMPONENTS_SEGMENTATION_PLATFORM_PUBLIC_FEATURES_H_ |
| #define COMPONENTS_SEGMENTATION_PLATFORM_PUBLIC_FEATURES_H_ |
| |
| #include "base/feature_list.h" |
| |
| namespace segmentation_platform::features { |
| |
| // Core feature flag for segmentation platform. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformFeature); |
| |
| // Feature flag for enabling UKM based engine. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformUkmEngine); |
| |
| // Feature flag to increase segmentation platform background processing task |
| // runner priority. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformUserVisibleTaskRunner); |
| |
| // Feature flag for enabling adaptive toolbar v2 multi-output model. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformAdaptiveToolbarV2Feature); |
| |
| // Feature flag for enabling low engagement segmentation key. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformLowEngagementFeature); |
| |
| // Feature flag for enabling Feed user segments feature. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformFeedSegmentFeature); |
| |
| // Feature flag for enabling categorization into resume heavy user. |
| BASE_DECLARE_FEATURE(kResumeHeavyUserSegmentFeature); |
| |
| // Feature flag for enabling Power user segmentation. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformPowerUserFeature); |
| |
| // Feature flag for enabling frequent feature user segment. |
| BASE_DECLARE_FEATURE(kFrequentFeatureUserSegmentFeature); |
| |
| // Feature flag for enabling contextual page actions. Do not remove this, as all |
| // segmentation platform powered functionalities must be behind a base::Feature. |
| BASE_DECLARE_FEATURE(kContextualPageActions); |
| |
| // Feature flag for enabling search user segment. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformSearchUser); |
| |
| // Feature flag for device switcher segment. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformDeviceSwitcher); |
| |
| // Feature flag for enabling reader mode action feature. |
| BASE_DECLARE_FEATURE(kContextualPageActionShareModel); |
| |
| // Feature flag for enabling shopping user segment feature. |
| BASE_DECLARE_FEATURE(kShoppingUserSegmentFeature); |
| |
| // Feature flag for enabling default reporting segments. |
| BASE_DECLARE_FEATURE(kSegmentationDefaultReportingSegments); |
| |
| // Feature flag for enabling device tier segment. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformDeviceTier); |
| |
| // Feature flag for enabling tablet productivity user segment. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformTabletProductivityUser); |
| |
| // Feature flag for enabling model execution report sampling. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformModelExecutionSampling); |
| |
| // Feature flag for enabling cross device user segment. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformCrossDeviceUser); |
| |
| // Feature flag for enabling intentional user segment. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformIntentionalUser); |
| |
| // Feature flag for enabling password manager user segment. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformPasswordManagerUser); |
| |
| // Feature flag for enabling tab resumption ranker. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformTabResumptionRanker); |
| |
| // Feature flag for enabling ios module ranker. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformIosModuleRanker); |
| |
| // Feature flag for enabling android home module ranker. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformAndroidHomeModuleRanker); |
| |
| // Feature flag for enabling on-demand service for ranking android |
| // home modules. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformAndroidHomeModuleRankerV2); |
| |
| // Feature flag for controlling sampling of training data collection. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformTimeDelaySampling); |
| |
| // Feature flag for enabling data collection for tab ranking. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformCollectTabRankData); |
| |
| // Feature flag for intoroducing delay while initializing models at startup. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformModelInitializationDelay); |
| |
| // Feature flag for turning of signal database cache. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformSignalDbCache); |
| |
| // Feature flag for Compose promotion targeting. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformComposePromotion); |
| |
| // Feature flag for using SQL database for UMA signals. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformUmaFromSqlDb); |
| |
| // Feature flag for having separate models for the Start and NTP surface. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformIosModuleRankerSplitBySurface); |
| |
| // Feature flag for enabling the URL visit resumption ranker. |
| BASE_DECLARE_FEATURE(kSegmentationPlatformURLVisitResumptionRanker); |
| |
| } // namespace segmentation_platform::features |
| |
| #endif // COMPONENTS_SEGMENTATION_PLATFORM_PUBLIC_FEATURES_H_ |