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

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

Issue 537983002: Mixed Content: introduce WebURLRequest::RequestContext checks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 years, 3 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..ab84b1737aedba561c1e7659829eb44b731cfa43 100644
--- a/Source/core/loader/MixedContentChecker.h
+++ b/Source/core/loader/MixedContentChecker.h
@@ -39,12 +39,23 @@ class LocalFrame;
class FrameLoaderClient;
class KURL;
class SecurityOrigin;
+class ResourceRequest;
class MixedContentChecker {
WTF_MAKE_NONCOPYABLE(MixedContentChecker);
public:
+ enum ContextType {
+ Blockable,
jochen (gone - plz use gerrit) 2014/09/05 08:26:14 why is this public? what about ContextTypeBlockab
+ OptionallyBlockable,
+ ShouldBeBlockable,
+ BlockableUnlessLax
+ };
+
MixedContentChecker(LocalFrame*);
jochen (gone - plz use gerrit) 2014/09/05 08:26:14 explicit?
+ static bool shouldBlockFetch(LocalFrame*, const ResourceRequest&, const KURL&);
+ static bool shouldBlockSubresourceFetch(LocalFrame*, const ResourceRequest&, const KURL&);
+
bool canDisplayInsecureContent(SecurityOrigin* securityOrigin, const KURL& url) const
{
return canDisplayInsecureContentInternal(securityOrigin, url, MixedContentChecker::Display);

Powered by Google App Engine
This is Rietveld 408576698