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

Unified Diff: third_party/WebKit/Source/core/events/SecurityPolicyViolationEvent.h

Issue 2331213002: Add `disposition` to SecurityPolicyViolationEvent (Closed)
Patch Set: Update expected results Created 4 years, 3 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/events/SecurityPolicyViolationEvent.h
diff --git a/third_party/WebKit/Source/core/events/SecurityPolicyViolationEvent.h b/third_party/WebKit/Source/core/events/SecurityPolicyViolationEvent.h
index 4524324255fad68de7cfb5995485238852609d4b..02cc1ac67a27fc9a2fd2622327fd8cd90f742ef0 100644
--- a/third_party/WebKit/Source/core/events/SecurityPolicyViolationEvent.h
+++ b/third_party/WebKit/Source/core/events/SecurityPolicyViolationEvent.h
@@ -44,6 +44,7 @@ public:
const String& violatedDirective() const { return m_violatedDirective; }
const String& effectiveDirective() const { return m_effectiveDirective; }
const String& originalPolicy() const { return m_originalPolicy; }
+ const String& disposition() const { return m_disposition; }
const String& sourceFile() const { return m_sourceFile; }
int lineNumber() const { return m_lineNumber; }
int columnNumber() const { return m_columnNumber; }
@@ -72,6 +73,8 @@ private:
m_effectiveDirective = initializer.effectiveDirective();
if (initializer.hasOriginalPolicy())
m_originalPolicy = initializer.originalPolicy();
+ if (initializer.hasDisposition())
+ m_disposition = initializer.disposition();
if (initializer.hasSourceFile())
m_sourceFile = initializer.sourceFile();
if (initializer.hasLineNumber())
@@ -88,6 +91,7 @@ private:
String m_violatedDirective;
String m_effectiveDirective;
String m_originalPolicy;
+ String m_disposition;
Mike West 2016/09/14 13:03:01 Rather than storing a new copy of a string, perhap
Sergey Shekyan 2016/09/16 05:36:44 Spent a lot of time on this today:) Please check i
String m_sourceFile;
int m_lineNumber;
int m_columnNumber;

Powered by Google App Engine
This is Rietveld 408576698