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

Unified Diff: third_party/WebKit/public/web/WebLocalFrame.h

Issue 2655463006: PlzNavigate: Enforce 'frame-src' CSP on the browser. (Closed)
Patch Set: Rebase. 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
« no previous file with comments | « third_party/WebKit/public/web/WebFrameClient.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebLocalFrame.h
diff --git a/third_party/WebKit/public/web/WebLocalFrame.h b/third_party/WebKit/public/web/WebLocalFrame.h
index 23bd2401edbd05c5f0ee3e14304287579ce5add6..b08829ac935d9dbe76688588fff727810679bf75 100644
--- a/third_party/WebKit/public/web/WebLocalFrame.h
+++ b/third_party/WebKit/public/web/WebLocalFrame.h
@@ -37,6 +37,7 @@ enum class WebCachePolicy;
enum class WebSandboxFlags;
enum class WebTreeScopeType;
struct WebConsoleMessage;
+struct WebContentSecurityPolicyViolation;
struct WebFindOptions;
struct WebFloatRect;
struct WebPrintPresetOptions;
@@ -154,6 +155,11 @@ class WebLocalFrame : public WebFrame {
// and stop this frame loading.
virtual bool maybeRenderFallbackContent(const WebURLError&) const = 0;
+ // Called when a navigation is blocked because a Content Security Policy (CSP)
+ // is infringed.
+ virtual void reportContentSecurityPolicyViolation(
+ const blink::WebContentSecurityPolicyViolation&) = 0;
+
// Navigation State -------------------------------------------------------
// Returns true if the current frame's load event has not completed.
« no previous file with comments | « third_party/WebKit/public/web/WebFrameClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698