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

Unified Diff: content/browser/renderer_host/mock_render_process_host.cc

Issue 8033001: Delegate decision what site instances can be rendered in what process to chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 3 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/renderer_host/mock_render_process_host.cc
diff --git a/content/browser/renderer_host/mock_render_process_host.cc b/content/browser/renderer_host/mock_render_process_host.cc
index d3f182d85e40af0f1ced31b6c1f602a858207214..521ed4a790833bb7b10b7ffc32f99443d5f790c2 100644
--- a/content/browser/renderer_host/mock_render_process_host.cc
+++ b/content/browser/renderer_host/mock_render_process_host.cc
@@ -5,6 +5,8 @@
#include "content/browser/renderer_host/mock_render_process_host.h"
#include "content/browser/child_process_security_policy.h"
+#include "content/browser/content_browser_client.h"
+#include "content/common/content_client.h"
MockRenderProcessHost::MockRenderProcessHost(
content::BrowserContext* browser_context)
@@ -149,3 +151,9 @@ void MockRenderProcessHostFactory::Remove(MockRenderProcessHost* host) const {
}
}
}
+
+bool MockRenderProcessHost::IsSuitableHost(const GURL& site_url) {
+ if (!RenderProcessHost::IsSuitableHost(site_url))
jam 2011/09/26 15:46:16 since this is just a mock object, do you need all
+ return false;
+ return content::GetContentClient()->browser()->IsSuitableHost(this, site_url);
+}

Powered by Google App Engine
This is Rietveld 408576698