summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/site_instance.h
diff options
context:
space:
mode:
authormpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-15 20:28:09 +0000
committermpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-15 20:28:09 +0000
commit1dfa950a8dcbc268b1d036f26ef731b6b6aa702a (patch)
tree12e4bd8ef07814bc9f220651cff7e0f93e72f9be /chrome/browser/tab_contents/site_instance.h
parent4c81b03bc1e877d72b3f6b691cf0d5e86ec16557 (diff)
downloadchromium_src-1dfa950a8dcbc268b1d036f26ef731b6b6aa702a.zip
chromium_src-1dfa950a8dcbc268b1d036f26ef731b6b6aa702a.tar.gz
chromium_src-1dfa950a8dcbc268b1d036f26ef731b6b6aa702a.tar.bz2
Group renderer processes by privilige when we hit the max process count.
BUG=12128 TEST=Create a bunch of tabs (40+) and make sure New Tab pages are always grouped in a process with other chrome internal pages, extensions are always grouped together, and regular web pages are never in a process with extensions or New Tab pages. Review URL: http://codereview.chromium.org/126002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18428 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/site_instance.h')
-rw-r--r--chrome/browser/tab_contents/site_instance.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/site_instance.h b/chrome/browser/tab_contents/site_instance.h
index 5c14dcc..81c182d 100644
--- a/chrome/browser/tab_contents/site_instance.h
+++ b/chrome/browser/tab_contents/site_instance.h
@@ -138,6 +138,10 @@ class SiteInstance : public base::RefCounted<SiteInstance>,
// GetRelatedSiteInstance instead.
SiteInstance(BrowsingInstance* browsing_instance);
+ // Returns the type of renderer process this instance belongs in, for grouping
+ // purposes.
+ RenderProcessHost::Type GetRendererType();
+
private:
// NotificationObserver implementation.
void Observe(NotificationType type,