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

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

Issue 2436003002: CSP: Add 'script-sample' to violation reports. (Closed)
Patch Set: Rebase 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/events/SecurityPolicyViolationEvent.h
diff --git a/third_party/WebKit/Source/core/events/SecurityPolicyViolationEvent.h b/third_party/WebKit/Source/core/events/SecurityPolicyViolationEvent.h
index a2a08e540803088c869519a350ecdd2e29ed0262..48a7ec5ab3a75ce8fc3d1c8a5be3a404e12b8584 100644
--- a/third_party/WebKit/Source/core/events/SecurityPolicyViolationEvent.h
+++ b/third_party/WebKit/Source/core/events/SecurityPolicyViolationEvent.h
@@ -50,6 +50,7 @@ class SecurityPolicyViolationEvent final : public Event {
const String& originalPolicy() const { return m_originalPolicy; }
const String& disposition() const;
const String& sourceFile() const { return m_sourceFile; }
+ const String& sample() const { return m_sample; }
int lineNumber() const { return m_lineNumber; }
int columnNumber() const { return m_columnNumber; }
uint16_t statusCode() const { return m_statusCode; }
@@ -73,6 +74,7 @@ class SecurityPolicyViolationEvent final : public Event {
String m_originalPolicy;
ContentSecurityPolicyHeaderType m_disposition;
String m_sourceFile;
+ String m_sample;
int m_lineNumber;
int m_columnNumber;
int m_statusCode;

Powered by Google App Engine
This is Rietveld 408576698