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

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

Issue 356723003: Add 'XHR' to the Resource::Type enum, and use it for XHR requests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Preflight. Created 6 years, 6 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/ResourceFetcher.cpp ('k') | Source/core/inspector/InspectorPageAgent.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 baa01e455a4a35230f7daf1d7eeac9ca01a8da7f..9139554287eb701ee34c8e56c8a2f95673fb7436 100644
--- a/Source/core/fetch/ResourceLoaderOptions.h
+++ b/Source/core/fetch/ResourceLoaderOptions.h
@@ -70,13 +70,6 @@ enum CredentialRequest {
ClientDidNotRequestCredentials
};
-enum MixedContentBlockingTreatment {
- TreatAsDefaultForType,
- TreatAsPassiveContent,
- TreatAsActiveContent,
- TreatAsAlwaysAllowedContent
-};
-
enum SynchronousPolicy {
RequestSynchronously,
RequestAsynchronously
@@ -97,7 +90,6 @@ struct ResourceLoaderOptions {
, credentialsRequested(ClientDidNotRequestCredentials)
, contentSecurityPolicyOption(CheckContentSecurityPolicy)
, requestInitiatorContext(DocumentContext)
- , mixedContentBlockingTreatment(TreatAsDefaultForType)
, synchronousPolicy(RequestAsynchronously)
, corsEnabled(NotCORSEnabled)
{
@@ -116,7 +108,6 @@ struct ResourceLoaderOptions {
, credentialsRequested(credentialsRequested)
, contentSecurityPolicyOption(contentSecurityPolicyOption)
, requestInitiatorContext(requestInitiatorContext)
- , mixedContentBlockingTreatment(TreatAsDefaultForType)
, synchronousPolicy(RequestAsynchronously)
, corsEnabled(NotCORSEnabled)
{
@@ -134,7 +125,6 @@ struct ResourceLoaderOptions {
// FIXME: check contentSecurityPolicyOption.
// initiatorInfo is purely informational and should be benign for re-use.
// requestInitiatorContext is benign (indicates document vs. worker)
- // FIXME: check mixedContentBlockingTreatment.
// synchronousPolicy (safe to re-use an async XHR response for sync, etc.)
return corsEnabled == other.corsEnabled;
// securityOrigin has more complicated checks which callers are responsible for.
@@ -147,7 +137,6 @@ struct ResourceLoaderOptions {
ContentSecurityPolicyCheck contentSecurityPolicyOption;
FetchInitiatorInfo initiatorInfo;
RequestInitiatorContext requestInitiatorContext;
- MixedContentBlockingTreatment mixedContentBlockingTreatment;
SynchronousPolicy synchronousPolicy;
CORSEnabled corsEnabled; // If the resource is loaded out-of-origin, whether or not to use CORS.
RefPtr<SecurityOrigin> securityOrigin;
« no previous file with comments | « Source/core/fetch/ResourceFetcher.cpp ('k') | Source/core/inspector/InspectorPageAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698