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

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

Issue 2883213002: Add tests for FeaturePolicy integration with RenderFrameHost (Closed)
Patch Set: Add tests for FeaturePolicy integration with RenderFrameHost Created 3 years, 7 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 | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/render_frame_host.h
diff --git a/content/public/browser/render_frame_host.h b/content/public/browser/render_frame_host.h
index 5b33b551add3ebcd8d4971f046b663fa3eaf3eaf..a3d5490fd1009ce3139b47a3248c2aa4eb40e5dc 100644
--- a/content/public/browser/render_frame_host.h
+++ b/content/public/browser/render_frame_host.h
@@ -261,6 +261,9 @@ class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
virtual void DisableBeforeUnloadHangMonitorForTesting() = 0;
virtual bool IsBeforeUnloadHangMonitorDisabledForTesting() = 0;
+ // Returns true if the given Feature Policy |feature| is enabled for this
+ // RenderFrameHost and is allowed to be used by it. Use this in the browser
+ // process to determine whether access to a feature is allowed.
virtual bool IsFeatureEnabled(blink::WebFeaturePolicyFeature feature) = 0;
private:
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698