chromium/services/network/public/cpp/network_interface_change_listener_mojom_traits.cc

// 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.

#include "services/network/public/cpp/network_interface_change_listener_mojom_traits.h"

#include <unordered_set>

#include "mojo/public/cpp/bindings/array_traits_stl.h"
#include "net/base/address_map_linux.h"
#include "services/network/public/cpp/ip_address_mojom_traits.h"

namespace mojo {

// static
bool StructTraits<network::mojom::AddressMapDataView,
                  net::AddressMapOwnerLinux::AddressMap>::
    Read(network::mojom::AddressMapDataView obj,
         net::AddressMapOwnerLinux::AddressMap* address_map) {}

// static
bool StructTraits<
    network::mojom::OnlineLinksDataView,
    std::unordered_set<int>>::Read(network::mojom::OnlineLinksDataView obj,
                                   std::unordered_set<int>* online_links) {}

// static
bool StructTraits<network::mojom::IfAddrMsgDataView, struct ifaddrmsg>::Read(
    network::mojom::IfAddrMsgDataView obj,
    struct ifaddrmsg* msg) {}

}  // namespace mojo