Searched refs:HostCache (Results 1 - 15 of 15) sorted by relevance

/external/chromium_org/net/dns/
H A Dhost_cache.cc17 HostCache::Entry::Entry(int error, const AddressList& addrlist,
25 HostCache::Entry::Entry(int error, const AddressList& addrlist)
31 HostCache::Entry::~Entry() {
36 HostCache::HostCache(size_t max_entries) function in class:net::HostCache
40 HostCache::~HostCache() {
43 const HostCache::Entry* HostCache::Lookup(const Key& key,
52 void HostCache
[all...]
H A Dhost_cache_unittest.cc21 HostCache::Key Key(const std::string& hostname) {
22 return HostCache::Key(hostname, ADDRESS_FAMILY_UNSPECIFIED, 0);
30 HostCache cache(kMaxCacheEntries);
35 HostCache::Key key1 = Key("foobar.com");
36 HostCache::Key key2 = Key("foobar2.com");
37 HostCache::Entry entry = HostCache::Entry(OK, AddressList());
94 HostCache cache(kMaxCacheEntries);
99 HostCache::Key key1 = Key("foobar.com");
100 HostCache
[all...]
H A Dhost_cache.h23 class NET_EXPORT HostCache : NON_EXPORTED_BASE(public base::NonThreadSafe) { class in namespace:net
76 // Constructs a HostCache that stores up to |max_entries|.
77 explicit HostCache(size_t max_entries);
79 ~HostCache();
105 static scoped_ptr<HostCache> CreateDefaultCache();
110 // Returns true if this HostCache can contain no entries.
119 DISALLOW_COPY_AND_ASSIGN(HostCache);
H A Dhost_resolver_impl.h102 // HostCache::CreateDefaultCache(). Otherwise no cache is used.
140 virtual HostCache* GetHostCache() OVERRIDE;
154 typedef HostCache::Key Key;
203 const HostCache::Entry& entry,
243 scoped_ptr<HostCache> cache_;
245 // Map from HostCache::Key to a Job.
H A Dmock_host_resolver.h19 class HostCache;
87 virtual HostCache* GetHostCache() OVERRIDE;
134 scoped_ptr<HostCache> cache_;
H A Dhost_resolver.h27 class HostCache;
48 // |enable_caching| controls whether a HostCache is used.
181 virtual HostCache* GetHostCache();
H A Dmapped_host_resolver.cc54 HostCache* MappedHostResolver::GetHostCache() {
H A Dmapped_host_resolver.h59 virtual HostCache* GetHostCache() OVERRIDE;
H A Dmock_host_resolver.cc125 HostCache* MockHostResolverBase::GetHostCache() {
150 cache_.reset(new HostCache(kMaxCacheEntries));
171 HostCache::Key key(info.hostname(),
174 const HostCache::Entry* entry = cache_->Lookup(key, base::TimeTicks::Now());
194 HostCache::Key key(info.hostname(),
201 cache_->Set(key, HostCache::Entry(rv, addr), base::TimeTicks::Now(), ttl);
H A Dhost_resolver.cc110 HostCache* HostResolver::GetHostCache() {
H A Dhost_resolver_impl.cc1369 HostCache::Entry(OK, MakeAddressListForRequest(addr_list)),
1540 HostCache::Entry(net_error, MakeAddressListForRequest(addr_list)),
1624 HostCache::Entry(net_error, MakeAddressListForRequest(addr_list), ttl),
1642 void CompleteRequests(const HostCache::Entry& entry,
1721 CompleteRequests(HostCache::Entry(net_error, AddressList()),
1810 cache_ = HostCache::CreateDefaultCache();
2004 HostCache* HostResolverImpl::GetHostCache() {
2066 const HostCache::Entry* cache_entry = cache_->Lookup(
2129 const HostCache::Entry& entry,
/external/chromium_org/chrome/browser/ui/webui/net_internals/
H A Dnet_internals_ui_browsertest.cc57 net::HostCache* cache = context->host_resolver()->GetHostCache();
60 net::HostCache::Key key(hostname, net::ADDRESS_FAMILY_UNSPECIFIED, 0);
74 cache->Set(net::HostCache::Key(hostname, net::ADDRESS_FAMILY_UNSPECIFIED, 0),
75 net::HostCache::Entry(net_error, address_list),
H A Dnet_internals_ui.cc111 // Returns the HostCache for |context|'s primary HostResolver, or NULL if
113 net::HostCache* GetHostResolverCache(net::URLRequestContext* context) {
983 net::HostCache* cache = GetHostResolverCache(context);
1008 net::HostCache::EntryMap::Iterator it(cache->entries());
1010 const net::HostCache::Key& key = it.key();
1011 const net::HostCache::Entry& entry = it.value();
1044 net::HostCache* cache = GetHostResolverCache(GetMainContext());
/external/chromium_org/chrome/browser/
H A Dchrome_net_benchmarking_message_filter.cc94 net::HostCache* cache =
H A Dio_thread.cc970 net::HostCache* host_cache = globals_->host_resolver->GetHostCache();

Completed in 1305 milliseconds