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

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

Issue 23702040: Send synchronous loads through the cache. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments Created 7 years, 3 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
« no previous file with comments | « Source/core/fetch/ResourceLoader.cpp ('k') | Source/core/inspector/InspectorFrontendHost.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/fetch/ResourceLoader.cpp ('k') | Source/core/inspector/InspectorFrontendHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698