diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-21 05:09:04 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-21 05:09:04 +0000 |
commit | 69cda6547de3c2bc25e6476607e7550ba548cac9 (patch) | |
tree | e54f39838f04e0e61921cd7457711019be8b545f /content/public/browser | |
parent | c691a593ac199d774a43f239342cd85c80ca1a2a (diff) | |
download | chromium_src-69cda6547de3c2bc25e6476607e7550ba548cac9.zip chromium_src-69cda6547de3c2bc25e6476607e7550ba548cac9.tar.gz chromium_src-69cda6547de3c2bc25e6476607e7550ba548cac9.tar.bz2 |
Rename TabContents::controller() to GetController and put it into the WebContents namespace.
BUG=98716
TBR=dpranke
Review URL: http://codereview.chromium.org/8956050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115276 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public/browser')
-rw-r--r-- | content/public/browser/web_contents.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h index a8b387a..3243054 100644 --- a/content/public/browser/web_contents.h +++ b/content/public/browser/web_contents.h @@ -9,6 +9,7 @@ #include "base/string16.h" #include "content/common/content_export.h" +class NavigationController; class RenderViewHost; namespace base { @@ -17,6 +18,7 @@ class PropertyBag; namespace content { +class RenderProcessHost; // TODO(jam): of course we will have to rename TabContentsView etc to use // WebPage. class WebContentsDelegate; @@ -36,6 +38,17 @@ class WebContents { 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; }; |