summaryrefslogtreecommitdiffstats
path: root/net/base/host_resolver.cc
diff options
context:
space:
mode:
authormbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-02 08:09:40 +0000
committermbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-02 08:09:40 +0000
commit3836871fc5749a9f79290fa97182c45b45d39350 (patch)
tree4867eef8782c8c8f05ea24d1c3bb27246ac2add2 /net/base/host_resolver.cc
parent9fce5f0576768090f2c3b8f751e6e7c805cc0a6e (diff)
downloadchromium_src-3836871fc5749a9f79290fa97182c45b45d39350.zip
chromium_src-3836871fc5749a9f79290fa97182c45b45d39350.tar.gz
chromium_src-3836871fc5749a9f79290fa97182c45b45d39350.tar.bz2
Add a flag to a host resolver request to request that resolution only
be done from the cache (i.e. don't do a network lookup, and return results only synchronously). BUG=none TEST=HostResolverImplTest::DisallowNonCachedResponses Review URL: http://codereview.chromium.org/6602038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76515 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/host_resolver.cc')
-rw-r--r--net/base/host_resolver.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/base/host_resolver.cc b/net/base/host_resolver.cc
index 49678a2..592b03c 100644
--- a/net/base/host_resolver.cc
+++ b/net/base/host_resolver.cc
@@ -15,6 +15,7 @@ HostResolver::RequestInfo::RequestInfo(const HostPortPair& host_port_pair)
address_family_(ADDRESS_FAMILY_UNSPECIFIED),
host_resolver_flags_(0),
allow_cached_response_(true),
+ only_use_cached_response_(false),
is_speculative_(false),
priority_(MEDIUM) {
}