1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MOJO_SERVICES_NETWORK_NET_ADDRESS_TYPE_CONVERTERS_H_
6 #define MOJO_SERVICES_NETWORK_NET_ADDRESS_TYPE_CONVERTERS_H_
8 #include "mojo/public/cpp/bindings/type_converter.h"
9 #include "mojo/services/public/interfaces/network/net_address.mojom.h"
10 #include "net/base/ip_endpoint.h"
15 struct TypeConverter<net::IPEndPoint, NetAddressPtr> {
16 static net::IPEndPoint Convert(const NetAddressPtr& obj);
20 struct TypeConverter<NetAddressPtr, net::IPEndPoint> {
21 static NetAddressPtr Convert(const net::IPEndPoint& obj);
26 #endif // MOJO_SERVICES_NETWORK_NET_ADDRESS_TYPE_CONVERTERS_H_