#include "components/history_clusters/history_clusters_internals/webui/history_clusters_internals_page_handler_impl.h"
#include "base/time/time.h"
#include "components/history_clusters/core/config.h"
#include "components/history_clusters/core/features.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_task.h"
#include "components/history_clusters/core/history_clusters_service_task_get_most_recent_clusters.h"
#include "components/history_clusters/core/history_clusters_util.h"
HistoryClustersInternalsPageHandlerImpl::
HistoryClustersInternalsPageHandlerImpl(
mojo::PendingRemote<history_clusters_internals::mojom::Page> page,
mojo::PendingReceiver<history_clusters_internals::mojom::PageHandler>
pending_page_handler,
history_clusters::HistoryClustersService* history_clusters_service,
history::HistoryService* history_service)
: … { … }
HistoryClustersInternalsPageHandlerImpl::
~HistoryClustersInternalsPageHandlerImpl() { … }
void HistoryClustersInternalsPageHandlerImpl::GetContextClustersJson(
GetContextClustersJsonCallback callback) { … }
void HistoryClustersInternalsPageHandlerImpl::GetContextClusters(
history_clusters::QueryClustersContinuationParams continuation_params,
std::vector<history::Cluster> previously_retrieved_clusters,
GetContextClustersJsonCallback callback) { … }
void HistoryClustersInternalsPageHandlerImpl::OnGotContextClusters(
std::vector<history::Cluster> previously_retrieved_clusters,
GetContextClustersJsonCallback callback,
std::vector<history::Cluster> new_clusters,
history_clusters::QueryClustersContinuationParams continuation_params) { … }
void HistoryClustersInternalsPageHandlerImpl::
PrintKeywordBagStateToLogMessages() { … }
void HistoryClustersInternalsPageHandlerImpl::OnDebugMessage(
const std::string& message) { … }