Index: content/browser/renderer_host/render_view_host_delegate.h |
diff --git a/content/browser/renderer_host/render_view_host_delegate.h b/content/browser/renderer_host/render_view_host_delegate.h |
index 997452aeb5447c915c3e7eed57d401492a39223c..28d34b21d0d37a8f8ba41282aba2de054c09f1a7 100644 |
--- a/content/browser/renderer_host/render_view_host_delegate.h |
+++ b/content/browser/renderer_host/render_view_host_delegate.h |
@@ -46,6 +46,7 @@ class Size; |
namespace content { |
class BrowserContext; |
+class FrameTree; |
class PageState; |
class RenderViewHost; |
class RenderViewHostDelegateView; |
@@ -431,6 +432,13 @@ class CONTENT_EXPORT RenderViewHostDelegate { |
virtual SessionStorageNamespace* GetSessionStorageNamespace( |
SiteInstance* instance); |
+ // Returns the FrameTree the render view should use. Guaranteed to be constant |
+ // for the lifetime of the render view. |
+ // |
+ // TODO(ajwong): Remove once the main frame RenderFrameHost is no longer |
+ // created by the RenderViewHost. |
+ virtual FrameTree* GetFrameTree(); |
+ |
protected: |
virtual ~RenderViewHostDelegate() {} |
}; |