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

Unified Diff: content/common/resource_request.h

Issue 2053693002: WIP: Move 'Upgrade-Insecure-Requests' to the browser process. Base URL: https://chromium.googlesource.com/chromium/src.git@replicate
Patch Set: Rebase. :( Created 3 years, 10 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 | « content/common/resource_messages.h ('k') | net/log/net_log_event_type_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/resource_request.h
diff --git a/content/common/resource_request.h b/content/common/resource_request.h
index 278566ce853daafd36349c1fbf9f03cafc65c514..ac5802d3e688a4b1ceced9f2eed67f045436ccaf 100644
--- a/content/common/resource_request.h
+++ b/content/common/resource_request.h
@@ -20,6 +20,7 @@
#include "content/public/common/request_context_type.h"
#include "content/public/common/resource_type.h"
#include "net/base/request_priority.h"
+#include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h"
#include "third_party/WebKit/public/platform/WebMixedContentContextType.h"
#include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
#include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
@@ -195,6 +196,11 @@ struct CONTENT_EXPORT ResourceRequest {
// The response should be downloaded and stored in the network cache, but not
// sent back to the renderer.
bool download_to_network_cache_only = false;
+
+ // The insecure request policy of the context which triggered this request:
+ // https://w3c.github.io/webappsec-upgrade-insecure-requests/#insecure-requests-policy
+ blink::WebInsecureRequestPolicy insecure_request_policy =
+ blink::kLeaveInsecureRequestsAlone;
};
} // namespace content
« no previous file with comments | « content/common/resource_messages.h ('k') | net/log/net_log_event_type_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698