From 08c8ec7e386525210a0ff931e8a3e8e9678db398 Mon Sep 17 00:00:00 2001 From: "erikkay@chromium.org" Date: Sun, 11 Jul 2010 17:14:48 +0000 Subject: Add unit test and supporting code to test process overflow case. This test is disabled for now since we don't have a fix yet. The point of checkin in this CL is to make it easier for us to test alternate approaches to fixing. BUG=43448 TEST=RenderProcessHostTest.ProcessOverflow Review URL: http://codereview.chromium.org/2928004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52059 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/renderer_host/render_process_host.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chrome/browser/renderer_host/render_process_host.h') diff --git a/chrome/browser/renderer_host/render_process_host.h b/chrome/browser/renderer_host/render_process_host.h index 1ceeb42..ed8473b 100644 --- a/chrome/browser/renderer_host/render_process_host.h +++ b/chrome/browser/renderer_host/render_process_host.h @@ -257,6 +257,11 @@ class RenderProcessHost : public IPC::Channel::Sender, // the caller is free to create a new renderer. static RenderProcessHost* GetExistingProcessHost(Profile* profile, Type type); + // Overrides the default heuristic for limiting the max renderer process + // count. This is useful for unit testing process limit behaviors. + // A value of zero means to use the default heuristic. + static void SetMaxRendererProcessCount(size_t count); + protected: // A proxy for our IPC::Channel that lives on the IO thread (see // browser_process.h) -- cgit v1.1