Lines Matching refs:HostCache

210 enum HostCache::SetOutcome : int {
218 enum HostCache::LookupOutcome : int {
227 enum HostCache::EraseReason : int {
234 HostCache::Key::Key(absl::variant<url::SchemeHostPort, std::string> host, in Key()
249 HostCache::Key::Key() = default;
250 HostCache::Key::Key(const Key& key) = default;
251 HostCache::Key::Key(Key&& key) = default;
253 HostCache::Key::~Key() = default;
255 HostCache::Entry::Entry(int error, in Entry()
267 HostCache::Entry::HttpsRecordPriority>::value, in Entry()
272 HostCache::Entry::Entry( in Entry()
389 HostCache::Entry::Entry(const Entry& entry) = default;
391 HostCache::Entry::Entry(Entry&& entry) = default;
393 HostCache::Entry::~Entry() = default;
395 std::vector<HostResolverEndpointResult> HostCache::Entry::GetEndpoints() const { in GetEndpoints()
424 std::vector<ConnectionEndpointMetadata> HostCache::Entry::GetMetadatas() const { in GetMetadatas()
438 std::optional<base::TimeDelta> HostCache::Entry::GetOptionalTtl() const { in GetOptionalTtl()
446 HostCache::Entry HostCache::Entry::MergeEntries(Entry front, Entry back) { in MergeEntries()
484 HostCache::Entry HostCache::Entry::CopyWithDefaultPort(uint16_t port) const { in CopyWithDefaultPort()
502 HostCache::Entry& HostCache::Entry::operator=(const Entry& entry) = default;
504 HostCache::Entry& HostCache::Entry::operator=(Entry&& entry) = default;
506 HostCache::Entry::Entry(int error, in Entry()
519 HostCache::Entry::Entry(const HostCache::Entry& entry, in Entry()
537 HostCache::Entry::Entry( in Entry()
560 void HostCache::Entry::PrepareForCacheInsertion() { in PrepareForCacheInsertion()
564 bool HostCache::Entry::IsStale(base::TimeTicks now, int network_changes) const { in IsStale()
572 void HostCache::Entry::CountHit(bool hit_is_stale) { in CountHit()
578 void HostCache::Entry::GetStaleness(base::TimeTicks now, in GetStaleness()
587 base::Value HostCache::Entry::NetLogParams() const { in NetLogParams()
591 base::Value::Dict HostCache::Entry::GetAsValue(bool include_staleness) const { in GetAsValue()
664 std::optional<base::TimeDelta> HostCache::Entry::TtlFromInternalResults( in TtlFromInternalResults()
683 const HostCache::EntryStaleness HostCache::kNotStale = {base::Seconds(-1), 0,
686 HostCache::HostCache(size_t max_entries) in HostCache() function in net::HostCache
690 HostCache::~HostCache() { in ~HostCache()
694 const std::pair<const HostCache::Key, HostCache::Entry>*
695 HostCache::Lookup(const Key& key, base::TimeTicks now, bool ignore_secure) { in Lookup()
712 const std::pair<const HostCache::Key, HostCache::Entry>* HostCache::LookupStale( in LookupStale()
715 HostCache::EntryStaleness* stale_out, in LookupStale()
735 std::pair<const HostCache::Key, HostCache::Entry>*
736 HostCache::GetLessStaleMoreSecureResult( in GetLessStaleMoreSecureResult()
738 std::pair<const HostCache::Key, HostCache::Entry>* result1, in GetLessStaleMoreSecureResult()
739 std::pair<const HostCache::Key, HostCache::Entry>* result2) { in GetLessStaleMoreSecureResult()
773 std::pair<const HostCache::Key, HostCache::Entry>*
774 HostCache::LookupInternalIgnoringFields(const Key& initial_key, in LookupInternalIgnoringFields()
777 std::pair<const HostCache::Key, HostCache::Entry>* preferred_result = in LookupInternalIgnoringFields()
790 std::pair<const HostCache::Key, HostCache::Entry>* HostCache::LookupInternal( in LookupInternal()
796 void HostCache::Set(const Key& key, in Set()
834 const HostCache::Key* HostCache::GetMatchingKeyForTesting( in GetMatchingKeyForTesting()
836 HostCache::Entry::Source* source_out, in GetMatchingKeyForTesting()
837 HostCache::EntryStaleness* stale_out) const { in GetMatchingKeyForTesting()
853 void HostCache::AddEntry(const Key& key, Entry&& entry) { in AddEntry()
859 void HostCache::Invalidate() { in Invalidate()
863 void HostCache::set_persistence_delegate(PersistenceDelegate* delegate) { in set_persistence_delegate()
870 void HostCache::clear() { in clear()
882 void HostCache::ClearForHosts( in ClearForHosts()
907 void HostCache::GetList(base::Value::List& entry_list, in GetList()
955 bool HostCache::RestoreFromListValue(const base::Value::List& old_cache) { in RestoreFromListValue()
1171 size_t HostCache::size() const { in size()
1176 size_t HostCache::max_entries() const { in max_entries()
1181 bool HostCache::EvictOneEntry(base::TimeTicks now) { in EvictOneEntry()
1184 std::optional<net::HostCache::EntryMap::iterator> oldest_it; in EvictOneEntry()
1211 bool HostCache::HasActivePin(const Entry& entry) { in HasActivePin()
1220 const net::HostCache::EntryStaleness& s) { in operator <<()