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

Unified Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2566583002: Change allowed bindings to be per RenderFrame instead of per RenderView. (Closed)
Patch Set: Created 3 years, 11 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/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 a8e1bde48bfcda14807174abf43c96c30e7a7399..d735e76eea4da5032f6276ce8fe86d614a639292 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -175,6 +175,8 @@ class CONTENT_EXPORT RenderFrameHostImpl
const TextSurroundingSelectionCallback& callback,
int max_length) override;
void RequestFocusedFormFieldData(FormFieldDataCallback& callback) override;
+ void AllowBindings(int binding_flags) override;
+ int GetEnabledBindings() const override;
// mojom::FrameHost
void GetInterfaceProvider(
@@ -326,11 +328,6 @@ class CONTENT_EXPORT RenderFrameHostImpl
render_frame_proxy_host_ = proxy;
}
- // Returns a bitwise OR of bindings types that have been enabled for this
- // RenderFrameHostImpl's RenderView. See BindingsPolicy for details.
- // TODO(creis): Make bindings frame-specific, to support cases like <webview>.
- int GetEnabledBindings();
-
// The unique ID of the latest NavigationEntry that this RenderFrameHost is
// showing. This may change even when this frame hasn't committed a page,
// such as for a new subframe navigation in a different frame.
@@ -1100,6 +1097,7 @@ class CONTENT_EXPORT RenderFrameHostImpl
mojo::Binding<mojom::FrameHost> frame_host_binding_;
mojom::FramePtr frame_;
+ mojom::FrameBindingsControlAssociatedPtr frame_bindings_control_;
// If this is true then this object was created in response to a renderer
// initiated request. Init() will be called, and until then navigation
@@ -1127,6 +1125,10 @@ class CONTENT_EXPORT RenderFrameHostImpl
std::unique_ptr<AssociatedInterfaceProviderImpl>
remote_associated_interfaces_;
+ // A bitwise OR of bindings types that have been enabled for this RenderFrame.
+ // See BindingsPolicy for details.
+ int enabled_bindings_ = 0;
+
// NOTE: This must be the last member.
base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698