summaryrefslogtreecommitdiffstats
path: root/chrome/browser/external_tab_container.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-07 16:48:07 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-07 16:48:07 +0000
commit3ff3493b8904ee4db7b41cd1676ccdcb127ecbd8 (patch)
tree6d3dcf4bf6a0f19d553a3e1a2c2eba0a81e72ce3 /chrome/browser/external_tab_container.h
parenta64691f2882ea7403dc2fcd39f026583e12429fe (diff)
downloadchromium_src-3ff3493b8904ee4db7b41cd1676ccdcb127ecbd8.zip
chromium_src-3ff3493b8904ee4db7b41cd1676ccdcb127ecbd8.tar.gz
chromium_src-3ff3493b8904ee4db7b41cd1676ccdcb127ecbd8.tar.bz2
Make the RenderViewHostFactory a global. This prevents us from having to pass
a factory pointer around all the time. Removing TestTabContents will require making the Browser object keep track of the Factory pointer as well, so I think the global is the best approach and cleans some things up. Review URL: http://codereview.chromium.org/62044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13255 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/external_tab_container.h')
-rw-r--r--chrome/browser/external_tab_container.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/external_tab_container.h b/chrome/browser/external_tab_container.h
index a72cea0..afbbfc4 100644
--- a/chrome/browser/external_tab_container.h
+++ b/chrome/browser/external_tab_container.h
@@ -21,7 +21,7 @@
#include "chrome/views/widget/widget.h"
class AutomationProvider;
-class TabContents;
+class WebContents;
class Profile;
class TabContentsContainerView;
// This class serves as the container window for an external tab.
@@ -48,7 +48,7 @@ class ExternalTabContainer : public TabContentsDelegate,
ExternalTabContainer(AutomationProvider* automation);
~ExternalTabContainer();
- TabContents* tab_contents() const {
+ WebContents* tab_contents() const {
return tab_contents_;
}
@@ -141,7 +141,7 @@ class ExternalTabContainer : public TabContentsDelegate,
void OnFinalMessage(HWND window);
protected:
- TabContents *tab_contents_;
+ WebContents* tab_contents_;
scoped_refptr<AutomationProvider> automation_;
NotificationRegistrar registrar_;
@@ -153,6 +153,7 @@ class ExternalTabContainer : public TabContentsDelegate,
unsigned int external_accel_entry_count_;
// A view to handle focus cycling
TabContentsContainerView* tab_contents_container_;
+
private:
// A failed navigation like a 404 is followed in chrome with a success
// navigation for the 404 page. We need to ignore the next navigation
@@ -163,4 +164,4 @@ class ExternalTabContainer : public TabContentsDelegate,
DISALLOW_COPY_AND_ASSIGN(ExternalTabContainer);
};
-#endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_H__
+#endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_H_