Lines Matching refs:origin
15 FtpAuthCache::Entry::Entry(const GURL& origin,
17 : origin(origin),
27 FtpAuthCache::Entry* FtpAuthCache::Lookup(const GURL& origin) {
29 if (it->origin == origin)
35 void FtpAuthCache::Add(const GURL& origin, const AuthCredentials& credentials) {
36 DCHECK(origin.SchemeIs("ftp"));
37 DCHECK_EQ(origin.GetOrigin(), origin);
39 Entry* entry = Lookup(origin);
43 entries_.push_front(Entry(origin, credentials));
51 void FtpAuthCache::Remove(const GURL& origin,
54 if (it->origin == origin && it->credentials.Equals(credentials)) {
56 DCHECK(!Lookup(origin));