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

Unified Diff: content/browser/frame_host/navigation_request_info.h

Issue 2053693002: WIP: Move 'Upgrade-Insecure-Requests' to the browser process. Base URL: https://chromium.googlesource.com/chromium/src.git@replicate
Patch Set: Created 4 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
Index: content/browser/frame_host/navigation_request_info.h
diff --git a/content/browser/frame_host/navigation_request_info.h b/content/browser/frame_host/navigation_request_info.h
index 92448184a8be4ca82fb0cc95e15d5d49a9a5fc29..18612d7eb379ad79998194a0a26218f832e497fa 100644
--- a/content/browser/frame_host/navigation_request_info.h
+++ b/content/browser/frame_host/navigation_request_info.h
@@ -26,6 +26,7 @@ struct CONTENT_EXPORT NavigationRequestInfo {
const BeginNavigationParams& begin_params,
const GURL& first_party_for_cookies,
const url::Origin& request_initiator,
+ bool should_upgrade_to_secure_transport,
bool is_main_frame,
bool parent_is_main_frame,
int frame_tree_node_id);
@@ -41,6 +42,11 @@ struct CONTENT_EXPORT NavigationRequestInfo {
// The origin of the context which initiated the request.
const url::Origin request_initiator;
+ // If the context which initiated the requests is set to upgrade insecure
+ // requests, then we need to pass that information on to the network stack
+ // so that redirects will be correctly handled:
+ const bool should_upgrade_to_secure_transport;
+
const bool is_main_frame;
const bool parent_is_main_frame;

Powered by Google App Engine
This is Rietveld 408576698