Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(494)

Unified Diff: Source/core/fetch/ResourceLoaderOptions.h

Issue 23437013: Consider "mixed content XHR" as mixed script instead of mixed display. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add missing test expectation file. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/fetch/ResourceLoaderOptions.h
diff --git a/Source/core/fetch/ResourceLoaderOptions.h b/Source/core/fetch/ResourceLoaderOptions.h
index 187efc3ac96c700ada8fe8b310b3e569ff39bb51..5c50363e1a25f24cbef6bda5eb54b80238919f9c 100644
--- a/Source/core/fetch/ResourceLoaderOptions.h
+++ b/Source/core/fetch/ResourceLoaderOptions.h
@@ -90,6 +90,11 @@ enum CredentialRequest {
ClientDidNotRequestCredentials
};
+enum MixedRawContentBlockingOption {
+ TreatAsPassiveContent,
+ TreatAsActiveContent
abarth-chromium 2013/08/30 06:37:08 I'd recommend making this a three-state enum. The
+};
+
struct ResourceLoaderOptions {
ResourceLoaderOptions()
: sendLoadCallbacks(DoNotSendCallbacks)
@@ -102,6 +107,7 @@ struct ResourceLoaderOptions {
, contentSecurityPolicyOption(CheckContentSecurityPolicy)
, requestOriginPolicy(UseDefaultOriginRestrictionsForType)
, requestInitiatorContext(DocumentContext)
+ , mixedRawContentBlockingOption(TreatAsPassiveContent)
{
}
@@ -126,6 +132,7 @@ struct ResourceLoaderOptions {
, contentSecurityPolicyOption(contentSecurityPolicyOption)
, requestOriginPolicy(requestOriginPolicy)
, requestInitiatorContext(requestInitiatorContext)
+ , mixedRawContentBlockingOption(TreatAsPassiveContent)
{
}
SendCallbackPolicy sendLoadCallbacks;
@@ -139,6 +146,7 @@ struct ResourceLoaderOptions {
FetchInitiatorInfo initiatorInfo;
RequestOriginPolicy requestOriginPolicy;
RequestInitiatorContext requestInitiatorContext;
+ MixedRawContentBlockingOption mixedRawContentBlockingOption;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698