Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PPAPI_SHARED_IMPL_PRIVATE_NET_ADDRESS_PRIVATE_IMPL_H_ | 5 #ifndef PPAPI_SHARED_IMPL_PRIVATE_NET_ADDRESS_PRIVATE_IMPL_H_ |
| 6 #define PPAPI_SHARED_IMPL_PRIVATE_NET_ADDRESS_PRIVATE_IMPL_H_ | 6 #define PPAPI_SHARED_IMPL_PRIVATE_NET_ADDRESS_PRIVATE_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 40 // Conversion methods to make PPB_NetAddress resource work with | 40 // Conversion methods to make PPB_NetAddress resource work with |
| 41 // PP_NetAddress_Private. | 41 // PP_NetAddress_Private. |
| 42 // TODO(yzshen): Remove them once PPB_NetAddress resource doesn't use | 42 // TODO(yzshen): Remove them once PPB_NetAddress resource doesn't use |
| 43 // PP_NetAddress_Private as storage type. | 43 // PP_NetAddress_Private as storage type. |
| 44 static void CreateNetAddressPrivateFromIPv4Address( | 44 static void CreateNetAddressPrivateFromIPv4Address( |
| 45 const PP_NetAddress_IPv4& ipv4_addr, | 45 const PP_NetAddress_IPv4& ipv4_addr, |
| 46 PP_NetAddress_Private* addr); | 46 PP_NetAddress_Private* addr); |
| 47 static void CreateNetAddressPrivateFromIPv6Address( | 47 static void CreateNetAddressPrivateFromIPv6Address( |
| 48 const PP_NetAddress_IPv6& ipv6_addr, | 48 const PP_NetAddress_IPv6& ipv6_addr, |
| 49 PP_NetAddress_Private* addr); | 49 PP_NetAddress_Private* addr); |
| 50 static void CreateNetAddressPrivateFromAnyAddress(PP_Bool is_ipv6, | |
| 51 PP_NetAddress_Private* addr); | |
|
bbudge
2015/03/07 00:52:21
This shouldn't be with the conversion routines. Ho
etrunko
2015/03/09 17:24:30
Done.
| |
| 50 static PP_NetAddress_Family GetFamilyFromNetAddressPrivate( | 52 static PP_NetAddress_Family GetFamilyFromNetAddressPrivate( |
| 51 const PP_NetAddress_Private& addr); | 53 const PP_NetAddress_Private& addr); |
| 52 static bool DescribeNetAddressPrivateAsIPv4Address( | 54 static bool DescribeNetAddressPrivateAsIPv4Address( |
| 53 const PP_NetAddress_Private& addr, | 55 const PP_NetAddress_Private& addr, |
| 54 PP_NetAddress_IPv4* ipv4_addr); | 56 PP_NetAddress_IPv4* ipv4_addr); |
| 55 static bool DescribeNetAddressPrivateAsIPv6Address( | 57 static bool DescribeNetAddressPrivateAsIPv6Address( |
| 56 const PP_NetAddress_Private& addr, | 58 const PP_NetAddress_Private& addr, |
| 57 PP_NetAddress_IPv6* ipv6_addr); | 59 PP_NetAddress_IPv6* ipv6_addr); |
| 58 | 60 |
| 59 static const PP_NetAddress_Private kInvalidNetAddress; | 61 static const PP_NetAddress_Private kInvalidNetAddress; |
| 60 | 62 |
| 61 private: | 63 private: |
| 62 DISALLOW_IMPLICIT_CONSTRUCTORS(NetAddressPrivateImpl); | 64 DISALLOW_IMPLICIT_CONSTRUCTORS(NetAddressPrivateImpl); |
| 63 }; | 65 }; |
| 64 | 66 |
| 65 } // namespace ppapi | 67 } // namespace ppapi |
| 66 | 68 |
| 67 #endif // PPAPI_SHARED_IMPL_PRIVATE_NET_ADDRESS_PRIVATE_IMPL_H_ | 69 #endif // PPAPI_SHARED_IMPL_PRIVATE_NET_ADDRESS_PRIVATE_IMPL_H_ |
| OLD | NEW |