#include "history_clusters_service_task_get_most_recent_clusters_for_ui.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_debug_jsons.h"
#include "components/history_clusters/core/history_clusters_service.h"
#include "components/history_clusters/core/history_clusters_util.h"
namespace history_clusters {
HistoryClustersServiceTaskGetMostRecentClustersForUI::
HistoryClustersServiceTaskGetMostRecentClustersForUI(
base::WeakPtr<HistoryClustersService> weak_history_clusters_service,
ClusteringBackend* const backend,
history::HistoryService* const history_service,
ClusteringRequestSource clustering_request_source,
QueryClustersFilterParams filter_params,
base::Time begin_time,
QueryClustersContinuationParams continuation_params,
QueryClustersCallback callback)
: … { … }
HistoryClustersServiceTaskGetMostRecentClustersForUI::
~HistoryClustersServiceTaskGetMostRecentClustersForUI() { … }
void HistoryClustersServiceTaskGetMostRecentClustersForUI::Start(
QueryClustersFilterParams filter_params) { … }
void HistoryClustersServiceTaskGetMostRecentClustersForUI::
OnGotMostRecentPersistedClusters(QueryClustersFilterParams filter_params,
base::TimeTicks start_time,
std::vector<history::Cluster> clusters) { … }
void HistoryClustersServiceTaskGetMostRecentClustersForUI::OnGotModelClusters(
base::TimeTicks start_time,
QueryClustersContinuationParams continuation_params,
std::vector<history::Cluster> clusters) { … }
}