Lines Matching refs:Path
101 // Mozilla sorts on the path length (longest first), and then it
106 if (cc1->Path().length() == cc2->Path().length())
108 return cc1->Path().length() > cc2->Path().length();
130 // name, and path.
134 const std::string& path)
137 path(path) {}
144 // Name compare dominates, then domain, then path.
153 return path.compare(cs.path) < 0;
158 std::string path;
244 // The RFC says the path should be a prefix of the current URL path.
245 // However, Mozilla allows you to set any path for compatibility with
247 // to be generous and accept cookies with an invalid path attribute, and
248 // default the path to something reasonable.
250 // The path was supplied in the cookie, we'll take it.
254 // The path was not supplied in the cookie or invalid, we will default
255 // to the current URL path.
256 // """Defaults to the path of the request URL that generated the
260 const std::string& url_path = url.path();
264 // The cookie path was invalid or a single '/'.
276 path_string = pc.Path();
540 const std::string& domain, const std::string& path,
554 url, name, value, domain, path,
824 if (url.path().find((*it)->Path()))
895 "{name='%s', domain='%s', path='%s'}",
898 (*it)->Path().c_str());
961 cookie->Path());
991 continue; // This cookiename/path has no duplicates.
1000 "with {name='%s', domain='%s', path='%s'}",
1005 signature.path.c_str());
1045 // than in the set path as many websites won't set cookies, and we
1123 if (!cc->IsOnPath(url.path()))
1907 static const char kPathTokenName[] = "path";
1944 const std::string& path,
1955 path_(path),
2013 const std::string& path,
2034 std::string parsed_path = ParsedCookie::ParseValueString(path);
2035 if (parsed_path != path)
2039 // Expect that the path was either not specified (empty), or is valid.
2042 // Canonicalize path again to make sure it escapes characters as needed.
2061 // creates a CanonicalCookie should make sure the path is never zero length,
2069 // Make sure the cookie path is a prefix of the url path. If the
2070 // url path is shorter than the cookie path, then the cookie path
2079 // In order to avoid in correctly matching a cookie path of /blah
2080 // with a request path of '/blahblah/', we need to make sure that either
2081 // the cookie path ends in a trailing '/', or that we prefix up to a '/'
2082 // in the url path. Since we know that the url path length is greater
2083 // than the cookie path length, it's safe to index one byte past.
2129 "name: %s value: %s domain: %s path: %s creation: %"