| Index: Source/core/frame/csp/ContentSecurityPolicy.h
|
| diff --git a/Source/core/frame/csp/ContentSecurityPolicy.h b/Source/core/frame/csp/ContentSecurityPolicy.h
|
| index 5d07921bfef66a3f7f910965ce65d1d4504f2ece..c6a919c5f2096c540c6296f64425d00e93fd912d 100644
|
| --- a/Source/core/frame/csp/ContentSecurityPolicy.h
|
| +++ b/Source/core/frame/csp/ContentSecurityPolicy.h
|
| @@ -27,7 +27,6 @@
|
| #define ContentSecurityPolicy_h
|
|
|
| #include "bindings/v8/ScriptState.h"
|
| -#include "core/dom/Document.h"
|
| #include "core/dom/ExecutionContext.h"
|
| #include "platform/network/ContentSecurityPolicyParsers.h"
|
| #include "platform/network/HTTPParsers.h"
|
| @@ -50,6 +49,7 @@ namespace WebCore {
|
| class ContentSecurityPolicyResponseHeaders;
|
| class CSPDirectiveList;
|
| class DOMStringList;
|
| +class Document;
|
| class JSONObject;
|
| class KURL;
|
| class SecurityOrigin;
|
| @@ -174,11 +174,12 @@ public:
|
| static bool isDirectiveName(const String&);
|
|
|
| ExecutionContext* executionContext() const { return m_executionContext; }
|
| - Document* document() const { return m_executionContext->isDocument() ? toDocument(m_executionContext) : 0; }
|
|
|
| private:
|
| explicit ContentSecurityPolicy(ExecutionContext*);
|
|
|
| + Document* document() const;
|
| +
|
| void logToConsole(const String& message) const;
|
| void addPolicyFromHeaderValue(const String&, ContentSecurityPolicyHeaderType, ContentSecurityPolicyHeaderSource);
|
|
|
|
|