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

Unified Diff: content/common/content_security_policy/content_security_policy.h

Issue 2910573002: Implement upgrade-insecure-requests in browser for frame requests (Closed)
Patch Set: rebase Created 3 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/common/content_security_policy/content_security_policy.h
diff --git a/content/common/content_security_policy/content_security_policy.h b/content/common/content_security_policy/content_security_policy.h
index d4de523703304c59763048721bc976b0d46352fc..d531b4c72adac0c615bb399622c4512ae13c11d1 100644
--- a/content/common/content_security_policy/content_security_policy.h
+++ b/content/common/content_security_policy/content_security_policy.h
@@ -45,6 +45,10 @@ struct CONTENT_EXPORT ContentSecurityPolicy {
bool is_redirect,
CSPContext* context,
const SourceLocation& source_location);
+
+ // Returns true if |policy| specifies that an insecure HTTP request should be
+ // upgraded to HTTPS.
+ static bool ShouldUpgradeInsecureRequest(const ContentSecurityPolicy& policy);
};
} // namespace content
« no previous file with comments | « content/browser/frame_host/navigation_request.cc ('k') | content/common/content_security_policy/content_security_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698