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

Unified Diff: content/common/navigation_params.cc

Issue 2655463006: PlzNavigate: Enforce 'frame-src' CSP on the browser. (Closed)
Patch Set: Addressed comments(alexmos@ and nasko@) 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: content/common/navigation_params.cc
diff --git a/content/common/navigation_params.cc b/content/common/navigation_params.cc
index 0d64f3b8be26cc695fc3900f3cda3731641ae6b9..ce336aea9beb508d091268a7bfe418caf46112fa 100644
--- a/content/common/navigation_params.cc
+++ b/content/common/navigation_params.cc
@@ -35,7 +35,8 @@ CommonNavigationParams::CommonNavigationParams()
report_type(FrameMsg_UILoadMetricsReportType::NO_REPORT),
previews_state(PREVIEWS_UNSPECIFIED),
navigation_start(base::TimeTicks::Now()),
- method("GET") {}
+ method("GET"),
+ should_bypass_main_world_csp(false) {}
CommonNavigationParams::CommonNavigationParams(
const GURL& url,
@@ -51,7 +52,8 @@ CommonNavigationParams::CommonNavigationParams(
PreviewsState previews_state,
const base::TimeTicks& navigation_start,
std::string method,
- const scoped_refptr<ResourceRequestBodyImpl>& post_data)
+ const scoped_refptr<ResourceRequestBodyImpl>& post_data,
+ bool should_bypass_main_world_csp)
: url(url),
referrer(referrer),
transition(transition),
@@ -65,7 +67,8 @@ CommonNavigationParams::CommonNavigationParams(
previews_state(previews_state),
navigation_start(navigation_start),
method(method),
- post_data(post_data) {
+ post_data(post_data),
+ should_bypass_main_world_csp(should_bypass_main_world_csp) {
// |method != "POST"| should imply absence of |post_data|.
if (method != "POST" && post_data) {
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698