Home | History | Annotate | Download | only in autocomplete

Lines Matching refs:URL

82   if (((type_ == UNKNOWN) || (type_ == REQUESTED_URL) || (type_ == URL)) &&
106 case REQUESTED_URL: return "requested-url";
107 case URL: return "url";
150 // A user might or might not type a scheme when entering a file URL. In
151 // either case, |parsed_scheme| will tell us that this is a file URL, but
153 return URL;
165 // See if we know how to handle the URL internally.
167 return URL;
176 return URL;
179 // a URL before, or if the "scheme" is actually a username. We need to do
188 return URL;
191 // If we don't want the user to open the URL, don't let it be navigated
197 // URL of the form "username:password@foo.com".
209 if ((http_type == URL || http_type == REQUESTED_URL) &&
241 // the option of treating it as a URL if we're wrong.
250 // between an HTTP URL and a query, or the scheme is HTTP or HTTPS, in which
253 // If we have an empty host it can't be a URL.
291 // * Our checker is too strict and the user pasted in a real-world URL
313 // A port number is a good indicator that this is a URL. However, it might
329 // a URL.
331 return URL;
338 // it, unless they explicitly typed a scheme. This is true even if the URL
340 // to a math problem) than a URL.
342 return URL;
346 return URL;
349 // a port, the presence of a port means this is likely a URL.
351 return URL;
353 // Presence of a password means this is likely a URL. Note that unless the
358 return URL;
365 // (e.g. "ps/2 games") than a URL. We can still open URLs with spaces in
371 string16::npos)) ? UNKNOWN : URL;
381 // We have a bare host string. If it has a known TLD, it's probably a URL.
383 return URL;
386 // * A string that the user wishes to add a desired_tld to to get a URL. If
388 // fixup code will be willing to add one; thus this is a URL.
390 // This is ideally an UNKNOWN, and we can let the Alternate Nav URL code
392 // * A URL with a valid TLD we don't know about yet. If e.g. a registrar adds
394 // "foo.xxx" is a real URL. So ideally this is a URL, but we can't really
396 // * A "URL-like" string that's not really a URL (like
420 // URL qualified by the view-source prefix.
423 // Obtain the URL prefixed by view-source and parse it.
448 const GURL& url,
450 if (!net::CanStripTrailingSlash(url))
539 string16 AutocompleteProvider::StringForURLDisplay(const GURL& url,
545 url,
660 // Set the alternate nav URL.
955 // updated if fill_into_edit differs. We don't check the URL as that may