| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef MOJO_SERVICES_NETWORK_NET_ADDRESS_TYPE_CONVERTERS_H_ | |
| 6 #define MOJO_SERVICES_NETWORK_NET_ADDRESS_TYPE_CONVERTERS_H_ | |
| 7 | |
| 8 #include "mojo/public/cpp/bindings/type_converter.h" | |
| 9 #include "mojo/services/network/public/interfaces/net_address.mojom.h" | |
| 10 #include "net/base/ip_endpoint.h" | |
| 11 | |
| 12 namespace mojo { | |
| 13 | |
| 14 template <> | |
| 15 struct TypeConverter<net::IPEndPoint, NetAddressPtr> { | |
| 16 static net::IPEndPoint Convert(const NetAddressPtr& obj); | |
| 17 }; | |
| 18 | |
| 19 template <> | |
| 20 struct TypeConverter<NetAddressPtr, net::IPEndPoint> { | |
| 21 static NetAddressPtr Convert(const net::IPEndPoint& obj); | |
| 22 }; | |
| 23 | |
| 24 } // namespace mojo | |
| 25 | |
| 26 #endif // MOJO_SERVICES_NETWORK_NET_ADDRESS_TYPE_CONVERTERS_H_ | |
| OLD | NEW |