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

Unified Diff: net/base/host_resolver.h

Issue 9705017: [net/dns] Serve requests from HOSTS file if possible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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_resolver_impl.h » ('j') | net/base/host_resolver_impl_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/host_resolver.h
diff --git a/net/base/host_resolver.h b/net/base/host_resolver.h
index e375961f47db81cf5382ca832e870bb4764a57b8..a282701e6b4aae7eec4b310fcc25f201065953be 100644
--- a/net/base/host_resolver.h
+++ b/net/base/host_resolver.h
@@ -132,10 +132,10 @@ class NET_EXPORT HostResolver {
RequestHandle* out_req,
const BoundNetLog& net_log) = 0;
- // Resolves the given hostname (or IP address literal) out of cache
- // only. This is guaranteed to complete synchronously. This acts like
- // |Resolve()| if the hostname is IP literal or cached value exists.
- // Otherwise, ERR_DNS_CACHE_MISS is returned.
+ // Resolves the given hostname (or IP address literal) out of cache or HOSTS
+ // file (if enabled) only. This is guaranteed to complete synchronously.
+ // This acts like |Resolve()| if the hostname is IP literal, or cached value
+ // or HOSTS entry exists. Otherwise, ERR_DNS_CACHE_MISS is returned.
virtual int ResolveFromCache(const RequestInfo& info,
AddressList* addresses,
const BoundNetLog& net_log) = 0;
« no previous file with comments | « no previous file | net/base/host_resolver_impl.h » ('j') | net/base/host_resolver_impl_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698