Lines Matching refs:domain
103 // The RFC says the sort order for the domain attribute is undefined.
129 // Two cookies are considered equivalent if they have the same domain,
133 CookieSignature(const std::string& name, const std::string& domain,
136 domain(domain),
144 // Name compare dominates, then domain, then path.
149 diff = domain.compare(cs.domain);
157 std::string domain;
174 // Determine the actual cookie domain based on the domain string passed
177 // -host cookie domain (ex: "google.com")
178 // -domain cookie domain (ex: ".google.com")
184 // If no domain was specified in the domain string, default to a host cookie.
185 // We match IE/Firefox in allowing a domain=IPADDR if it matches the url
194 // Get the normalized domain specified in cookie line.
195 // Note: The RFC says we can reject a cookie if the domain
197 // of the form domain=my.domain.com, treating it the same as
198 // domain=.my.domain.com -- for compatibility we do the same here. Firefox
199 // also treats domain=.....my.domain.com like domain=.my.domain.com, but
208 // Ensure |url| and |cookie_domain| have the same domain+registry.
213 return false; // IP addresses/intranet hosts can't set domain cookies.
217 return false; // Can't set a cookie on a different domain + registry.
220 // we know the domain+registry are the same from the above checks, this is
232 // Determine the cookie domain to use for setting the specified cookie.
238 domain_string = pc.Domain();
540 const std::string& domain, const std::string& path,
554 url, name, value, domain, path,
681 // domain cookies are stored with a leading ".". So this is a pretty
705 for (CookieMapItPair its = cookies_.equal_range(GetKey(cookie.Domain()));
780 // Get the cookies for this host and its domain(s).
815 // Get the cookies for this host and its domain(s).
887 InternalInsertCookie(GetKey((*it)->Domain()), *it, false);
895 "{name='%s', domain='%s', path='%s'}",
897 (*it)->Domain().c_str(),
960 CookieSignature signature(cookie->Name(), cookie->Domain(),
1000 "with {name='%s', domain='%s', path='%s'}",
1004 signature.domain.c_str(),
1063 // See if we can search for domain cookies, i.e. if the host has a TLD + 1.
1064 const std::string domain(GetEffectiveDomain(url.scheme(), key));
1065 if (domain.empty())
1067 DCHECK_LE(domain.length(), key.length());
1068 DCHECK_EQ(0, key.compare(key.length() - domain.length(), domain.length(),
1069 domain));
1073 // domain + registry; we can't write cookies past this point, and with some
1076 for (key = "." + key; key.length() > domain.length(); ) {
1118 // Filter out cookies that don't apply to this domain.
1233 const std::string key(GetKey((*cc)->Domain()));
1316 // Domain expiry behavior is unchanged by key/expiry scheme (the
1467 std::string CookieMonster::GetKey(const std::string& domain) const {
1469 return domain;
1472 RegistryControlledDomainService::GetDomainAndRegistry(domain));
1474 effective_domain = domain;
1533 const std::string& cookie_domain(its_cookies.first->second->Domain());
1908 static const char kDomainTokenName[] = "domain";
1943 const std::string& domain,
1954 domain_(domain),
1978 // Do the best we can with the domain.
1982 domain_string = pc.Domain();
2012 const std::string& domain,
2027 std::string parsed_domain = ParsedCookie::ParseValueString(domain);
2028 if (parsed_domain != domain)
2095 // Can domain match in two ways; as a domain cookie (where the cookie
2096 // domain begins with ".") or as a host cookie (where it doesn't).
2105 // Domain cookie must have an initial ".". To match, it must be
2120 // A pure suffix of the host (ok since we know the domain already
2129 "name: %s value: %s domain: %s path: %s creation: %"