Home | History | Annotate | Download | only in base

Lines Matching refs:url

65 // what we prepend to get a file URL
701 std::wstring FormatViewSourceUrl(const GURL& url,
712 GURL real_url(url.possibly_invalid_spec().substr(kViewSourceLengthPlus1));
759 // Appends the substring |in_component| inside of the URL |spec| to |output|,
761 // defines how to clean the URL for human readability. |offset_for_adjustment|
777 // Produce a URL like "file:///C:/foo" for a regular file, or
778 // "file://///server/path" for UNC. The URL canonicalizer will fix up the
784 // literal filename, anything the URL parser might consider special should
1037 FilePath GetSuggestedFilename(const GURL& url,
1049 if (url.SchemeIs("about") || url.SchemeIs("data")) {
1071 if (url.is_valid()) {
1073 url.ExtractFileName(),
1087 // the URL hostname or default_name
1091 } else if (url.is_valid()) {
1095 filename = url.host().empty() ? kFinalFallbackName :
1097 UTF8ToWide(url.host());
1099 url.host();
1209 std::string GetHostAndPort(const GURL& url) {
1212 return StringPrintf("%s:%d", url.host().c_str(), url.EffectiveIntPort());
1215 std::string GetHostAndOptionalPort(const GURL& url) {
1218 if (url.has_port())
1219 return StringPrintf("%s:%s", url.host().c_str(), url.port().c_str());
1220 return url.host();
1256 void GetIdentityFromURL(const GURL& url,
1260 *username = UTF16ToWideHack(UnescapeAndDecodeUTF8URLComponent(url.username(),
1262 *password = UTF16ToWideHack(UnescapeAndDecodeUTF8URLComponent(url.password(),
1266 void AppendFormattedHost(const GURL& url,
1273 url.parsed_for_possibly_invalid_spec().host;
1289 const std::string& spec = url.possibly_invalid_spec();
1350 std::wstring FormatUrl(const GURL& url,
1367 if (url.is_empty()) {
1379 if (url.SchemeIs(kViewSource) &&
1380 !StartsWithASCII(url.possibly_invalid_spec(), kViewSourceTwice, false)) {
1381 return FormatViewSourceUrl(url, languages, omit_username_password,
1387 const std::string& spec = url.possibly_invalid_spec();
1388 const url_parse::Parsed& parsed = url.parsed_for_possibly_invalid_spec();
1448 AppendFormattedHost(url, languages, &url_string, new_parsed,
1492 // was within the input URL. If we reach here, the input was something
1503 GURL SimplifyUrlForRequest(const GURL& url) {
1504 DCHECK(url.is_valid());
1509 return url.ReplaceComponents(replacements);