summaryrefslogtreecommitdiffstats
path: root/net/base/host_resolver.h
diff options
context:
space:
mode:
authorszym@chromium.org <szym@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-14 19:09:27 +0000
committerszym@chromium.org <szym@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-14 19:09:27 +0000
commit78eac2a2edb56ad0bd2714ab62154e5848f0d91d (patch)
tree3ccdb2c487753f6d279a26a1031ef5749f6a9fc1 /net/base/host_resolver.h
parentecded430294087b94b1d5fc2da55a8dd20aee19b (diff)
downloadchromium_src-78eac2a2edb56ad0bd2714ab62154e5848f0d91d.zip
chromium_src-78eac2a2edb56ad0bd2714ab62154e5848f0d91d.tar.gz
chromium_src-78eac2a2edb56ad0bd2714ab62154e5848f0d91d.tar.bz2
[net/dns] Serve requests from HOSTS file if possible.
If the DnsConfig is available, we can serve the requests synchronously in Resolve. However, we might not receive the DnsConfig until the Job is placed in the queue. In that case, we attempt to serve the jobs once DnsConfig is available. BUG=114826 TEST=./net_unittests --gtest_filter=HostResolverImplTest.ServeFromHosts Original review: https://chromiumcodereview.appspot.com/9667025/ Review URL: http://codereview.chromium.org/9705017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126697 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/host_resolver.h')
-rw-r--r--net/base/host_resolver.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/base/host_resolver.h b/net/base/host_resolver.h
index e375961..a282701 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;