summaryrefslogtreecommitdiffstats
path: root/content/browser/site_instance_impl.cc
diff options
context:
space:
mode:
authorcreis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-14 03:38:56 +0000
committercreis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-14 03:38:56 +0000
commit1ae93fb12b16a60476056bf70dd773b987f0913a (patch)
tree1833eec9f59280ca597130789c457096b00fa4cb /content/browser/site_instance_impl.cc
parentf4535eb17c56aa3a07e2d5a65bab501e2e22bd0c (diff)
downloadchromium_src-1ae93fb12b16a60476056bf70dd773b987f0913a.zip
chromium_src-1ae93fb12b16a60476056bf70dd773b987f0913a.tar.gz
chromium_src-1ae93fb12b16a60476056bf70dd773b987f0913a.tar.bz2
Add UMA stats for predicted process counts with out-of-process iframes.
Requires adding the committed URL to each FrameTreeNode and exposing the ShouldUseProcessPerSite function outside content. BUG=248299 Review URL: https://chromiumcodereview.appspot.com/16599016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206286 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/site_instance_impl.cc')
-rw-r--r--content/browser/site_instance_impl.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/content/browser/site_instance_impl.cc b/content/browser/site_instance_impl.cc
index 95015b0..0edd85b 100644
--- a/content/browser/site_instance_impl.cc
+++ b/content/browser/site_instance_impl.cc
@@ -74,7 +74,7 @@ bool SiteInstanceImpl::HasProcess() const {
BrowserContext* browser_context =
browsing_instance_->browser_context();
if (has_site_ &&
- RenderProcessHostImpl::ShouldUseProcessPerSite(browser_context, site_) &&
+ RenderProcessHost::ShouldUseProcessPerSite(browser_context, site_) &&
RenderProcessHostImpl::GetProcessHostForSite(browser_context, site_)) {
return true;
}
@@ -97,7 +97,7 @@ RenderProcessHost* SiteInstanceImpl::GetProcess() {
// If we should use process-per-site mode (either in general or for the
// given site), then look for an existing RenderProcessHost for the site.
bool use_process_per_site = has_site_ &&
- RenderProcessHostImpl::ShouldUseProcessPerSite(browser_context, site_);
+ RenderProcessHost::ShouldUseProcessPerSite(browser_context, site_);
if (use_process_per_site) {
process_ = RenderProcessHostImpl::GetProcessHostForSite(browser_context,
site_);
@@ -171,8 +171,7 @@ void SiteInstanceImpl::SetSite(const GURL& url) {
LockToOrigin();
// Ensure the process is registered for this site if necessary.
- if (RenderProcessHostImpl::ShouldUseProcessPerSite(browser_context,
- site_)) {
+ if (RenderProcessHost::ShouldUseProcessPerSite(browser_context, site_)) {
RenderProcessHostImpl::RegisterProcessHostForSite(
browser_context, process_, site_);
}