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

Unified Diff: Source/core/frame/csp/ContentSecurityPolicy.h

Issue 348743006: Outline ContentSecurityPolicy::document() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/core/frame/csp/CSPDirectiveList.cpp ('k') | Source/core/frame/csp/ContentSecurityPolicy.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « Source/core/frame/csp/CSPDirectiveList.cpp ('k') | Source/core/frame/csp/ContentSecurityPolicy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698