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

Unified Diff: content/browser/tab_contents/tab_contents.h

Issue 9018016: Revert r115276, it broke PanelDownloadTest.Download in interactive_ui_tests (Closed) Base URL: svn://svn.chromium.org/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
Index: content/browser/tab_contents/tab_contents.h
diff --git a/content/browser/tab_contents/tab_contents.h b/content/browser/tab_contents/tab_contents.h
index 82963a59d53c2bb90e5c188c89cc05933e316c01..02aa2385079a2885d474dfbea431625f19bbdb56 100644
--- a/content/browser/tab_contents/tab_contents.h
+++ b/content/browser/tab_contents/tab_contents.h
@@ -87,15 +87,31 @@ class CONTENT_EXPORT TabContents : public content::WebContents,
// Intrinsic tab state -------------------------------------------------------
+ // Gets the controller for this tab contents.
+ NavigationController& controller() { return controller_; }
+ const NavigationController& controller() const { return controller_; }
+
// Returns the user browser context associated with this TabContents (via the
// NavigationController).
content::BrowserContext* browser_context() const {
return controller_.browser_context();
}
+ // Allows overriding the type of this tab.
+ void set_view_type(content::ViewType type) { view_type_ = type; }
+
// Returns the SavePackage which manages the page saving job. May be NULL.
SavePackage* save_package() const { return save_package_.get(); }
+ // Return the currently active RenderProcessHost and RenderViewHost. Each of
+ // these may change over time.
+ content::RenderProcessHost* GetRenderProcessHost() const;
+
+
+
+
+
+
WebUI* committed_web_ui() const {
return render_manager_.web_ui();
}
@@ -453,11 +469,8 @@ class CONTENT_EXPORT TabContents : public content::WebContents,
virtual base::PropertyBag* GetPropertyBag() OVERRIDE;
virtual content::WebContentsDelegate* GetDelegate() OVERRIDE;
virtual void SetDelegate(content::WebContentsDelegate* delegate) OVERRIDE;
- virtual NavigationController& GetController() OVERRIDE;
- virtual const NavigationController& GetController() const OVERRIDE;
- // TODO(jam): browser_context getters go here
- virtual void SetViewType(content::ViewType type) OVERRIDE;
- virtual content::RenderProcessHost* GetRenderProcessHost() const OVERRIDE;
+
+
virtual RenderViewHost* GetRenderViewHost() const OVERRIDE;
// TODO(jam): webui stuff goes here
virtual RenderWidgetHostView* GetRenderWidgetHostView() const OVERRIDE;
« no previous file with comments | « content/browser/tab_contents/render_view_host_manager_unittest.cc ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698