#include "components/history_clusters/core/history_cluster_type_utils.h"
#include <optional>
#include "base/i18n/time_formatting.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#include "components/history/core/browser/history_types.h"
#include "components/history_clusters/core/config.h"
#include "components/history_clusters/public/mojom/history_cluster_types.mojom.h"
#include "components/search_engines/template_url.h"
#include "components/search_engines/template_url_service.h"
#include "ui/base/l10n/time_format.h"
namespace history_clusters {
mojom::URLVisitPtr VisitToMojom(const TemplateURLService* template_url_service,
const history::ClusterVisit& visit) { … }
std::optional<mojom::SearchQueryPtr> SearchQueryToMojom(
const TemplateURLService* template_url_service,
const std::string& search_query) { … }
mojom::ClusterPtr ClusterToMojom(const TemplateURLService* template_url_service,
const history::Cluster cluster) { … }
}