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

Side by Side Diff: content/common/frame.mojom

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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module content.mojom; 5 module content.mojom;
6 6
7 import "services/service_manager/public/interfaces/interface_provider.mojom"; 7 import "services/service_manager/public/interfaces/interface_provider.mojom";
8 8
9 // The name of the InterfaceProviderSpec in service manifests used by the 9 // The name of the InterfaceProviderSpec in service manifests used by the
10 // frame tree to expose frame-specific interfaces between renderer and browser. 10 // frame tree to expose frame-specific interfaces between renderer and browser.
11 const string kNavigation_FrameSpec = "navigation:frame"; 11 const string kNavigation_FrameSpec = "navigation:frame";
12 12
13 // Implemented by the frame provider (e.g. renderer processes). 13 // Implemented by the frame provider (e.g. renderer processes).
14 interface Frame { 14 interface Frame {
15 GetInterfaceProvider(service_manager.mojom.InterfaceProvider& interfaces); 15 GetInterfaceProvider(service_manager.mojom.InterfaceProvider& interfaces);
16 }; 16 };
17 17
18 // Implemented by the frame server (i.e. the browser process). 18 // Implemented by the frame server (i.e. the browser process).
19 interface FrameHost { 19 interface FrameHost {
20 GetInterfaceProvider(service_manager.mojom.InterfaceProvider& interfaces); 20 GetInterfaceProvider(service_manager.mojom.InterfaceProvider& interfaces);
21 }; 21 };
22 22
23 // Implemented by a service that provides implementations of the Frame 23 // Implemented by a service that provides implementations of the Frame
24 // interface. (e.g. renderer processes). 24 // interface. (e.g. renderer processes).
25 interface FrameFactory { 25 interface FrameFactory {
26 CreateFrame(int32 frame_routing_id, Frame& frame, FrameHost host); 26 CreateFrame(int32 frame_routing_id, Frame& frame, FrameHost host);
27 }; 27 };
28
29 interface FrameBindingsControl {
dcheng 2017/01/20 08:29:27 Nit: it might be nice to group the browser and ren
Sam McNally 2017/01/23 03:20:28 Done.
30 // Used to tell a render frame whether it should expose various bindings
31 // that allow JS content extended privileges. See BindingsPolicy for valid
32 // flag values.
33 AllowBindings(int32 enabled_bindings_flags);
34 };
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl_unittest.cc ('k') | content/public/browser/render_frame_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698