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

Unified Diff: third_party/WebKit/public/web/WebFrameClient.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
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 009ba7f7ea06813b52eafd164babd3e317d28b9e..939af5ab97c228d982c6a55608006f9a95b1d8d8 100644
--- a/third_party/WebKit/public/web/WebFrameClient.h
+++ b/third_party/WebKit/public/web/WebFrameClient.h
@@ -50,6 +50,7 @@
#include "public/platform/BlameContext.h"
#include "public/platform/WebColor.h"
#include "public/platform/WebCommon.h"
+#include "public/platform/WebContentSecurityPolicy.h"
#include "public/platform/WebContentSecurityPolicyStruct.h"
#include "public/platform/WebEffectiveConnectionType.h"
#include "public/platform/WebFeaturePolicy.h"
@@ -302,6 +303,8 @@ class BLINK_EXPORT WebFrameClient {
WebFormElement form;
bool isCacheDisabled;
WebSourceLocation sourceLocation;
+ WebContentSecurityPolicyDisposition
+ shouldCheckMainWorldContentSecurityPolicy;
NavigationPolicyInfo(WebURLRequest& urlRequest)
: extraData(nullptr),
@@ -311,7 +314,9 @@ class BLINK_EXPORT WebFrameClient {
replacesCurrentHistoryItem(false),
isHistoryNavigationInNewChildFrame(false),
isClientRedirect(false),
- isCacheDisabled(false) {}
+ isCacheDisabled(false),
+ shouldCheckMainWorldContentSecurityPolicy(
+ WebContentSecurityPolicyDispositionCheck) {}
};
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