Lines Matching defs:scheme

137     base::string16* scheme,
151 // consider a scheme. For example, we shouldn't consider www.google.com:80
152 // to have a scheme.
157 if (scheme)
158 *scheme = parsed_scheme;
173 // A user might or might not type a scheme when entering a file URL. In
175 // but |parts->scheme| might be empty, e.g. if the user typed "C:\foo".
179 // If the user typed a scheme, and it's HTTP or HTTPS, we know how to parse it
182 // any input of this scheme. In theory we could do better with some schemes
185 if (parts->scheme.is_nonempty() &&
193 // We don't know about this scheme. It might be that the user typed a
211 // http scheme added).
212 http_parts.scheme.reset();
228 if (scheme)
229 scheme->clear();
235 // We don't know about this scheme and it doesn't look like the user
244 // Either the user didn't type a scheme, in which case we need to distinguish
245 // between an HTTP URL and a query, or the scheme is HTTP or HTTPS, in which
303 // the user explicitly typed a scheme, so we'll still search by default
318 return (parts->scheme.is_nonempty() ||
325 // little more sanity checking, the presence of a scheme means this is likely
327 if (parts->scheme.is_nonempty())
336 // it, unless they explicitly typed a scheme. This is true even if the URL
349 // the username is some unknown scheme, and bail out in the scheme-handling
372 // Because there is no scheme explicitly specified, we think this is more
389 // No scheme, password, port, path, and no known TLD on the host.
413 url::Component* scheme,
419 *scheme = parts.scheme;
422 int after_scheme_and_colon = parts.scheme.end() + 1;
423 // For the view-source scheme, we should emphasize the scheme and host of the
432 if (real_parts.scheme.is_nonempty() || real_parts.host.is_nonempty()) {
433 if (real_parts.scheme.is_nonempty()) {
434 *scheme = url::Component(
435 after_scheme_and_colon + real_parts.scheme.begin,
436 real_parts.scheme.len);
438 scheme->reset();
448 parts.inner_parsed() && parts.inner_parsed()->scheme.is_valid()) {
471 if (parts.scheme.is_nonempty())
491 url::Component scheme;
492 if (url::FindAndCompareScheme(utf8_input, kViewSourceScheme, &scheme)) {
493 utf8_input.erase(0, scheme.end() + 1);