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

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

Issue 9146028: Define the public interface for content browser SiteInstance. This interface is implemented by th... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 months 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/test_tab_contents.h
===================================================================
--- content/browser/tab_contents/test_tab_contents.h (revision 118952)
+++ content/browser/tab_contents/test_tab_contents.h (working copy)
@@ -10,6 +10,7 @@
#include "content/public/common/page_transition_types.h"
#include "webkit/glue/webpreferences.h"
+class SiteInstanceImpl;
class TestRenderViewHost;
// Subclass TabContents to ensure it creates TestRenderViewHosts and does
@@ -17,7 +18,7 @@
class TestTabContents : public TabContents {
public:
TestTabContents(content::BrowserContext* browser_context,
- SiteInstance* instance);
+ content::SiteInstance* instance);
virtual ~TestTabContents();
TestRenderViewHost* pending_rvh() const;
@@ -81,22 +82,24 @@
// Establish expected arguments for |SetHistoryLengthAndPrune()|. When
// |SetHistoryLengthAndPrune()| is called, the arguments are compared
// with the expected arguments specified here.
- void ExpectSetHistoryLengthAndPrune(const SiteInstance* site_instance,
- int history_length,
- int32 min_page_id);
+ void ExpectSetHistoryLengthAndPrune(
+ const content::SiteInstance* site_instance,
+ int history_length,
+ int32 min_page_id);
// Compares the arguments passed in with the expected arguments passed in
// to |ExpectSetHistoryLengthAndPrune()|.
- virtual void SetHistoryLengthAndPrune(const SiteInstance* site_instance,
- int history_length,
- int32 min_page_id) OVERRIDE;
+ virtual void SetHistoryLengthAndPrune(
+ const content::SiteInstance* site_instance,
+ int history_length,
+ int32 min_page_id) OVERRIDE;
private:
content::RenderViewHostDelegate::View* delegate_view_override_;
// Expectations for arguments of |SetHistoryLengthAndPrune()|.
bool expect_set_history_length_and_prune_;
- scoped_refptr<const SiteInstance>
+ scoped_refptr<const SiteInstanceImpl>
expect_set_history_length_and_prune_site_instance_;
int expect_set_history_length_and_prune_history_length_;
int32 expect_set_history_length_and_prune_min_page_id_;
« no previous file with comments | « content/browser/tab_contents/tab_contents_unittest.cc ('k') | content/browser/tab_contents/test_tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698