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

Unified Diff: net/base/address_list.cc

Issue 7466031: AsyncHostResolver: integrated HostCache, temporarily, until we have RR cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed copyright year. Created 9 years, 5 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 | « net/base/address_list.h ('k') | net/base/async_host_resolver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/address_list.cc
diff --git a/net/base/address_list.cc b/net/base/address_list.cc
index f9076bc6a9e6f2975ab230a662f5e286a6a5e3c8..85bd012182a80028cbc705625e861251d1531aa9 100644
--- a/net/base/address_list.cc
+++ b/net/base/address_list.cc
@@ -279,4 +279,13 @@ AddressList::Data::~Data() {
FreeCopyOfAddrinfo(mutable_head);
}
+AddressList CreateAddressListUsingPort(const AddressList& src, int port) {
+ if (src.GetPort() == port)
+ return src;
+
+ AddressList out = src;
+ out.SetPort(port);
+ return out;
+}
+
} // namespace net
« no previous file with comments | « net/base/address_list.h ('k') | net/base/async_host_resolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698