Index: content/public/browser/web_contents.h |
=================================================================== |
--- content/public/browser/web_contents.h (revision 115228) |
+++ content/public/browser/web_contents.h (working copy) |
@@ -9,6 +9,7 @@ |
#include "base/string16.h" |
#include "content/common/content_export.h" |
+class NavigationController; |
class RenderViewHost; |
namespace base { |
@@ -17,6 +18,7 @@ |
namespace content { |
+class RenderProcessHost; |
// TODO(jam): of course we will have to rename TabContentsView etc to use |
// WebPage. |
class WebContentsDelegate; |
@@ -36,6 +38,17 @@ |
virtual WebContentsDelegate* GetDelegate() = 0; |
virtual void SetDelegate(WebContentsDelegate* delegate) = 0; |
+ // Gets the controller for this tab contents. |
+ virtual NavigationController& GetController() = 0; |
+ virtual const NavigationController& GetController() const = 0; |
+ |
+ // Allows overriding the type of this tab. |
+ virtual void SetViewType(content::ViewType type) = 0; |
+ |
+ // Return the currently active RenderProcessHost and RenderViewHost. Each of |
+ // these may change over time. |
+ virtual RenderProcessHost* GetRenderProcessHost() const = 0; |
+ |
// Gets the current RenderViewHost for this tab. |
virtual RenderViewHost* GetRenderViewHost() const = 0; |
}; |