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

Side by Side Diff: content/public/renderer/render_frame.h

Issue 2310563002: Adds routed interface support between RenderFrameHost and RenderFrame (Closed)
Patch Set: . Created 4 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class Origin; 43 class Origin;
44 } 44 }
45 45
46 namespace v8 { 46 namespace v8 {
47 template <typename T> class Local; 47 template <typename T> class Local;
48 class Context; 48 class Context;
49 class Isolate; 49 class Isolate;
50 } 50 }
51 51
52 namespace content { 52 namespace content {
53 class AssociatedInterfaceProvider;
54 class AssociatedInterfaceRegistry;
53 class ContextMenuClient; 55 class ContextMenuClient;
54 class PluginInstanceThrottler; 56 class PluginInstanceThrottler;
55 class RenderAccessibility; 57 class RenderAccessibility;
56 class RenderView; 58 class RenderView;
57 struct ContextMenuParams; 59 struct ContextMenuParams;
58 struct WebPluginInfo; 60 struct WebPluginInfo;
59 struct WebPreferences; 61 struct WebPreferences;
60 62
61 // This interface wraps functionality, which is specific to frames, such as 63 // This interface wraps functionality, which is specific to frames, such as
62 // navigation. It provides communication with a corresponding RenderFrameHost 64 // navigation. It provides communication with a corresponding RenderFrameHost
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 virtual bool IsHidden() = 0; 150 virtual bool IsHidden() = 0;
149 151
150 // Returns the InterfaceRegistry that this process uses to expose interfaces 152 // Returns the InterfaceRegistry that this process uses to expose interfaces
151 // to the application running in this frame. 153 // to the application running in this frame.
152 virtual shell::InterfaceRegistry* GetInterfaceRegistry() = 0; 154 virtual shell::InterfaceRegistry* GetInterfaceRegistry() = 0;
153 155
154 // Returns the InterfaceProvider that this process can use to bind 156 // Returns the InterfaceProvider that this process can use to bind
155 // interfaces exposed to it by the application running in this frame. 157 // interfaces exposed to it by the application running in this frame.
156 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0; 158 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0;
157 159
160 // Returns the AssociatedInterfaceRegistry this frame can use to expose
161 // frame-specific Channel-associated interfaces to the remote RenderFrameHost.
162 virtual AssociatedInterfaceRegistry* GetAssociatedInterfaceRegistry() = 0;
163
164 // Returns the AssociatedInterfaceProvider this frame can use to access
165 // frame-specific Channel-assocaited interfaces from the remote
166 // RenderFrameHost.
167 virtual AssociatedInterfaceProvider* GetRemoteAssociatedInterfaces() = 0;
nasko 2016/09/14 18:42:23 Nothing in this CL is using these methods outside
168
158 #if defined(ENABLE_PLUGINS) 169 #if defined(ENABLE_PLUGINS)
159 // Registers a plugin that has been marked peripheral. If the origin 170 // Registers a plugin that has been marked peripheral. If the origin
160 // whitelist is later updated and includes |content_origin|, then 171 // whitelist is later updated and includes |content_origin|, then
161 // |unthrottle_callback| will be called. 172 // |unthrottle_callback| will be called.
162 virtual void RegisterPeripheralPlugin( 173 virtual void RegisterPeripheralPlugin(
163 const url::Origin& content_origin, 174 const url::Origin& content_origin,
164 const base::Closure& unthrottle_callback) = 0; 175 const base::Closure& unthrottle_callback) = 0;
165 176
166 // Returns the peripheral content heuristic decision. 177 // Returns the peripheral content heuristic decision.
167 // 178 //
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 245
235 private: 246 private:
236 // This interface should only be implemented inside content. 247 // This interface should only be implemented inside content.
237 friend class RenderFrameImpl; 248 friend class RenderFrameImpl;
238 RenderFrame() {} 249 RenderFrame() {}
239 }; 250 };
240 251
241 } // namespace content 252 } // namespace content
242 253
243 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 254 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
OLDNEW
« no previous file with comments | « content/public/common/associated_interface_registry.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698