Lines Matching refs:scheme
107 bool DoIsStandard(const CHAR* spec, const url_parse::Component& scheme) { in DoIsStandard() argument
108 if (!scheme.is_nonempty()) in DoIsStandard()
113 if (LowerCaseEqualsASCII(&spec[scheme.begin], &spec[scheme.end()], in DoIsStandard()
177 url_parse::Component scheme; in DoCanonicalize() local
178 if (!url_parse::ExtractScheme(spec, spec_len, &scheme)) in DoCanonicalize()
184 if (CompareSchemeComponent(spec, scheme, kFileScheme)) { in DoCanonicalize()
191 } else if (DoIsStandard(spec, scheme)) { in DoCanonicalize()
198 } else if (CompareSchemeComponent(spec, scheme, kMailtoScheme)) { in DoCanonicalize()
232 base_parsed.scheme.is_nonempty() && in DoResolveRelative()
233 DoIsStandard(base_spec, base_parsed.scheme); in DoResolveRelative()
248 bool file_base_scheme = base_parsed.scheme.is_nonempty() && in DoResolveRelative()
249 CompareSchemeComponent(base_spec, base_parsed.scheme, kFileScheme); in DoResolveRelative()
288 replacements.sources().scheme, in DoReplaceComponents()
289 replacements.components().scheme, in DoReplaceComponents()
294 int spec_after_colon = parsed.scheme.is_valid() ? parsed.scheme.end() + 1 in DoReplaceComponents()
331 if (CompareSchemeComponent(spec, parsed.scheme, kFileScheme)) { in DoReplaceComponents()
335 if (DoIsStandard(spec, parsed.scheme)) { in DoReplaceComponents()
339 if (CompareSchemeComponent(spec, parsed.scheme, kMailtoScheme)) { in DoReplaceComponents()
391 bool IsStandard(const char* spec, const url_parse::Component& scheme) { in IsStandard() argument
392 return DoIsStandard(spec, scheme); in IsStandard()
395 bool IsStandard(const char16* spec, const url_parse::Component& scheme) { in IsStandard() argument
396 return DoIsStandard(spec, scheme); in IsStandard()