chromium/services/network/public/cpp/network_anonymization_key_mojom_traits.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 "services/network/public/cpp/network_anonymization_key_mojom_traits.h"

#include <optional>

#include "base/unguessable_token.h"
#include "net/base/features.h"

namespace mojo {

// static
bool StructTraits<network::mojom::EmptyNetworkAnonymizationKeyDataView,
                  net::NetworkAnonymizationKey>::
    Read(network::mojom::EmptyNetworkAnonymizationKeyDataView data,
         net::NetworkAnonymizationKey* out) {}

// static
bool StructTraits<network::mojom::NonEmptyNetworkAnonymizationKeyDataView,
                  net::NetworkAnonymizationKey>::
    Read(network::mojom::NonEmptyNetworkAnonymizationKeyDataView data,
         net::NetworkAnonymizationKey* out) {}

// static
bool UnionTraits<network::mojom::NetworkAnonymizationKeyDataView,
                 net::NetworkAnonymizationKey>::
    Read(network::mojom::NetworkAnonymizationKeyDataView data,
         net::NetworkAnonymizationKey* out) {}

// static
network::mojom::NetworkAnonymizationKeyDataView::Tag UnionTraits<
    network::mojom::NetworkAnonymizationKeyDataView,
    net::NetworkAnonymizationKey>::GetTag(const net::NetworkAnonymizationKey&
                                              network_anonymization_key) {}

}  // namespace mojo