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

Unified Diff: content/public/browser/navigation_handle.h

Issue 2655463006: PlzNavigate: Enforce 'frame-src' CSP on the browser. (Closed)
Patch Set: Add TODO in the FrameLoader. 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/public/browser/navigation_handle.h
diff --git a/content/public/browser/navigation_handle.h b/content/public/browser/navigation_handle.h
index 0f3892c7015bb271d10eb5716dbc3c3aad61d274..841b63990c52243b583fb9df626cc0a4412b4e56 100644
--- a/content/public/browser/navigation_handle.h
+++ b/content/public/browser/navigation_handle.h
@@ -278,6 +278,11 @@ class CONTENT_EXPORT NavigationHandle {
// ResourceDispatcherHostDelegate::GetNavigationData during commit. This will
// be a clone of the NavigationData.
virtual NavigationData* GetNavigationData() = 0;
+
+ // Whether or not the navigation has been issued by a content script or an
+ // isolated world, for instance from a chrome-extension. When true, the
+ // navigation should not be blocked by the parent frame's CSP.
+ virtual bool should_bypass_main_world_csp() const = 0;
nasko 2017/02/15 21:28:44 Why is this method on the public interface? I don'
arthursonzogni 2017/02/16 17:32:41 You are right.
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698