Home | History | Annotate | Download | only in page

Lines Matching refs:scheme

155 void SecurityOrigin::setDomainRelaxationForbiddenForURLScheme(bool forbidden, const String& scheme)
157 if (scheme.isEmpty())
161 schemesForbiddenFromDomainRelaxation().add(scheme);
163 schemesForbiddenFromDomainRelaxation().remove(scheme);
166 bool SecurityOrigin::isDomainRelaxationForbiddenForURLScheme(const String& scheme)
168 if (scheme.isEmpty())
171 return schemesForbiddenFromDomainRelaxation().contains(scheme);
185 // that the scheme, host, and port of the URLs match.
189 // that the scheme of the URLs match.
406 void SecurityOrigin::registerURLSchemeAsLocal(const String& scheme)
408 localSchemes().add(scheme);
411 void SecurityOrigin::removeURLSchemeRegisteredAsLocal(const String& scheme)
413 if (scheme == "file")
416 if (scheme == "applewebdata")
419 localSchemes().remove(scheme);
443 String scheme = url.left(loc);
444 return localSchemes().contains(scheme);
447 bool SecurityOrigin::shouldTreatURLSchemeAsLocal(const String& scheme)
451 if (scheme.length() == 4) {
452 const UChar* s = scheme.characters();
459 if (scheme.isEmpty())
462 return localSchemes().contains(scheme);
465 void SecurityOrigin::registerURLSchemeAsNoAccess(const String& scheme)
467 schemesWithUniqueOrigins().add(scheme);
470 bool SecurityOrigin::shouldTreatURLSchemeAsNoAccess(const String& scheme)
472 return schemesWithUniqueOrigins().contains(scheme);