Index: Source/core/fetch/ResourceLoaderOptions.h |
diff --git a/Source/core/fetch/ResourceLoaderOptions.h b/Source/core/fetch/ResourceLoaderOptions.h |
index be960d3e79dc646bb404afe9645330e669f9866b..124b7d57505b1a38226be8e7211e58310585525e 100644 |
--- a/Source/core/fetch/ResourceLoaderOptions.h |
+++ b/Source/core/fetch/ResourceLoaderOptions.h |
@@ -97,6 +97,11 @@ enum MixedContentBlockingTreatment { |
TreatAsAlwaysAllowedContent |
}; |
+enum SynchronousPolicy { |
+ RequestSynchronously, |
+ RequestAsynchronously |
+}; |
+ |
struct ResourceLoaderOptions { |
ResourceLoaderOptions() |
: sendLoadCallbacks(DoNotSendCallbacks) |
@@ -110,6 +115,7 @@ struct ResourceLoaderOptions { |
, requestOriginPolicy(UseDefaultOriginRestrictionsForType) |
, requestInitiatorContext(DocumentContext) |
, mixedContentBlockingTreatment(TreatAsDefaultForType) |
+ , synchronousPolicy(RequestAsynchronously) |
{ |
} |
@@ -135,6 +141,7 @@ struct ResourceLoaderOptions { |
, requestOriginPolicy(requestOriginPolicy) |
, requestInitiatorContext(requestInitiatorContext) |
, mixedContentBlockingTreatment(TreatAsDefaultForType) |
+ , synchronousPolicy(RequestAsynchronously) |
{ |
} |
@@ -150,6 +157,7 @@ struct ResourceLoaderOptions { |
RequestOriginPolicy requestOriginPolicy; |
RequestInitiatorContext requestInitiatorContext; |
MixedContentBlockingTreatment mixedContentBlockingTreatment; |
+ SynchronousPolicy synchronousPolicy; |
}; |
} // namespace WebCore |