Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Unified Diff: content/public/browser/web_contents.h

Issue 8956050: Rename TabContents::controller() to GetController and put it into the WebContents interface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/tab_contents/test_tab_contents.cc ('k') | content/shell/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « content/browser/tab_contents/test_tab_contents.cc ('k') | content/shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698