Home | History | Annotate | Download | only in autocomplete

Lines Matching refs:scheme

122     string16* scheme,
136 // consider a scheme. For example, we shouldn't consider www.google.com:80
137 // to have a scheme.
142 if (scheme)
143 *scheme = parsed_scheme;
150 // A user might or might not type a scheme when entering a file URL. In
152 // |parts->scheme| might be empty, e.g. if the user typed "C:\foo".
156 // If the user typed a scheme, and it's HTTP or HTTPS, we know how to parse it
159 // any input of this scheme. In theory we could do better with some schemes
162 if (parts->scheme.is_nonempty() &&
178 // Finally, check and see if the user has explicitly opened this scheme as
179 // a URL before, or if the "scheme" is actually a username. We need to do
196 // We don't know about this scheme. It might be that the user typed a
213 // http scheme added).
214 http_parts.scheme.reset();
230 if (scheme)
231 scheme->clear();
238 // We don't know about this scheme and it doesn't look like the user
249 // Either the user didn't type a scheme, in which case we need to distinguish
250 // between an HTTP URL and a query, or the scheme is HTTP or HTTPS, in which
293 // the user explicitly typed a scheme, so we'll still search by default
308 return (parts->scheme.is_nonempty() ||
328 // little more sanity checking, the presence of a scheme means this is likely
330 if (parts->scheme.is_nonempty())
338 // it, unless they explicitly typed a scheme. This is true even if the URL
355 // the username is some unknown scheme, and bail out in the scheme-handling
375 // Because there is no scheme explicitly specified, we think this is more
409 url_parse::Component* scheme,
415 *scheme = parts.scheme;
418 int after_scheme_and_colon = parts.scheme.end() + 1;
419 // For the view-source scheme, we should emphasize the scheme and host of the
427 if (real_parts.scheme.is_nonempty() || real_parts.host.is_nonempty()) {
428 if (real_parts.scheme.is_nonempty()) {
429 *scheme = url_parse::Component(
430 after_scheme_and_colon + real_parts.scheme.begin,
431 real_parts.scheme.len);
433 scheme->reset();
518 url_parse::Component scheme;
520 &scheme))
521 utf8_input.erase(0, scheme.end() + 1);