chromium/components/privacy_sandbox/canonical_topic.cc

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

#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 {

// Keys of the value representation of a CanonicalTopic.
constexpr char kTopicId[] =;
constexpr char kTaxonomyVersion[] =;

std::u16string GetLocalizedRepresentationInternal(
    browsing_topics::Topic topic_id) {}

std::u16string GetLocalizedDescriptionInternal(
    browsing_topics::Topic topic_id) {}

}  // namespace

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 {}

/*static*/ std::optional<CanonicalTopic> CanonicalTopic::FromValue(
    const base::Value& value) {}

bool CanonicalTopic::operator<(const CanonicalTopic& other) const {}

bool CanonicalTopic::operator==(const CanonicalTopic& other) const {}

}  // namespace privacy_sandbox