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

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

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
« no previous file with comments | « content/browser/tab_contents/test_tab_contents.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tab_contents/test_tab_contents.cc
===================================================================
--- content/browser/tab_contents/test_tab_contents.cc (revision 118952)
+++ content/browser/tab_contents/test_tab_contents.cc (working copy)
@@ -10,7 +10,7 @@
#include "content/browser/renderer_host/mock_render_process_host.h"
#include "content/browser/renderer_host/render_view_host.h"
#include "content/browser/renderer_host/test_render_view_host.h"
-#include "content/browser/site_instance.h"
+#include "content/browser/site_instance_impl.h"
#include "content/browser/tab_contents/navigation_entry_impl.h"
#include "content/common/view_messages.h"
#include "content/public/common/page_transition_types.h"
@@ -18,6 +18,7 @@
#include "webkit/forms/password_form.h"
using content::NavigationEntry;
+using content::SiteInstance;
using content::WebContents;
TestTabContents::TestTabContents(content::BrowserContext* browser_context,
@@ -86,7 +87,7 @@
WebContents* TestTabContents::Clone() {
TabContents* tc = new TestTabContents(
GetBrowserContext(),
- SiteInstance::CreateSiteInstance(GetBrowserContext()));
+ SiteInstance::Create(GetBrowserContext()));
tc->GetControllerImpl().CopyStateFrom(controller_);
return tc;
}
@@ -148,13 +149,15 @@
int history_length,
int32 min_page_id) {
expect_set_history_length_and_prune_ = true;
- expect_set_history_length_and_prune_site_instance_ = site_instance;
+ expect_set_history_length_and_prune_site_instance_ =
+ static_cast<const SiteInstanceImpl*>(site_instance);
expect_set_history_length_and_prune_history_length_ = history_length;
expect_set_history_length_and_prune_min_page_id_ = min_page_id;
}
void TestTabContents::SetHistoryLengthAndPrune(
- const SiteInstance* site_instance, int history_length, int32 min_page_id) {
+ const SiteInstance* site_instance, int history_length,
+ int32 min_page_id) {
EXPECT_TRUE(expect_set_history_length_and_prune_);
expect_set_history_length_and_prune_ = false;
EXPECT_EQ(expect_set_history_length_and_prune_site_instance_, site_instance);
« no previous file with comments | « content/browser/tab_contents/test_tab_contents.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698