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

Unified Diff: net/base/address_family.h

Issue 3036011: [Linux] Enable connecting to localhost when offline. (Closed)
Patch Set: Address comments Created 10 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 | « no previous file | net/base/host_cache_unittest.cc » ('j') | net/base/host_resolver_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/address_family.h
diff --git a/net/base/address_family.h b/net/base/address_family.h
index fee0584b75a295d19e9111e1a6d72a1b94af2280..26ee7a482ec2e9c7517503375d914ce3873de6f5 100644
--- a/net/base/address_family.h
+++ b/net/base/address_family.h
@@ -15,10 +15,12 @@ enum AddressFamily {
ADDRESS_FAMILY_IPV6, // AF_INET6
};
-// HostResolverFlags is a bitflag enum wrapper around the addrinfo.ai_flags
-// supported by host resolver procedures.
+// HostResolverFlags is a bitflag enum used by host resolver procedures to
+// determine the value of addrinfo.ai_flags.
enum {
- HOST_RESOLVER_CANONNAME = 1 << 0, // 0x1, AI_CANONNAME
+ HOST_RESOLVER_CANONNAME = 1 << 0, // AI_CANONNAME
+ // Hint to the resolve proc that only loopback addresses are configured.
eroman 2010/07/23 00:48:14 typo: resolver
+ HOST_RESOLVER_LOOPBACK_ONLY = 1 << 1,
};
typedef int HostResolverFlags;
« no previous file with comments | « no previous file | net/base/host_cache_unittest.cc » ('j') | net/base/host_resolver_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698