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

Unified Diff: content/browser/renderer_host/test_render_view_host.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/renderer_host/test_render_view_host.h ('k') | content/browser/site_instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/test_render_view_host.cc
===================================================================
--- content/browser/renderer_host/test_render_view_host.cc (revision 118952)
+++ content/browser/renderer_host/test_render_view_host.cc (working copy)
@@ -6,7 +6,7 @@
#include "content/browser/browser_url_handler.h"
#include "content/browser/renderer_host/test_backing_store.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_controller_impl.h"
#include "content/browser/tab_contents/navigation_entry_impl.h"
#include "content/browser/tab_contents/test_tab_contents.h"
@@ -23,6 +23,7 @@
using content::NavigationController;
using content::NavigationEntry;
using content::RenderViewHostDelegate;
+using content::SiteInstance;
using webkit::forms::PasswordForm;
void InitNavigateParams(ViewHostMsg_FrameNavigate_Params* params,
@@ -308,7 +309,8 @@
int routing_id,
SessionStorageNamespace* session_storage) {
// See declaration of render_process_host_factory_ below.
- instance->set_render_process_host_factory(render_process_host_factory_);
+ static_cast<SiteInstanceImpl*>(instance)->
+ set_render_process_host_factory(render_process_host_factory_);
return new TestRenderViewHost(instance, delegate, routing_id);
}
@@ -366,8 +368,7 @@
browser_context_.reset(new TestBrowserContext());
// This will be deleted when the TabContents goes away.
- SiteInstance* instance =
- SiteInstance::CreateSiteInstance(browser_context_.get());
+ SiteInstance* instance = SiteInstance::Create(browser_context_.get());
return new TestTabContents(browser_context_.get(), instance);
}
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.h ('k') | content/browser/site_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698