summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/site_instance.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-16 18:31:26 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-16 18:31:26 +0000
commit8c8657d61fb8792985888c88730b2eb2f4fc4019 (patch)
tree73f4290e22afe39a19d64a0792a5a2ff2740a32c /chrome/browser/tab_contents/site_instance.cc
parent52ef74f432e2fb08be4f7ea323244884894fc656 (diff)
downloadchromium_src-8c8657d61fb8792985888c88730b2eb2f4fc4019.zip
chromium_src-8c8657d61fb8792985888c88730b2eb2f4fc4019.tar.gz
chromium_src-8c8657d61fb8792985888c88730b2eb2f4fc4019.tar.bz2
Move functions required by the rest of the browser from RenderProcessHost to an interface and move the implementation to BrowserRenderProcessHost. This will allow me to write render view unit tests without using the actual renderer, but there are no tests yet.
Review URL: http://codereview.chromium.org/18132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8188 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/site_instance.cc')
-rw-r--r--chrome/browser/tab_contents/site_instance.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/tab_contents/site_instance.cc b/chrome/browser/tab_contents/site_instance.cc
index a303f85..71a171e 100644
--- a/chrome/browser/tab_contents/site_instance.cc
+++ b/chrome/browser/tab_contents/site_instance.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/tab_contents/site_instance.h"
+#include "chrome/browser/renderer_host/browser_render_process_host.h"
#include "net/base/registry_controlled_domain.h"
SiteInstance::~SiteInstance() {
@@ -28,7 +29,7 @@ RenderProcessHost* SiteInstance::GetProcess() {
// Otherwise (or if that fails), create a new one.
if (!process)
- process = new RenderProcessHost(browsing_instance_->profile());
+ process = new BrowserRenderProcessHost(browsing_instance_->profile());
// Update our host ID, so all pages in this SiteInstance will use
// the correct process.