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

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

Issue 2566583002: Change allowed bindings to be per RenderFrame instead of per RenderView. (Closed)
Patch Set: rebase 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
« no previous file with comments | « content/common/frame.mojom ('k') | content/public/browser/render_view_host.h » ('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 9c568d0c5795097f2557046ac362bc80a1b142ba..d78ba06e1c48ee5f83b9daa3e470db4e9cc443f1 100644
--- a/content/public/browser/render_frame_host.h
+++ b/content/public/browser/render_frame_host.h
@@ -222,6 +222,14 @@ class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
// Retrieves the text input info associated with the current form field.
virtual void RequestFocusedFormFieldData(FormFieldDataCallback& callback) = 0;
+ // Tell the render frame to enable a set of javascript bindings. The argument
+ // should be a combination of values from BindingsPolicy.
+ virtual void AllowBindings(int binding_flags) = 0;
+
+ // Returns a bitwise OR of bindings types that have been enabled for this
+ // RenderFrame. See BindingsPolicy for details.
+ virtual int GetEnabledBindings() const = 0;
+
private:
// This interface should only be implemented inside content.
friend class RenderFrameHostImpl;
« no previous file with comments | « content/common/frame.mojom ('k') | content/public/browser/render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698