#include "components/history_clusters/core/history_clusters_service_task_update_cluster_triggerability.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/metrics/histogram_functions.h"
#include "base/strings/stringprintf.h"
#include "components/history/core/browser/history_service.h"
#include "components/history_clusters/core/clustering_backend.h"
#include "components/history_clusters/core/config.h"
#include "components/history_clusters/core/history_clusters_db_tasks.h"
#include "components/history_clusters/core/history_clusters_debug_jsons.h"
#include "components/history_clusters/core/history_clusters_service.h"
namespace history_clusters {
HistoryClustersServiceTaskUpdateClusterTriggerability::
HistoryClustersServiceTaskUpdateClusterTriggerability(
base::WeakPtr<HistoryClustersService> weak_history_clusters_service,
ClusteringBackend* const backend,
history::HistoryService* const history_service,
bool likely_has_unclustered_visits_or_unprocessed_clusters,
base::OnceClosure callback)
: … { … }
HistoryClustersServiceTaskUpdateClusterTriggerability::
~HistoryClustersServiceTaskUpdateClusterTriggerability() = default;
void HistoryClustersServiceTaskUpdateClusterTriggerability::Start() { … }
void HistoryClustersServiceTaskUpdateClusterTriggerability::
OnGotAnnotatedVisitsToCluster(
base::TimeTicks start_time,
std::vector<int64_t> old_clusters_unused,
std::vector<history::AnnotatedVisit> annotated_visits,
QueryClustersContinuationParams continuation_params) { … }
void HistoryClustersServiceTaskUpdateClusterTriggerability::
OnGotModelContextClusters(base::TimeTicks start_time,
std::vector<history::Cluster> clusters) { … }
void HistoryClustersServiceTaskUpdateClusterTriggerability::
OnPersistedContextClusters(base::TimeTicks start_time) { … }
void HistoryClustersServiceTaskUpdateClusterTriggerability::
OnGotPersistedClusters(base::TimeTicks start_time,
std::vector<history::Cluster> clusters) { … }
void HistoryClustersServiceTaskUpdateClusterTriggerability::
OnGotModelClustersWithTriggerability(
base::TimeTicks start_time,
std::vector<history::Cluster> clusters) { … }
void HistoryClustersServiceTaskUpdateClusterTriggerability::
OnPersistedClusterTriggerability(base::TimeTicks start_time) { … }
void HistoryClustersServiceTaskUpdateClusterTriggerability::
MarkDoneAndRunCallback() { … }
}