Home | History | Annotate | Download | only in src

Lines Matching refs:scheme

92     return compare_to[0] == 0;  // When component is empty, match empty scheme.
98 // Returns true if the given scheme identified by |scheme| within |spec| is one
102 bool IsStandardScheme(const CHAR* spec, const url_parse::Component& scheme) {
103 if (!scheme.is_nonempty())
108 if (LowerCaseEqualsASCII(&spec[scheme.begin], &spec[scheme.end()],
115 // Returns true if the stuff following the scheme in the given spec indicates
116 // a "standard" URL. The presence of "://" after the scheme indicates that
120 const url_parse::Component& scheme) {
121 int after_scheme = scheme.end();
131 const url_parse::Component& scheme) {
132 return HasStandardSchemeSeparator(spec, spec_len, scheme) ||
133 IsStandardScheme(spec, scheme);
143 // No scheme.
186 url_parse::Component scheme;
187 if(!url_parse::ExtractScheme(spec, spec_len, &scheme))
193 if (CompareSchemeComponent(spec, scheme, kFileScheme)) {
200 } else if (IsStandard(spec, spec_len, scheme)) {
207 } else if (CompareSchemeComponent(spec, scheme, kMailtoScheme)) {
208 // Mailto are treated like a standard url with only a scheme, path, query
241 base_parsed.scheme.is_nonempty() &&
242 IsStandard(base_spec, base_spec_len, base_parsed.scheme);
257 bool file_base_scheme = base_parsed.scheme.is_nonempty() &&
258 CompareSchemeComponent(base_spec, base_parsed.scheme, kFileScheme);
278 // Note that we dispatch to the parser according the the scheme type of
279 // the OUTPUT URL. Normally, this is the same as our scheme, but if the
280 // scheme is being overridden, we need to test that.
282 if (// Either the scheme is not replaced and the old one is a file,
284 CompareSchemeComponent(spec, parsed.scheme, kFileScheme)) ||
287 CompareSchemeComponent(replacements.sources().scheme,
288 replacements.components().scheme,
294 if (// Either the scheme is not replaced and the old one is standard,
296 IsStandard(spec, spec_len, parsed.scheme)) ||
299 IsStandardScheme(replacements.sources().scheme,
300 replacements.components().scheme))) {
306 if (// Either the scheme is not replaced and the old one is mailto,
308 CompareSchemeComponent(spec, parsed.scheme, kMailtoScheme)) ||
311 CompareSchemeComponent(replacements.sources().scheme,
312 replacements.components().scheme,
329 // Dulicate the scheme into a new buffer and add it to the list of standard
339 const url_parse::Component& scheme) {
340 return DoIsStandard(spec, spec_len, scheme);
344 const url_parse::Component& scheme) {
345 return DoIsStandard(spec, spec_len, scheme);