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

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

Issue 2655463006: PlzNavigate: Enforce 'frame-src' CSP on the browser. (Closed)
Patch Set: Addressed comments 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/web/WebFrameClient.h
diff --git a/third_party/WebKit/public/web/WebFrameClient.h b/third_party/WebKit/public/web/WebFrameClient.h
index f8b55747788d6a518330072cd51bff4854653ffa..05d865b88fc2bef16b606dd11bd6955ec224f2c4 100644
--- a/third_party/WebKit/public/web/WebFrameClient.h
+++ b/third_party/WebKit/public/web/WebFrameClient.h
@@ -300,6 +300,7 @@ class BLINK_EXPORT WebFrameClient {
bool isClientRedirect;
WebFormElement form;
bool isCacheDisabled;
+ bool shouldBypassMainWorldCSP;
dcheng 2017/03/16 08:34:47 I would encourage the use of an enum for this (and
arthursonzogni 2017/03/16 15:47:36 By seeing all of these booleans, I thought that I
NavigationPolicyInfo(WebURLRequest& urlRequest)
: extraData(nullptr),
@@ -309,7 +310,8 @@ class BLINK_EXPORT WebFrameClient {
replacesCurrentHistoryItem(false),
isHistoryNavigationInNewChildFrame(false),
isClientRedirect(false),
- isCacheDisabled(false) {}
+ isCacheDisabled(false),
+ shouldBypassMainWorldCSP(false) {}
};
virtual WebNavigationPolicy decidePolicyForNavigation(
« no previous file with comments | « third_party/WebKit/public/platform/WebContentSecurityPolicyStruct.h ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698