content_annotations_cluster_processor.h 943 B

1234567891011121314151617181920212223242526
  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_CONTENT_ANNOTATIONS_CLUSTER_PROCESSOR_H_
  5. #define COMPONENTS_HISTORY_CLUSTERS_CORE_CONTENT_ANNOTATIONS_CLUSTER_PROCESSOR_H_
  6. #include "components/history_clusters/core/cluster_processor.h"
  7. namespace history_clusters {
  8. // A cluster processor that combines clusters based on content annotations
  9. // similarity.
  10. class ContentAnnotationsClusterProcessor : public ClusterProcessor {
  11. public:
  12. ContentAnnotationsClusterProcessor();
  13. ~ContentAnnotationsClusterProcessor() override;
  14. // ClusterProcessor:
  15. std::vector<history::Cluster> ProcessClusters(
  16. const std::vector<history::Cluster>& clusters) override;
  17. };
  18. } // namespace history_clusters
  19. #endif // COMPONENTS_HISTORY_CLUSTERS_CORE_CONTENT_ANNOTATIONS_CLUSTER_PROCESSOR_H_