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

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

Issue 2791063002: Add Feature Policy interface to RenderFrameHost (Closed)
Patch Set: Guard against possible null pointer deref Created 3 years, 8 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.cc ('k') | no next file » | 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 7e2e5ffebd8dbea53becce46c5d3c7f9a72f914e..fee89ccb9af5fd8827dbf3c5c97fcea784213afa 100644
--- a/content/public/browser/render_frame_host.h
+++ b/content/public/browser/render_frame_host.h
@@ -20,6 +20,10 @@
#include "url/gurl.h"
#include "url/origin.h"
+namespace blink {
+enum class WebFeaturePolicyFeature;
+}
+
namespace base {
class Value;
}
@@ -247,6 +251,8 @@ class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
virtual void DisableBeforeUnloadHangMonitorForTesting() = 0;
virtual bool IsBeforeUnloadHangMonitorDisabledForTesting() = 0;
+ virtual bool IsFeatureEnabled(blink::WebFeaturePolicyFeature feature) = 0;
+
private:
// This interface should only be implemented inside content.
friend class RenderFrameHostImpl;
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698