void SchemeRegistry::setDomainRelaxationForbiddenForURLScheme(bool forbidden, const String& scheme) { if (scheme.isEmpty()) return; if (forbidden) schemesForbiddenFromDomainRelaxation().add(scheme); else schemesForbiddenFromDomainRelaxation().remove(scheme); }
bool SchemeRegistry::isDomainRelaxationForbiddenForURLScheme(const String& scheme) { if (scheme.isEmpty()) return false; MutexLocker locker(mutex()); return schemesForbiddenFromDomainRelaxation().contains(scheme); }