Lines Matching refs:scheme

114 void SchemeRegistry::registerURLSchemeAsLocal(const String& scheme)
116 localURLSchemes().add(scheme);
119 void SchemeRegistry::removeURLSchemeRegisteredAsLocal(const String& scheme)
121 if (scheme == "file")
123 localURLSchemes().remove(scheme);
163 bool SchemeRegistry::shouldTreatURLSchemeAsLocal(const String& scheme)
165 if (scheme.isEmpty())
167 return localURLSchemes().contains(scheme);
170 void SchemeRegistry::registerURLSchemeAsNoAccess(const String& scheme)
172 schemesWithUniqueOrigins().add(scheme);
175 bool SchemeRegistry::shouldTreatURLSchemeAsNoAccess(const String& scheme)
177 if (scheme.isEmpty())
179 return schemesWithUniqueOrigins().contains(scheme);
182 void SchemeRegistry::registerURLSchemeAsDisplayIsolated(const String& scheme)
184 displayIsolatedURLSchemes().add(scheme);
187 bool SchemeRegistry::shouldTreatURLSchemeAsDisplayIsolated(const String& scheme)
189 if (scheme.isEmpty())
191 return displayIsolatedURLSchemes().contains(scheme);
194 void SchemeRegistry::registerURLSchemeAsSecure(const String& scheme)
196 secureSchemes().add(scheme);
199 bool SchemeRegistry::shouldTreatURLSchemeAsSecure(const String& scheme)
201 if (scheme.isEmpty())
203 return secureSchemes().contains(scheme);
206 void SchemeRegistry::registerURLSchemeAsEmptyDocument(const String& scheme)
208 emptyDocumentSchemes().add(scheme);
211 bool SchemeRegistry::shouldLoadURLSchemeAsEmptyDocument(const String& scheme)
213 if (scheme.isEmpty())
215 return emptyDocumentSchemes().contains(scheme);
218 void SchemeRegistry::setDomainRelaxationForbiddenForURLScheme(bool forbidden, const String& scheme)
220 if (scheme.isEmpty())
224 schemesForbiddenFromDomainRelaxation().add(scheme);
226 schemesForbiddenFromDomainRelaxation().remove(scheme);
229 bool SchemeRegistry::isDomainRelaxationForbiddenForURLScheme(const String& scheme)
231 if (scheme.isEmpty())
233 return schemesForbiddenFromDomainRelaxation().contains(scheme);
236 bool SchemeRegistry::canDisplayOnlyIfCanRequest(const String& scheme)
238 if (scheme.isEmpty())
240 return canDisplayOnlyIfCanRequestSchemes().contains(scheme);
243 void SchemeRegistry::registerAsCanDisplayOnlyIfCanRequest(const String& scheme)
245 canDisplayOnlyIfCanRequestSchemes().add(scheme);
248 void SchemeRegistry::registerURLSchemeAsNotAllowingJavascriptURLs(const String& scheme)
250 notAllowingJavascriptURLsSchemes().add(scheme);
253 bool SchemeRegistry::shouldTreatURLSchemeAsNotAllowingJavascriptURLs(const String& scheme)
255 if (scheme.isEmpty())
257 return notAllowingJavascriptURLsSchemes().contains(scheme);
260 void SchemeRegistry::registerURLSchemeAsCORSEnabled(const String& scheme)
262 CORSEnabledSchemes().add(scheme);
265 bool SchemeRegistry::shouldTreatURLSchemeAsCORSEnabled(const String& scheme)
267 if (scheme.isEmpty())
269 return CORSEnabledSchemes().contains(scheme);
289 void SchemeRegistry::registerURLSchemeAsLegacy(const String& scheme)
291 LegacySchemes().add(scheme);
294 bool SchemeRegistry::shouldTreatURLSchemeAsLegacy(const String& scheme)
296 if (scheme.isEmpty())
298 return LegacySchemes().contains(scheme);
301 void SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(const String& scheme)
303 ContentSecurityPolicyBypassingSchemes().add(scheme);
306 void SchemeRegistry::removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(const String& scheme)
308 ContentSecurityPolicyBypassingSchemes().remove(scheme);
311 bool SchemeRegistry::schemeShouldBypassContentSecurityPolicy(const String& scheme)
313 if (scheme.isEmpty())
315 return ContentSecurityPolicyBypassingSchemes().contains(scheme);