chromium/components/history_clusters/core/history_cluster_type_utils.h

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_HISTORY_CLUSTERS_CORE_HISTORY_CLUSTER_TYPE_UTILS_H_
#define COMPONENTS_HISTORY_CLUSTERS_CORE_HISTORY_CLUSTER_TYPE_UTILS_H_

#include "components/history_clusters/public/mojom/history_cluster_types.mojom-forward.h"

class TemplateURLService;

namespace history {
struct Cluster;
}  // namespace history

namespace history_clusters {

// Creates a `mojom::Cluster` from a `history_clusters::Cluster`.
mojom::ClusterPtr ClusterToMojom(const TemplateURLService* template_url_service,
                                 const history::Cluster cluster);

}  // namespace history_clusters

#endif  // COMPONENTS_HISTORY_CLUSTERS_CORE_HISTORY_CLUSTER_TYPE_UTILS_H_