| OLD | NEW |
| 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_BROWSER_RENDER_FRAME_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 namespace base { | 23 namespace base { |
| 24 class Value; | 24 class Value; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace shell { | 27 namespace shell { |
| 28 class InterfaceRegistry; | 28 class InterfaceRegistry; |
| 29 class InterfaceProvider; | 29 class InterfaceProvider; |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace content { | 32 namespace content { |
| 33 class AssociatedInterfaceProvider; |
| 34 class AssociatedInterfaceRegistry; |
| 33 class RenderProcessHost; | 35 class RenderProcessHost; |
| 34 class RenderViewHost; | 36 class RenderViewHost; |
| 35 class RenderWidgetHostView; | 37 class RenderWidgetHostView; |
| 36 class SiteInstance; | 38 class SiteInstance; |
| 37 struct FileChooserFileInfo; | 39 struct FileChooserFileInfo; |
| 38 | 40 |
| 39 // The interface provides a communication conduit with a frame in the renderer. | 41 // The interface provides a communication conduit with a frame in the renderer. |
| 40 class CONTENT_EXPORT RenderFrameHost : public IPC::Listener, | 42 class CONTENT_EXPORT RenderFrameHost : public IPC::Listener, |
| 41 public IPC::Sender { | 43 public IPC::Sender { |
| 42 public: | 44 public: |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 virtual RenderViewHost* GetRenderViewHost() = 0; | 186 virtual RenderViewHost* GetRenderViewHost() = 0; |
| 185 | 187 |
| 186 // Returns the InterfaceRegistry that this process uses to expose interfaces | 188 // Returns the InterfaceRegistry that this process uses to expose interfaces |
| 187 // to the application running in this frame. | 189 // to the application running in this frame. |
| 188 virtual shell::InterfaceRegistry* GetInterfaceRegistry() = 0; | 190 virtual shell::InterfaceRegistry* GetInterfaceRegistry() = 0; |
| 189 | 191 |
| 190 // Returns the InterfaceProvider that this process can use to bind | 192 // Returns the InterfaceProvider that this process can use to bind |
| 191 // interfaces exposed to it by the application running in this frame. | 193 // interfaces exposed to it by the application running in this frame. |
| 192 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0; | 194 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0; |
| 193 | 195 |
| 196 // Returns the AssociatedInterfaceProvider that this process can use to access |
| 197 // remote frame-specific Channel-associated interfaces for this frame. |
| 198 virtual AssociatedInterfaceProvider* GetRemoteAssociatedInterfaces() = 0; |
| 199 |
| 194 // Returns the visibility state of the frame. The different visibility states | 200 // Returns the visibility state of the frame. The different visibility states |
| 195 // of a frame are defined in Blink. | 201 // of a frame are defined in Blink. |
| 196 virtual blink::WebPageVisibilityState GetVisibilityState() = 0; | 202 virtual blink::WebPageVisibilityState GetVisibilityState() = 0; |
| 197 | 203 |
| 198 // Returns whether the RenderFrame in the renderer process has been created | 204 // Returns whether the RenderFrame in the renderer process has been created |
| 199 // and still has a connection. This is valid for all frames. | 205 // and still has a connection. This is valid for all frames. |
| 200 virtual bool IsRenderFrameLive() = 0; | 206 virtual bool IsRenderFrameLive() = 0; |
| 201 | 207 |
| 202 // Get the number of proxies to this frame, in all processes. Exposed for | 208 // Get the number of proxies to this frame, in all processes. Exposed for |
| 203 // use by resource metrics. | 209 // use by resource metrics. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 220 | 226 |
| 221 private: | 227 private: |
| 222 // This interface should only be implemented inside content. | 228 // This interface should only be implemented inside content. |
| 223 friend class RenderFrameHostImpl; | 229 friend class RenderFrameHostImpl; |
| 224 RenderFrameHost() {} | 230 RenderFrameHost() {} |
| 225 }; | 231 }; |
| 226 | 232 |
| 227 } // namespace content | 233 } // namespace content |
| 228 | 234 |
| 229 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 235 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
| OLD | NEW |