| Index: net/base/address_list.h
|
| diff --git a/net/base/address_list.h b/net/base/address_list.h
|
| index 996d87156b19514134f96a0d0b5c5a9d5fce06d6..1ca86a144c54c4e8d141af7643756470ae1acfc8 100644
|
| --- a/net/base/address_list.h
|
| +++ b/net/base/address_list.h
|
| @@ -9,6 +9,7 @@
|
| #include <string>
|
|
|
| #include "base/ref_counted.h"
|
| +#include "net/base/net_util.h"
|
|
|
| struct addrinfo;
|
|
|
| @@ -21,6 +22,11 @@ class AddressList {
|
| // Constructs an empty address list.
|
| AddressList() {}
|
|
|
| + // Constructs an address list for a single IP literal. If
|
| + // |canonicalize_name| is true, fill the ai_canonname field with the
|
| + // canonicalized IP address.
|
| + AddressList(const IPAddressNumber& address, int port, bool canonicalize_name);
|
| +
|
| // Adopt the given addrinfo list in place of the existing one if any. This
|
| // hands over responsibility for freeing the addrinfo list to the AddressList
|
| // object.
|
| @@ -60,20 +66,6 @@ class AddressList {
|
| // empty state as when first constructed.
|
| void Reset();
|
|
|
| - // Used by unit-tests to manually create an IPv4 AddressList. |data| should
|
| - // be an IPv4 address in network order (big endian).
|
| - // If |canonical_name| is non-empty, it will be duplicated in the
|
| - // ai_canonname field of the addrinfo struct.
|
| - static AddressList CreateIPv4Address(unsigned char data[4],
|
| - const std::string& canonical_name);
|
| -
|
| - // Used by unit-tests to manually create an IPv6 AddressList. |data| should
|
| - // be an IPv6 address in network order (big endian).
|
| - // If |canonical_name| is non-empty, it will be duplicated in the
|
| - // ai_canonname field of the addrinfo struct.
|
| - static AddressList CreateIPv6Address(unsigned char data[16],
|
| - const std::string& canonical_name);
|
| -
|
| // Get access to the head of the addrinfo list.
|
| const struct addrinfo* head() const { return data_->head; }
|
|
|
|
|