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

Unified Diff: third_party/WebKit/Source/core/loader/HttpEquiv.h

Issue 2421473004: CSP: Fire 'SecurityPolicyViolation' on the offending element. (Closed)
Patch Set: Test. Created 4 years, 2 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/loader/HttpEquiv.h
diff --git a/third_party/WebKit/Source/core/loader/HttpEquiv.h b/third_party/WebKit/Source/core/loader/HttpEquiv.h
index e90571b06e0231b89367f3950545677adec93574..ae7002c0c4b7e433fbc7217dab91790e931ab489 100644
--- a/third_party/WebKit/Source/core/loader/HttpEquiv.h
+++ b/third_party/WebKit/Source/core/loader/HttpEquiv.h
@@ -11,6 +11,7 @@
namespace blink {
class Document;
+class Element;
/**
* Handles a HTTP header equivalent set by a meta tag using
@@ -27,13 +28,18 @@ class HttpEquiv {
static void process(Document&,
const AtomicString& equiv,
const AtomicString& content,
- bool inDocumentHeadElement);
+ bool inDocumentHeadElement,
+ Element*);
private:
static void processHttpEquivDefaultStyle(Document&,
const AtomicString& content);
- static void processHttpEquivRefresh(Document&, const AtomicString& content);
- static void processHttpEquivSetCookie(Document&, const AtomicString& content);
+ static void processHttpEquivRefresh(Document&,
+ const AtomicString& content,
+ Element*);
+ static void processHttpEquivSetCookie(Document&,
+ const AtomicString& content,
+ Element*);
static void processHttpEquivXFrameOptions(Document&,
const AtomicString& content);
static void processHttpEquivContentSecurityPolicy(
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameLoader.cpp ('k') | third_party/WebKit/Source/core/loader/HttpEquiv.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698