#include "history_clusters_service_task_get_most_recent_clusters.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/location.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"
#include "components/history_clusters/core/history_clusters_util.h"
namespace history_clusters {
HistoryClustersServiceTaskGetMostRecentClusters::
HistoryClustersServiceTaskGetMostRecentClusters(
base::WeakPtr<HistoryClustersService> weak_history_clusters_service,
const IncompleteVisitMap incomplete_visit_context_annotations,
ClusteringBackend* const backend,
history::HistoryService* const history_service,
ClusteringRequestSource clustering_request_source,
base::Time begin_time,
QueryClustersContinuationParams continuation_params,
bool recluster,
QueryClustersCallback callback)
: … { … }
HistoryClustersServiceTaskGetMostRecentClusters::
~HistoryClustersServiceTaskGetMostRecentClusters() { … }
void HistoryClustersServiceTaskGetMostRecentClusters::Start() { … }
void HistoryClustersServiceTaskGetMostRecentClusters::
OnGotAnnotatedVisitsToCluster(
std::vector<int64_t> old_clusters_unused,
std::vector<history::AnnotatedVisit> annotated_visits,
QueryClustersContinuationParams continuation_params) { … }
void HistoryClustersServiceTaskGetMostRecentClusters::OnGotModelClusters(
QueryClustersContinuationParams continuation_params,
std::vector<history::Cluster> clusters) { … }
void HistoryClustersServiceTaskGetMostRecentClusters::
ReturnMostRecentPersistedClusters(base::Time exclusive_max_time) { … }
void HistoryClustersServiceTaskGetMostRecentClusters::
OnGotMostRecentPersistedClusters(std::vector<history::Cluster> clusters) { … }
}