summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/test_tab_contents.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-18 08:17:44 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-18 08:17:44 +0000
commit0dd3a0ab424a01e887ac7f69dbbae6aaee6843c0 (patch)
treee29d015f414f9a33fff40171b743261bd9f3c82f /chrome/browser/tab_contents/test_tab_contents.h
parent9f60a236323e348ab1a0343d6acdafa99125ac3b (diff)
downloadchromium_src-0dd3a0ab424a01e887ac7f69dbbae6aaee6843c0.zip
chromium_src-0dd3a0ab424a01e887ac7f69dbbae6aaee6843c0.tar.gz
chromium_src-0dd3a0ab424a01e887ac7f69dbbae6aaee6843c0.tar.bz2
Start moving core pieces of Chrome multi-process code to src\content. I'm starting with tab_contents directory.In future changes the headers that include these files will be updated. Once all the files are moved (i.e. renderer_host, rest of browser, renderer etc), then refactoring can begin so that content\DEPS doesn't have chrome in it.
Review URL: http://codereview.chromium.org/6537015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75369 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/test_tab_contents.h')
-rw-r--r--chrome/browser/tab_contents/test_tab_contents.h73
1 files changed, 2 insertions, 71 deletions
diff --git a/chrome/browser/tab_contents/test_tab_contents.h b/chrome/browser/tab_contents/test_tab_contents.h
index 729730b..583bd81 100644
--- a/chrome/browser/tab_contents/test_tab_contents.h
+++ b/chrome/browser/tab_contents/test_tab_contents.h
@@ -6,76 +6,7 @@
#define CHROME_BROWSER_TAB_CONTENTS_TEST_TAB_CONTENTS_H_
#pragma once
-#include "chrome/browser/tab_contents/tab_contents.h"
-#include "chrome/common/notification_registrar.h"
-#include "webkit/glue/webpreferences.h"
-
-class Profile;
-class TestRenderViewHost;
-
-// Subclass TabContents to ensure it creates TestRenderViewHosts and does
-// not do anything involving views.
-class TestTabContents : public TabContents {
- public:
- // The render view host factory will be passed on to the
- TestTabContents(Profile* profile, SiteInstance* instance);
-
- TestRenderViewHost* pending_rvh() const;
-
- // State accessor.
- bool cross_navigation_pending() {
- return render_manager_.cross_navigation_pending_;
- }
-
- // Overrides TabContents::ShouldTransitionCrossSite so that we can test both
- // alternatives without using command-line switches.
- bool ShouldTransitionCrossSite() { return transition_cross_site; }
-
- // Overrides TabContents::Observe. We are listening to infobar related
- // notifications so we can call InfoBarClosed() on the infobar delegates to
- // prevent them from leaking.
- virtual void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
-
- // Promote DidNavigate to public.
- void TestDidNavigate(RenderViewHost* render_view_host,
- const ViewHostMsg_FrameNavigate_Params& params) {
- DidNavigate(render_view_host, params);
- }
-
- // Promote GetWebkitPrefs to public.
- WebPreferences TestGetWebkitPrefs() {
- return GetWebkitPrefs();
- }
-
- // Prevent interaction with views.
- virtual bool CreateRenderViewForRenderManager(
- RenderViewHost* render_view_host);
- virtual void UpdateRenderViewSizeForRenderManager() {}
-
- // Returns a clone of this TestTabContents. The returned object is also a
- // TestTabContents. The caller owns the returned object.
- virtual TabContents* Clone();
-
- // Creates a pending navigation to the given URL with the default parameters
- // and then commits the load with a page ID one larger than any seen. This
- // emulates what happens on a new navigation.
- void NavigateAndCommit(const GURL& url);
-
- // Simulates the appropriate RenderView (pending if any, current otherwise)
- // sending a navigate notification for the NavigationController pending entry.
- void CommitPendingNavigation();
-
- // Simulates the current RVH notifying that it has unloaded so that the
- // pending RVH navigation can proceed.
- // Does nothing if no cross-navigation is pending.
- void ProceedWithCrossSiteNavigation();
-
- // Set by individual tests.
- bool transition_cross_site;
-
- NotificationRegistrar registrar_;
-};
+// TODO(jam): remove this file when all files have been converted.
+#include "content/browser/tab_contents/test_tab_contents.h"
#endif // CHROME_BROWSER_TAB_CONTENTS_TEST_TAB_CONTENTS_H_