| 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_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 16 matching lines...) Expand all Loading... |
| 27 class WebURLRequest; | 27 class WebURLRequest; |
| 28 class WebURLResponse; | 28 class WebURLResponse; |
| 29 struct WebPluginParams; | 29 struct WebPluginParams; |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace gfx { | 32 namespace gfx { |
| 33 class Range; | 33 class Range; |
| 34 class Size; | 34 class Size; |
| 35 } | 35 } |
| 36 | 36 |
| 37 namespace shell { | 37 namespace service_manager { |
| 38 class InterfaceRegistry; | 38 class InterfaceRegistry; |
| 39 class InterfaceProvider; | 39 class InterfaceProvider; |
| 40 } | 40 } |
| 41 | 41 |
| 42 namespace url { | 42 namespace url { |
| 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; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 virtual void ExecuteJavaScript(const base::string16& javascript) = 0; | 144 virtual void ExecuteJavaScript(const base::string16& javascript) = 0; |
| 145 | 145 |
| 146 // Returns true if this is the main (top-level) frame. | 146 // Returns true if this is the main (top-level) frame. |
| 147 virtual bool IsMainFrame() = 0; | 147 virtual bool IsMainFrame() = 0; |
| 148 | 148 |
| 149 // Return true if this frame is hidden. | 149 // Return true if this frame is hidden. |
| 150 virtual bool IsHidden() = 0; | 150 virtual bool IsHidden() = 0; |
| 151 | 151 |
| 152 // Returns the InterfaceRegistry that this process uses to expose interfaces | 152 // Returns the InterfaceRegistry that this process uses to expose interfaces |
| 153 // to the application running in this frame. | 153 // to the application running in this frame. |
| 154 virtual shell::InterfaceRegistry* GetInterfaceRegistry() = 0; | 154 virtual service_manager::InterfaceRegistry* GetInterfaceRegistry() = 0; |
| 155 | 155 |
| 156 // Returns the InterfaceProvider that this process can use to bind | 156 // Returns the InterfaceProvider that this process can use to bind |
| 157 // interfaces exposed to it by the application running in this frame. | 157 // interfaces exposed to it by the application running in this frame. |
| 158 virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0; | 158 virtual service_manager::InterfaceProvider* GetRemoteInterfaces() = 0; |
| 159 | 159 |
| 160 // Returns the AssociatedInterfaceRegistry this frame can use to expose | 160 // Returns the AssociatedInterfaceRegistry this frame can use to expose |
| 161 // frame-specific Channel-associated interfaces to the remote RenderFrameHost. | 161 // frame-specific Channel-associated interfaces to the remote RenderFrameHost. |
| 162 virtual AssociatedInterfaceRegistry* GetAssociatedInterfaceRegistry() = 0; | 162 virtual AssociatedInterfaceRegistry* GetAssociatedInterfaceRegistry() = 0; |
| 163 | 163 |
| 164 // Returns the AssociatedInterfaceProvider this frame can use to access | 164 // Returns the AssociatedInterfaceProvider this frame can use to access |
| 165 // frame-specific Channel-assocaited interfaces from the remote | 165 // frame-specific Channel-assocaited interfaces from the remote |
| 166 // RenderFrameHost. | 166 // RenderFrameHost. |
| 167 virtual AssociatedInterfaceProvider* GetRemoteAssociatedInterfaces() = 0; | 167 virtual AssociatedInterfaceProvider* GetRemoteAssociatedInterfaces() = 0; |
| 168 | 168 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 | 245 |
| 246 private: | 246 private: |
| 247 // This interface should only be implemented inside content. | 247 // This interface should only be implemented inside content. |
| 248 friend class RenderFrameImpl; | 248 friend class RenderFrameImpl; |
| 249 RenderFrame() {} | 249 RenderFrame() {} |
| 250 }; | 250 }; |
| 251 | 251 |
| 252 } // namespace content | 252 } // namespace content |
| 253 | 253 |
| 254 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 254 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
| OLD | NEW |