| Index: net/base/address_list.h
|
| diff --git a/net/base/address_list.h b/net/base/address_list.h
|
| index 3087472e55be57c94e138fc3949795b7057d20c0..b477987df6189037c35f9a2fd4e1f8f583e79539 100644
|
| --- a/net/base/address_list.h
|
| +++ b/net/base/address_list.h
|
| @@ -23,8 +23,14 @@ class AddressList {
|
| // object.
|
| void Adopt(struct addrinfo* head);
|
|
|
| - // Copies the given addrinfo rather than adopting it.
|
| - void Copy(const struct addrinfo* head);
|
| + // Copies the given addrinfo rather than adopting it. If |recursive| is true,
|
| + // all linked struct addrinfos will be copied as well. Otherwise only the head
|
| + // will be copied, and the rest of linked entries will be ignored.
|
| + void Copy(const struct addrinfo* head, bool recursive);
|
| +
|
| + // Appends a copy of |head| and all its linked addrinfos to the stored
|
| + // addrinfo.
|
| + void Append(const struct addrinfo* head);
|
|
|
| // Sets the port of all addresses in the list to |port| (that is the
|
| // sin[6]_port field for the sockaddrs).
|
|
|