Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Unified Diff: net/base/address_list.h

Issue 598071: Really connect to the same server in FTP network transaction. (Closed)
Patch Set: updates Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/notifier/communicator/ssl_socket_adapter.cc ('k') | net/base/address_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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).
« no previous file with comments | « chrome/browser/sync/notifier/communicator/ssl_socket_adapter.cc ('k') | net/base/address_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698