chromium/components/attribution_reporting/registration_header_error_mojom_traits.cc

// Copyright 2024 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/attribution_reporting/registration_header_error_mojom_traits.h"

#include "base/functional/overloaded.h"
#include "components/attribution_reporting/registration_header_error.h"
#include "components/attribution_reporting/registration_header_error.mojom-shared.h"
#include "mojo/public/cpp/bindings/struct_traits.h"
#include "mojo/public/cpp/bindings/union_traits.h"
#include "third_party/abseil-cpp/absl/types/variant.h"

namespace mojo {

// static
bool StructTraits<attribution_reporting::mojom::RegistrationHeaderErrorDataView,
                  attribution_reporting::RegistrationHeaderError>::
    Read(attribution_reporting::mojom::RegistrationHeaderErrorDataView data,
         attribution_reporting::RegistrationHeaderError* out) {}

// static
attribution_reporting::mojom::RegistrationHeaderErrorDetailsDataView::Tag
UnionTraits<
    attribution_reporting::mojom::RegistrationHeaderErrorDetailsDataView,
    attribution_reporting::RegistrationHeaderErrorDetails>::
    GetTag(
        const attribution_reporting::RegistrationHeaderErrorDetails& details) {}

// static
bool UnionTraits<
    attribution_reporting::mojom::RegistrationHeaderErrorDetailsDataView,
    attribution_reporting::RegistrationHeaderErrorDetails>::
    Read(attribution_reporting::mojom::RegistrationHeaderErrorDetailsDataView
             data,
         attribution_reporting::RegistrationHeaderErrorDetails* out) {}

}  // namespace mojo