| Index: Source/core/loader/MixedContentChecker.h
|
| diff --git a/Source/core/loader/MixedContentChecker.h b/Source/core/loader/MixedContentChecker.h
|
| index e749b679e60fa262a7aa86fec1c397da4e6ec4fd..b4eb49a7585b5678ddcab791421c72a1f848fd1f 100644
|
| --- a/Source/core/loader/MixedContentChecker.h
|
| +++ b/Source/core/loader/MixedContentChecker.h
|
| @@ -45,41 +45,24 @@
|
| public:
|
| MixedContentChecker(LocalFrame*);
|
|
|
| - bool canDisplayInsecureContent(SecurityOrigin* securityOrigin, const KURL& url) const
|
| - {
|
| - return canDisplayInsecureContentInternal(securityOrigin, url, MixedContentChecker::Display);
|
| - }
|
| - bool canSubmitToInsecureForm(SecurityOrigin* securityOrigin, const KURL& url) const
|
| - {
|
| - return canDisplayInsecureContentInternal(securityOrigin, url, MixedContentChecker::Submission);
|
| - }
|
| -
|
| + bool canDisplayInsecureContent(SecurityOrigin*, const KURL&) const;
|
| bool canRunInsecureContent(SecurityOrigin* securityOrigin, const KURL& url) const
|
| {
|
| - return canRunInsecureContentInternal(securityOrigin, url, MixedContentChecker::Execution);
|
| + return canRunInsecureContentInternal(securityOrigin, url, false);
|
| }
|
| bool canConnectInsecureWebSocket(SecurityOrigin* securityOrigin, const KURL& url) const
|
| {
|
| - return canRunInsecureContentInternal(securityOrigin, url, MixedContentChecker::WebSocket);
|
| + return canRunInsecureContentInternal(securityOrigin, url, true);
|
| }
|
| static bool isMixedContent(SecurityOrigin*, const KURL&);
|
|
|
| private:
|
| - enum MixedContentType {
|
| - Display,
|
| - Execution,
|
| - WebSocket,
|
| - Submission
|
| - };
|
| -
|
| // FIXME: This should probably have a separate client from FrameLoader.
|
| FrameLoaderClient* client() const;
|
|
|
| - bool canDisplayInsecureContentInternal(SecurityOrigin*, const KURL&, const MixedContentType) const;
|
| + bool canRunInsecureContentInternal(SecurityOrigin*, const KURL&, bool isWebSocket) const;
|
|
|
| - bool canRunInsecureContentInternal(SecurityOrigin*, const KURL&, const MixedContentType) const;
|
| -
|
| - void logWarning(bool allowed, const KURL& i, const MixedContentType) const;
|
| + void logWarning(bool allowed, const String& action, const KURL&) const;
|
|
|
| LocalFrame* m_frame;
|
| };
|
|
|