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

Unified Diff: public/web/WebSecurityPolicy.h

Issue 1049923002: Export shouldTreatURLSchemeAsSecure. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix comment nits. Created 5 years, 9 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 | « Source/web/WebSecurityPolicy.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebSecurityPolicy.h
diff --git a/public/web/WebSecurityPolicy.h b/public/web/WebSecurityPolicy.h
index a21f36c23a209083c7adcf24a56a9a35e14d52d4..f22998cce4e9a0300d8c1d03a7c723c2f7366c23 100644
--- a/public/web/WebSecurityPolicy.h
+++ b/public/web/WebSecurityPolicy.h
@@ -61,10 +61,14 @@ public:
// schemes are not registered as "secure" are embedded.
BLINK_EXPORT static void registerURLSchemeAsRestrictingMixedContent(const WebString&);
- // Registers a URL scheme to not generate mixed content warnings when
- // included by page whose scheme is registed as restricting mixed content.
+ // Subresources transported by secure schemes do not trigger mixed content
+ // warnings. For example, https and data are secure schemes because they
+ // cannot be corrupted by active network attackers.
BLINK_EXPORT static void registerURLSchemeAsSecure(const WebString&);
+ // Returns true if the scheme has been registered as a secure scheme.
+ BLINK_EXPORT static bool shouldTreatURLSchemeAsSecure(const WebString&);
+
// Registers a non-HTTP URL scheme which can be sent CORS requests.
BLINK_EXPORT static void registerURLSchemeAsCORSEnabled(const WebString&);
« no previous file with comments | « Source/web/WebSecurityPolicy.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698