#include "components/history_clusters/core/filter_cluster_processor.h"
#include <iterator>
#include "base/metrics/histogram_functions.h"
#include "components/history_clusters/core/config.h"
#include "components/history_clusters/core/history_clusters_types.h"
#include "components/history_clusters/core/history_clusters_util.h"
#include "components/history_clusters/core/on_device_clustering_util.h"
namespace history_clusters {
namespace {
void RecordClusterFilterReasonHistogram(
ClusteringRequestSource clustering_request_source,
ClusterFilterReason reason) { … }
bool IsFunctionalFilter(QueryClustersFilterParams filter_params) { … }
}
FilterClusterProcessor::FilterClusterProcessor(
ClusteringRequestSource clustering_request_source,
QueryClustersFilterParams& filter_params,
bool engagement_score_provider_is_valid)
: … { … }
FilterClusterProcessor::~FilterClusterProcessor() = default;
void FilterClusterProcessor::ProcessClusters(
std::vector<history::Cluster>* clusters) { … }
bool FilterClusterProcessor::DoesClusterMatchFilter(
history::Cluster& cluster) const { … }
}