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

Unified Diff: content/browser/frame_host/frame_tree_node.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/frame_tree_node.h
diff --git a/content/browser/frame_host/frame_tree_node.h b/content/browser/frame_host/frame_tree_node.h
index 35da0f83de68265e3f36eadbfb5f31e05ca00b5f..8b9873b98731631900a6f2a7db1a9f96e336a904 100644
--- a/content/browser/frame_host/frame_tree_node.h
+++ b/content/browser/frame_host/frame_tree_node.h
@@ -160,6 +160,10 @@ class CONTENT_EXPORT FrameTreeNode {
// Sets the current insecure request policy, and notifies proxies about the
// update.
void SetInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy);
+ bool upgrades_insecure_requests() const {
+ return replication_state_.insecure_request_policy &
+ blink::kUpgradeInsecureRequests;
+ }
// Returns the currently active sandbox flags for this frame. This includes
// flags inherited from parent frames and the currently active flags from the

Powered by Google App Engine
This is Rietveld 408576698