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

Unified Diff: content/browser/renderer_host/render_process_host.h

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/render_process_host.h
diff --git a/content/browser/renderer_host/render_process_host.h b/content/browser/renderer_host/render_process_host.h
index 44d5dc84ec3756573246f2ce512e1be370fc5be5..8dcefdf23b0e53eadd8403179589df882f2d9c9e 100644
--- a/content/browser/renderer_host/render_process_host.h
+++ b/content/browser/renderer_host/render_process_host.h
@@ -32,6 +32,8 @@ namespace net {
class URLRequestContextGetter;
}
+class GURL;
+
// Virtual interface that represents the browser side of the browser <->
// renderer communication channel. There will generally be one
// RenderProcessHost per renderer process.
@@ -44,16 +46,6 @@ class CONTENT_EXPORT RenderProcessHost : public IPC::Channel::Sender,
public:
typedef IDMap<RenderProcessHost>::iterator iterator;
- // We classify renderers according to their highest privilege, and try
- // to group pages into renderers with similar privileges.
- // Note: it may be possible for a renderer to have multiple privileges,
- // in which case we call it an "extension" renderer.
- enum Type {
- TYPE_NORMAL, // Normal renderer, no extra privileges.
- TYPE_WEBUI, // Renderer with WebUI privileges, like New Tab.
- TYPE_EXTENSION, // Renderer with extension privileges.
- };
-
// Details for RENDERER_PROCESS_CLOSED notifications.
struct RendererClosedDetails {
RendererClosedDetails(base::TerminationStatus status,
@@ -274,11 +266,12 @@ class CONTENT_EXPORT RenderProcessHost : public IPC::Channel::Sender,
// Get an existing RenderProcessHost associated with the given browser
// context, if possible. The renderer process is chosen randomly from
- // suitable renderers that share the same context and type.
+ // suitable renderers that share the same context and type (determined by the
+ // site url).
// Returns NULL if no suitable renderer process is available, in which case
// the caller is free to create a new renderer.
static RenderProcessHost* GetExistingProcessHost(
- content::BrowserContext* browser_context, Type type);
+ content::BrowserContext* browser_context, const GURL& site_url);
// Overrides the default heuristic for limiting the max renderer process
// count. This is useful for unit testing process limit behaviors.
« no previous file with comments | « content/browser/mock_content_browser_client.cc ('k') | content/browser/renderer_host/render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698