clusterer.h 737 B

123456789101112131415161718192021222324252627
  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_CLUSTERER_H_
  5. #define COMPONENTS_HISTORY_CLUSTERS_CORE_CLUSTERER_H_
  6. #include <vector>
  7. #include "components/history/core/browser/history_types.h"
  8. namespace history_clusters {
  9. // An object that groups visits into clusters.
  10. class Clusterer {
  11. public:
  12. Clusterer();
  13. ~Clusterer();
  14. // Groups |visits| into clusters.
  15. std::vector<history::Cluster> CreateInitialClustersFromVisits(
  16. std::vector<history::ClusterVisit>* visits);
  17. };
  18. } // namespace history_clusters
  19. #endif // COMPONENTS_HISTORY_CLUSTERS_CORE_CLUSTERER_H_