Lines Matching refs:entry
69 HttpAuthCache::Entry* HttpAuthCache::Lookup(const GURL& origin,
80 return NULL; // No realm entry found.
85 // kept small because AddPath() only keeps the shallowest entry.
86 HttpAuthCache::Entry* HttpAuthCache::LookupByPath(const GURL& origin,
88 HttpAuthCache::Entry* best_match = NULL;
111 HttpAuthCache::Entry* HttpAuthCache::Add(const GURL& origin,
121 // Check for existing entry (we will re-use it if present).
122 HttpAuthCache::Entry* entry = Lookup(origin, realm, scheme);
123 if (!entry) {
130 entries_.push_front(Entry());
131 entry = &entries_.front();
132 entry->origin_ = origin;
133 entry->realm_ = realm;
134 entry->scheme_ = scheme;
136 DCHECK_EQ(origin, entry->origin_);
137 DCHECK_EQ(realm, entry->realm_);
138 DCHECK_EQ(scheme, entry->scheme_);
140 entry->auth_challenge_ = auth_challenge;
141 entry->username_ = username;
142 entry->password_ = password;
143 entry->nonce_count_ = 1;
144 entry->AddPath(path);
146 return entry;
149 HttpAuthCache::Entry::~Entry() {
152 void HttpAuthCache::Entry::UpdateStaleChallenge(
158 HttpAuthCache::Entry::Entry()
163 void HttpAuthCache::Entry::AddPath(const std::string& path) {
166 // Remove any entries that have been subsumed by the new entry.
181 bool HttpAuthCache::Entry::HasEnclosingPath(const std::string& dir,
189 // the length returned is used to determine the cache entry that
221 HttpAuthCache::Entry* entry = Lookup(origin, realm, scheme);
222 if (!entry)
224 entry->UpdateStaleChallenge(auth_challenge);