Index: Source/core/loader/ResourceLoaderOptions.h |
diff --git a/Source/core/loader/ResourceLoaderOptions.h b/Source/core/loader/ResourceLoaderOptions.h |
index ad1adaa4f8aef418552c287103119babc9c41598..a0cf4ec36bc6d1d1a6d82cf37ce13130e0021674 100644 |
--- a/Source/core/loader/ResourceLoaderOptions.h |
+++ b/Source/core/loader/ResourceLoaderOptions.h |
@@ -60,15 +60,21 @@ enum SecurityCheckPolicy { |
DoSecurityCheck |
}; |
+enum ContentSecurityPolicyNonceCheck { |
+ NonceCheckValid, |
+ NonceCheckNotValid |
abarth-chromium
2013/05/16 00:59:27
Does this need to be specific to nonces? Perhaps
jww
2013/05/16 20:59:00
Done.
|
+}; |
+ |
struct ResourceLoaderOptions { |
- ResourceLoaderOptions() : sendLoadCallbacks(DoNotSendCallbacks), sniffContent(DoNotSniffContent), dataBufferingPolicy(BufferData), allowCredentials(DoNotAllowStoredCredentials), crossOriginCredentialPolicy(DoNotAskClientForCrossOriginCredentials), securityCheck(DoSecurityCheck) { } |
- ResourceLoaderOptions(SendCallbackPolicy sendLoadCallbacks, ContentSniffingPolicy sniffContent, DataBufferingPolicy dataBufferingPolicy, StoredCredentials allowCredentials, ClientCrossOriginCredentialPolicy crossOriginCredentialPolicy, SecurityCheckPolicy securityCheck) |
+ ResourceLoaderOptions() : sendLoadCallbacks(DoNotSendCallbacks), sniffContent(DoNotSniffContent), dataBufferingPolicy(BufferData), allowCredentials(DoNotAllowStoredCredentials), crossOriginCredentialPolicy(DoNotAskClientForCrossOriginCredentials), securityCheck(DoSecurityCheck), cspNonce(NonceCheckNotValid) { } |
+ ResourceLoaderOptions(SendCallbackPolicy sendLoadCallbacks, ContentSniffingPolicy sniffContent, DataBufferingPolicy dataBufferingPolicy, StoredCredentials allowCredentials, ClientCrossOriginCredentialPolicy crossOriginCredentialPolicy, SecurityCheckPolicy securityCheck, ContentSecurityPolicyNonceCheck cspNonce) |
: sendLoadCallbacks(sendLoadCallbacks) |
, sniffContent(sniffContent) |
, dataBufferingPolicy(dataBufferingPolicy) |
, allowCredentials(allowCredentials) |
, crossOriginCredentialPolicy(crossOriginCredentialPolicy) |
, securityCheck(securityCheck) |
+ , cspNonce(cspNonce) |
{ |
} |
SendCallbackPolicy sendLoadCallbacks; |
@@ -77,6 +83,7 @@ struct ResourceLoaderOptions { |
StoredCredentials allowCredentials; // Whether HTTP credentials and cookies are sent with the request. |
ClientCrossOriginCredentialPolicy crossOriginCredentialPolicy; // Whether we will ask the client for credentials (if we allow credentials at all). |
SecurityCheckPolicy securityCheck; |
+ ContentSecurityPolicyNonceCheck cspNonce; |
}; |
} // namespace WebCore |