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

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

Issue 2714203002: Moved all tests about bypassing CSP into ContentSecurityPolicyTest (Closed)
Patch Set: Fixed build errors. Rebase-update. Created 3 years, 9 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 | « no previous file | third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
diff --git a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
index 1004828c8aa0da2dadab14894a53ad644176cb3d..2f6dd7b782f7d8ebf41a1131332c5759f8279514 100644
--- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
+++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
@@ -26,6 +26,8 @@
#ifndef ContentSecurityPolicy_h
#define ContentSecurityPolicy_h
+#include <memory>
+#include <utility>
#include "bindings/core/v8/ScriptState.h"
#include "core/CoreExport.h"
#include "core/dom/ExecutionContext.h"
@@ -36,6 +38,7 @@
#include "platform/network/ContentSecurityPolicyParsers.h"
#include "platform/network/HTTPParsers.h"
#include "platform/network/ResourceRequest.h"
+#include "platform/weborigin/SchemeRegistry.h"
#include "platform/weborigin/SecurityViolationReportingPolicy.h"
#include "public/platform/WebInsecureRequestPolicy.h"
#include "wtf/HashSet.h"
@@ -44,9 +47,6 @@
#include "wtf/text/TextPosition.h"
#include "wtf/text/WTFString.h"
-#include <memory>
-#include <utility>
-
namespace WTF {
class OrdinalNumber;
}
@@ -366,7 +366,6 @@ class CORE_EXPORT ContentSecurityPolicy
bool urlMatchesSelf(const KURL&) const;
bool protocolMatchesSelf(const KURL&) const;
- bool selfMatchesInnerURL() const;
bool experimentalFeaturesEnabled() const;
@@ -375,6 +374,9 @@ class CORE_EXPORT ContentSecurityPolicy
CSPSource* getSelfSource() const { return m_selfSource; }
static bool shouldBypassMainWorld(const ExecutionContext*);
+ static bool shouldBypassContentSecurityPolicy(
+ const KURL&,
+ SchemeRegistry::PolicyAreas = SchemeRegistry::PolicyAreaAll);
static bool isNonceableElement(const Element*);
static const char* getNonceReplacementString() { return "[Replaced]"; }
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698