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

Unified Diff: third_party/WebKit/public/platform/WebContentSecurityPolicyStruct.h

Issue 2761153003: PlzNavigate & CSP. Use the SourceLocation in violation reports. (Closed)
Patch Set: Addressed comment @alexmos 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
Index: third_party/WebKit/public/platform/WebContentSecurityPolicyStruct.h
diff --git a/third_party/WebKit/public/platform/WebContentSecurityPolicyStruct.h b/third_party/WebKit/public/platform/WebContentSecurityPolicyStruct.h
index 7f04023ebb7e0d781678868d3227da7573bc0d5c..c33ab065741d41014a7d079620cd43c62a47f752 100644
--- a/third_party/WebKit/public/platform/WebContentSecurityPolicyStruct.h
+++ b/third_party/WebKit/public/platform/WebContentSecurityPolicyStruct.h
@@ -32,6 +32,7 @@
#define WebContentSecurityPolicyStruct_h
#include "public/platform/WebContentSecurityPolicy.h"
+#include "public/platform/WebSourceLocation.h"
#include "public/platform/WebString.h"
#include "public/platform/WebURL.h"
#include "public/platform/WebVector.h"
@@ -98,6 +99,9 @@ struct WebContentSecurityPolicyViolation {
// Whether or not the violation happens after a redirect.
bool afterRedirect;
+
+ // The source code location that triggered the blocked navigation.
+ WebSourceLocation sourceLocation;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | third_party/WebKit/public/platform/WebSourceLocation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698