Index: content/browser/frame_host/render_frame_host_impl.h |
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h |
index 2a7acd5029e5ca4fe424f488dbf928b53e7e6cdf..6885e320cd5fb09cd1a9ebfce844da40cf61b39e 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.h |
+++ b/content/browser/frame_host/render_frame_host_impl.h |
@@ -80,6 +80,7 @@ namespace content { |
class AppWebMessagePortMessageFilter; |
class AssociatedInterfaceProviderImpl; |
class CrossProcessFrameConnector; |
+class FeaturePolicy; |
class FrameTree; |
class FrameTreeNode; |
class MediaInterfaceProxy; |
@@ -589,6 +590,10 @@ class CONTENT_EXPORT RenderFrameHostImpl |
// in a non-loading state. |
void ResetLoadingState(); |
+ void SetFeaturePolicy(std::unique_ptr<FeaturePolicy> feature_policy); |
alexmos
2017/02/07 00:21:35
These will need a comment.
iclelland
2017/02/08 05:14:42
Done -- the new methods in this file have comments
|
+ |
+ FeaturePolicy* GetFeaturePolicy(); |
+ |
// Tells the renderer that this RenderFrame will soon be swapped out, and thus |
// not to create any new modal dialogs until it happens. This must be done |
// separately so that the ScopedPageLoadDeferrers of any current dialogs are |
@@ -1142,6 +1147,9 @@ class CONTENT_EXPORT RenderFrameHostImpl |
// See BindingsPolicy for details. |
int enabled_bindings_ = 0; |
+ // Tracks the feature policy which has been set on this frame. |
+ std::unique_ptr<FeaturePolicy> feature_policy_; |
+ |
// NOTE: This must be the last member. |
base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |