| 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" |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 13 #include "content/public/common/console_message_level.h" | 13 #include "content/public/common/console_message_level.h" |
| 14 #include "ipc/ipc_listener.h" | 14 #include "ipc/ipc_listener.h" |
| 15 #include "ipc/ipc_sender.h" | 15 #include "ipc/ipc_sender.h" |
| 16 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 16 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
| 17 #include "ui/gfx/geometry/rect.h" | 17 #include "ui/gfx/geometry/rect.h" |
| 18 #include "ui/gfx/native_widget_types.h" | 18 #include "ui/gfx/native_widget_types.h" |
| 19 #include "url/gurl.h" | 19 #include "url/gurl.h" |
| 20 #include "url/origin.h" | 20 #include "url/origin.h" |
| 21 | 21 |
| 22 namespace base { | 22 namespace base { |
| 23 class Value; | 23 class Value; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace content { | 26 namespace content { |
| 27 class AudioOutputImpl; |
| 27 class RenderProcessHost; | 28 class RenderProcessHost; |
| 28 class RenderViewHost; | 29 class RenderViewHost; |
| 29 class RenderWidgetHostView; | 30 class RenderWidgetHostView; |
| 30 class ServiceRegistry; | 31 class ServiceRegistry; |
| 31 class SiteInstance; | 32 class SiteInstance; |
| 32 | 33 |
| 33 // The interface provides a communication conduit with a frame in the renderer. | 34 // The interface provides a communication conduit with a frame in the renderer. |
| 34 class CONTENT_EXPORT RenderFrameHost : public IPC::Listener, | 35 class CONTENT_EXPORT RenderFrameHost : public IPC::Listener, |
| 35 public IPC::Sender { | 36 public IPC::Sender { |
| 36 public: | 37 public: |
| (...skipping 16 matching lines...) Expand all Loading... |
| 53 // is present only to support Android WebView and must not be used in other | 54 // is present only to support Android WebView and must not be used in other |
| 54 // configurations. | 55 // configurations. |
| 55 static void AllowInjectingJavaScriptForAndroidWebView(); | 56 static void AllowInjectingJavaScriptForAndroidWebView(); |
| 56 #endif | 57 #endif |
| 57 | 58 |
| 58 // Returns a RenderFrameHost given its accessibility tree ID. | 59 // Returns a RenderFrameHost given its accessibility tree ID. |
| 59 static RenderFrameHost* FromAXTreeID(int ax_tree_id); | 60 static RenderFrameHost* FromAXTreeID(int ax_tree_id); |
| 60 | 61 |
| 61 ~RenderFrameHost() override {} | 62 ~RenderFrameHost() override {} |
| 62 | 63 |
| 64 virtual AudioOutputImpl* GetAudioOutputImpl() = 0; |
| 65 |
| 66 virtual void SetAudioOutputImpl(AudioOutputImpl* audio_output_impl) = 0; |
| 67 |
| 63 // Returns the route id for this frame. | 68 // Returns the route id for this frame. |
| 64 virtual int GetRoutingID() = 0; | 69 virtual int GetRoutingID() = 0; |
| 65 | 70 |
| 66 // Returns the accessibility tree ID for this RenderFrameHost. | 71 // Returns the accessibility tree ID for this RenderFrameHost. |
| 67 virtual int GetAXTreeID() = 0; | 72 virtual int GetAXTreeID() = 0; |
| 68 | 73 |
| 69 // Returns the SiteInstance grouping all RenderFrameHosts that have script | 74 // Returns the SiteInstance grouping all RenderFrameHosts that have script |
| 70 // access to this RenderFrameHost, and must therefore live in the same | 75 // access to this RenderFrameHost, and must therefore live in the same |
| 71 // process. | 76 // process. |
| 72 virtual SiteInstance* GetSiteInstance() = 0; | 77 virtual SiteInstance* GetSiteInstance() = 0; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 198 |
| 194 private: | 199 private: |
| 195 // This interface should only be implemented inside content. | 200 // This interface should only be implemented inside content. |
| 196 friend class RenderFrameHostImpl; | 201 friend class RenderFrameHostImpl; |
| 197 RenderFrameHost() {} | 202 RenderFrameHost() {} |
| 198 }; | 203 }; |
| 199 | 204 |
| 200 } // namespace content | 205 } // namespace content |
| 201 | 206 |
| 202 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 207 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
| OLD | NEW |