Lines Matching refs:scheme

249                      Component* scheme) {
260 *scheme = MakeRange(begin, i);
264 return false; // No colon found: no scheme
267 // Fills in all members of the Parsed structure except for the scheme.
270 // |after_scheme| is the character immediately following the scheme (after the
315 // The main parsing function for standard URLs. Standard URLs have a scheme,
326 if (DoExtractScheme(spec, spec_len, &parsed->scheme)) {
327 after_scheme = parsed->scheme.end() + 1; // Skip past the colon.
329 // Say there's no scheme when there is no colon. We could also say that
330 // everything is the scheme. Both would produce an invalid URL, but this way
332 parsed->scheme.reset();
358 parsed->scheme.reset();
364 // Extract the scheme. We also handle the case where there is no scheme.
365 if (DoExtractScheme(&spec[begin], spec_len - begin, &parsed->scheme)) {
367 parsed->scheme.begin += begin;
369 if (parsed->scheme.end() == spec_len - 1)
372 inner_start = parsed->scheme.end() + 1;
374 // No scheme found; that's not valid for filesystem URLs.
375 parsed->scheme.reset();
390 // No scheme found; that's not valid for filesystem URLs.
411 // If we had any scheme that supported nesting more than one level deep,
414 inner_parsed.scheme.begin += inner_start;
430 if (!inner_parsed.scheme.is_valid() || !inner_parsed.path.is_valid() ||
453 // Initializes a path URL which is merely a scheme followed by a path. Examples
459 // Get the non-path and non-scheme parts of the URL out of the way, we never
475 parsed->scheme.reset();
481 // Extract the scheme, with the path being everything following. We also
482 // handle the case where there is no scheme.
484 &parsed->scheme)) {
486 parsed->scheme.begin += scheme_begin;
487 path_begin = parsed->scheme.end() + 1;
489 // No scheme case.
490 parsed->scheme.reset();
509 // Get the non-path and non-scheme parts of the URL out of the way, we never
524 parsed->scheme.reset();
532 // Extract the scheme, with the path being everything following. We also
533 // handle the case where there is no scheme.
534 if (ExtractScheme(&spec[begin], spec_len - begin, &parsed->scheme)) {
536 parsed->scheme.begin += begin;
538 if (parsed->scheme.end() != spec_len - 1) {
539 path_begin = parsed->scheme.end() + 1;
543 // No scheme found, just path.
544 parsed->scheme.reset();
697 scheme(other.scheme),
712 scheme = other.scheme;
741 return scheme.begin;
743 // There will be some characters after the scheme like "://" and we don't
746 if (scheme.is_valid())
747 cur = scheme.end() + 1; // Advance over the ':' at the end of the scheme.
810 bool ExtractScheme(const char* url, int url_len, Component* scheme) {
811 return DoExtractScheme(url, url_len, scheme);
814 bool ExtractScheme(const base::char16* url, int url_len, Component* scheme) {
815 return DoExtractScheme(url, url_len, scheme);