single_domain_cluster_finalizer.h 850 B

12345678910111213141516171819202122232425
  1. // Copyright 2022 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_SINGLE_DOMAIN_CLUSTER_FINALIZER_H_
  5. #define COMPONENTS_HISTORY_CLUSTERS_CORE_SINGLE_DOMAIN_CLUSTER_FINALIZER_H_
  6. #include "components/history_clusters/core/cluster_finalizer.h"
  7. namespace history_clusters {
  8. // A cluster finalizer that finalizes single-domain clusters by not showing
  9. // them.
  10. class SingleDomainClusterFinalizer : public ClusterFinalizer {
  11. public:
  12. SingleDomainClusterFinalizer();
  13. ~SingleDomainClusterFinalizer() override;
  14. // ClusterFinalizer:
  15. void FinalizeCluster(history::Cluster& cluster) override;
  16. };
  17. } // namespace history_clusters
  18. #endif // COMPONENTS_HISTORY_CLUSTERS_CORE_SINGLE_DOMAIN_CLUSTER_FINALIZER_H_