Lines Matching defs:policies

171     // We disable 'eval()' even in the case of report-only policies, and rely on the check in the
279 bool isAllowedByAll(const CSPDirectiveListVector& policies, ContentSecurityPolicy::ReportingStatus reportingStatus)
281 for (size_t i = 0; i < policies.size(); ++i) {
282 if (!(policies[i].get()->*allowed)(reportingStatus))
289 bool isAllowedByAllWithState(const CSPDirectiveListVector& policies, ScriptState* scriptState, ContentSecurityPolicy::ReportingStatus reportingStatus)
291 for (size_t i = 0; i < policies.size(); ++i) {
292 if (!(policies[i].get()->*allowed)(scriptState, reportingStatus))
299 bool isAllowedByAllWithContext(const CSPDirectiveListVector& policies, const String& contextURL, const WTF::OrdinalNumber& contextLine, ContentSecurityPolicy::ReportingStatus reportingStatus)
301 for (size_t i = 0; i < policies.size(); ++i) {
302 if (!(policies[i].get()->*allowed)(contextURL, contextLine, reportingStatus))
309 bool isAllowedByAllWithNonce(const CSPDirectiveListVector& policies, const String& nonce)
311 for (size_t i = 0; i < policies.size(); ++i) {
312 if (!(policies[i].get()->*allowed)(nonce))
319 bool isAllowedByAllWithHash(const CSPDirectiveListVector& policies, const CSPHashValue& hashValue)
321 for (size_t i = 0; i < policies.size(); ++i) {
322 if (!(policies[i].get()->*allowed)(hashValue))
329 bool isAllowedByAllWithURL(const CSPDirectiveListVector& policies, const KURL& url, ContentSecurityPolicy::ReportingStatus reportingStatus)
334 for (size_t i = 0; i < policies.size(); ++i) {
335 if (!(policies[i].get()->*allowFromURL)(url, reportingStatus))
342 bool isAllowedByAllWithFrame(const CSPDirectiveListVector& policies, LocalFrame* frame, const KURL& url, ContentSecurityPolicy::ReportingStatus reportingStatus)
344 for (size_t i = 0; i < policies.size(); ++i) {
345 if (!(policies[i].get()->*allowed)(frame, url, reportingStatus))
352 bool checkDigest(const String& source, uint8_t hashAlgorithmsUsed, const CSPDirectiveListVector& policies)
379 if (digestSuccess && isAllowedByAllWithHash<allowed>(policies, CSPHashValue(kAlgorithmMap[i].cspHashAlgorithm, digest)))