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

Unified Diff: Source/core/loader/MixedContentChecker.h

Issue 417153004: Treat reserved IP addresses as mixed content. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Layering. Created 6 years, 4 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: Source/core/loader/MixedContentChecker.h
diff --git a/Source/core/loader/MixedContentChecker.h b/Source/core/loader/MixedContentChecker.h
index 17e3b975ce2128714ef4d25f8e92aeaef4bd2cc3..d7badd919188c444a3c297e6b4950ecebf909265 100644
--- a/Source/core/loader/MixedContentChecker.h
+++ b/Source/core/loader/MixedContentChecker.h
@@ -58,8 +58,13 @@ public:
bool canSubmitToInsecureForm(SecurityOrigin*, const KURL&) const;
bool canConnectInsecureWebSocket(SecurityOrigin*, const KURL&) const;
bool canFrameInsecureContent(SecurityOrigin*, const KURL&) const;
+
+ // Returns true if |url| is insecure, while |origin|'s protocol is HTTPS.
static bool isMixedContent(SecurityOrigin*, const KURL&);
+ // Returns true if |url| is a reserved IP address, and |origin| isn't.
+ static bool isMixedRealm(SecurityOrigin*, const KURL&);
+
private:
enum MixedContentType {
Display,
« no previous file with comments | « no previous file | Source/core/loader/MixedContentChecker.cpp » ('j') | Source/core/loader/MixedContentChecker.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698