Index: Source/core/loader/ResourceLoaderOptions.h |
diff --git a/Source/core/loader/ResourceLoaderOptions.h b/Source/core/loader/ResourceLoaderOptions.h |
index ad1adaa4f8aef418552c287103119babc9c41598..5b5a756541802b683b072a0ed47e7e873c35f6e0 100644 |
--- a/Source/core/loader/ResourceLoaderOptions.h |
+++ b/Source/core/loader/ResourceLoaderOptions.h |
@@ -61,12 +61,13 @@ 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) { } |
abarth-chromium
2013/05/09 04:22:06
Can you explode this onto a bunch of lines so that
Ken Russell (switch to Gerrit)
2013/05/09 23:50:02
Will do.
|
+ 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 +76,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. |
abarth-chromium
2013/05/09 04:22:06
It's confusing to have these two closely related f
|
ClientCrossOriginCredentialPolicy crossOriginCredentialPolicy; // Whether we will ask the client for credentials (if we allow credentials at all). |
SecurityCheckPolicy securityCheck; |
}; |