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

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

Issue 2612793002: Implement ContentSecurityPolicy on the browser-side. (Closed)
Patch Set: Add the TODO and bug ids that was forgotten. Created 3 years, 10 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
Index: third_party/WebKit/Source/core/frame/csp/CSPSource.h
diff --git a/third_party/WebKit/Source/core/frame/csp/CSPSource.h b/third_party/WebKit/Source/core/frame/csp/CSPSource.h
index bcf85da701a255492a04d0e1528801136c5449f2..a01b57157a0a6a12722fa0b80a03a780125317b9 100644
--- a/third_party/WebKit/Source/core/frame/csp/CSPSource.h
+++ b/third_party/WebKit/Source/core/frame/csp/CSPSource.h
@@ -9,6 +9,7 @@
#include "core/frame/csp/ContentSecurityPolicy.h"
#include "platform/heap/Handle.h"
#include "platform/network/ResourceRequest.h"
+#include "public/platform/WebContentSecurityPolicyStruct.h"
#include "wtf/Allocator.h"
#include "wtf/text/WTFString.h"
@@ -19,7 +20,7 @@ class KURL;
class CORE_EXPORT CSPSource : public GarbageCollectedFinalized<CSPSource> {
public:
- enum WildcardDisposition { HasWildcard, NoWildcard };
+ enum WildcardDisposition { NoWildcard, HasWildcard };
CSPSource(ContentSecurityPolicy*,
const String& scheme,
@@ -46,6 +47,8 @@ class CORE_EXPORT CSPSource : public GarbageCollectedFinalized<CSPSource> {
static bool firstSubsumesSecond(const HeapVector<Member<CSPSource>>&,
const HeapVector<Member<CSPSource>>&);
+ WebContentSecurityPolicySourceExpression exposeForNavigationalChecks() const;
+
DECLARE_TRACE();
private:
« no previous file with comments | « third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp ('k') | third_party/WebKit/Source/core/frame/csp/CSPSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698