Index: Source/core/loader/ResourceLoaderOptions.h |
diff --git a/Source/core/loader/ResourceLoaderOptions.h b/Source/core/loader/ResourceLoaderOptions.h |
index ad1adaa4f8aef418552c287103119babc9c41598..88c1fc0359cdef2bae1674142450b74e0bc8cfd5 100644 |
--- a/Source/core/loader/ResourceLoaderOptions.h |
+++ b/Source/core/loader/ResourceLoaderOptions.h |
@@ -61,12 +61,28 @@ enum SecurityCheckPolicy { |
}; |
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) |
+ , credentialsRequested(ClientDidNotRequestCredentials) |
+ , crossOriginCredentialPolicy(DoNotAskClientForCrossOriginCredentials) |
+ , securityCheck(DoSecurityCheck) { } |
+ |
+ ResourceLoaderOptions( |
+ SendCallbackPolicy sendLoadCallbacks, |
+ ContentSniffingPolicy sniffContent, |
+ DataBufferingPolicy dataBufferingPolicy, |
+ StoredCredentials allowCredentials, |
+ CredentialRequest credentialsRequested, |
+ ClientCrossOriginCredentialPolicy crossOriginCredentialPolicy, |
+ SecurityCheckPolicy securityCheck) |
: sendLoadCallbacks(sendLoadCallbacks) |
, sniffContent(sniffContent) |
, dataBufferingPolicy(dataBufferingPolicy) |
, allowCredentials(allowCredentials) |
+ , credentialsRequested(credentialsRequested) |
, crossOriginCredentialPolicy(crossOriginCredentialPolicy) |
, securityCheck(securityCheck) |
{ |
@@ -75,6 +91,7 @@ struct ResourceLoaderOptions { |
ContentSniffingPolicy sniffContent; |
DataBufferingPolicy dataBufferingPolicy; |
StoredCredentials allowCredentials; // Whether HTTP credentials and cookies are sent with the request. |
+ CredentialRequest credentialsRequested; // Whether the client (e.g. XHR) wanted credentials in the first place. |
ClientCrossOriginCredentialPolicy crossOriginCredentialPolicy; // Whether we will ask the client for credentials (if we allow credentials at all). |
SecurityCheckPolicy securityCheck; |
}; |