on_device_clustering_features.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright 2021 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_HISTORY_CLUSTERS_CORE_ON_DEVICE_CLUSTERING_FEATURES_H_
  5. #define COMPONENTS_HISTORY_CLUSTERS_CORE_ON_DEVICE_CLUSTERING_FEATURES_H_
  6. #include "base/containers/flat_set.h"
  7. #include "base/feature_list.h"
  8. #include "base/metrics/field_trial_params.h"
  9. namespace history_clusters {
  10. namespace features {
  11. // Params & helpers functions
  12. // Enables configuring the on-device clustering backend.
  13. extern const base::Feature kOnDeviceClustering;
  14. // Uses an in-memory cache that stores engagement score.
  15. extern const base::Feature kUseEngagementScoreCache;
  16. // Splits clustering task into smaller batches.
  17. extern const base::Feature kSplitClusteringTasksToSmallerBatches;
  18. // Specifies various blocklists for on-device clustering backend.
  19. extern const base::Feature kOnDeviceClusteringBlocklists;
  20. // Specifies how keywords get filtered and added to a cluster.
  21. extern const base::Feature kOnDeviceClusteringKeywordFiltering;
  22. } // namespace features
  23. } // namespace history_clusters
  24. #endif // COMPONENTS_HISTORY_CLUSTERS_CORE_ON_DEVICE_CLUSTERING_FEATURES_H_