#include "components/privacy_sandbox/canonical_topic.h"
#include "base/check_op.h"
#include "base/metrics/histogram_functions.h"
#include "components/browsing_topics/common/semantic_tree.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
namespace {
constexpr char kTopicId[] = …;
constexpr char kTaxonomyVersion[] = …;
std::u16string GetLocalizedRepresentationInternal(
browsing_topics::Topic topic_id) { … }
std::u16string GetLocalizedDescriptionInternal(
browsing_topics::Topic topic_id) { … }
}
namespace privacy_sandbox {
CanonicalTopic::CanonicalTopic(browsing_topics::Topic topic_id,
int taxonomy_version)
: … { … }
std::u16string CanonicalTopic::GetLocalizedRepresentation() const { … }
std::u16string CanonicalTopic::GetLocalizedDescription() const { … }
base::Value CanonicalTopic::ToValue() const { … }
std::optional<CanonicalTopic> CanonicalTopic::FromValue(
const base::Value& value) { … }
bool CanonicalTopic::operator<(const CanonicalTopic& other) const { … }
bool CanonicalTopic::operator==(const CanonicalTopic& other) const { … }
}