Chromium Code Reviews| 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); |