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; |