Home | History | Annotate | Download | only in base

Lines Matching refs:url

280 static bool GetCookieDomainKey(const GURL& url,
283 const std::string url_host(url.host());
286 // We match IE/Firefox in allowing a domain=IPADDR if it matches the url
289 (url.HostIsIPAddress() && url_host == pc.Domain())) {
309 // Ensure |url| and |cookie_domain| have the same domain+registry.
310 const std::string url_scheme(url.scheme());
333 static std::string CanonPath(const GURL& url,
335 // The RFC says the path should be a prefix of the current URL path.
346 // to the current URL path.
347 // """Defaults to the path of the request URL that generated the
351 const std::string& url_path = url.path();
385 bool CookieMonster::HasCookieableScheme(const GURL& url) {
386 // Make sure the request is on a cookie-able url scheme.
389 if (url.SchemeIs(cookieable_schemes_[i].c_str())) {
396 COOKIE_DLOG(WARNING) << "Unsupported cookie scheme: " << url.scheme();
408 const GURL& url,
412 if (!HasCookieableScheme(url)) {
441 if (!GetCookieDomainKey(url, pc, &cookie_domain)) {
445 std::string cookie_path = CanonPath(url, pc);
697 bool CookieMonster::SetCookieWithOptions(const GURL& url,
700 return SetCookieWithCreationTimeAndOptions(url, cookie_line, Time(), options);
715 std::string CookieMonster::GetCookiesWithOptions(const GURL& url,
717 if (!HasCookieableScheme(url)) {
723 FindCookiesForHostAndDomain(url, options, &cookies);
744 void CookieMonster::DeleteCookie(const GURL& url,
746 if (!HasCookieableScheme(url))
753 FindCookiesForHostAndDomain(url, options, &cookies);
760 if (url.path().find((*it)->Path()))
796 CookieMonster::CookieList CookieMonster::GetAllCookiesForURL(const GURL& url) {
806 if (!HasCookieableScheme(url))
809 bool secure = url.SchemeIsSecure();
812 std::string key(url.host());
816 const std::string domain(GetEffectiveDomain(url.scheme(), key));
833 const GURL& url,
842 std::string key(url.host());
843 FindCookiesForKey(key, url, options, current_time, cookies);
846 const std::string domain(GetEffectiveDomain(url.scheme(), key));
859 FindCookiesForKey(key, url, options, current_time, cookies);
867 const GURL& url,
871 bool secure = url.SchemeIsSecure();
893 if (!cc->IsOnPath(url.path()))
1151 // Make sure the cookie path is a prefix of the url path. If the
1152 // url path is shorter than the cookie path, then the cookie path
1164 // in the url path. Since we know that the url path length is greater