Chromium Code Reviews| Index: content/public/browser/render_process_host.h |
| diff --git a/content/public/browser/render_process_host.h b/content/public/browser/render_process_host.h |
| index 81a363640f6dd6bd5a58c8239ba2c81ec0492670..ff94f90999ac5343d824df05d5a10e2af2ab2dd7 100644 |
| --- a/content/public/browser/render_process_host.h |
| +++ b/content/public/browser/render_process_host.h |
| @@ -225,9 +225,14 @@ class CONTENT_EXPORT RenderProcessHost : public IPC::Message::Sender, |
| 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. |
| + // count. This is useful for unit testing process limit behaviors and it is |
| + // used to allow command line parameter to configure the max number of |
| + // renderer processes. |
|
Charlie Reis
2012/02/03 23:05:34
We should either guarantee that it's only called a
nasko
2012/02/07 00:42:05
Done.
|
| // A value of zero means to use the default heuristic. |
| - static void SetMaxRendererProcessCountForTest(size_t count); |
| + static void SetMaxRendererProcessCount(size_t count); |
| + |
| + // Returns the current max number of renderer processes used by the browser. |
| + static size_t GetMaxRendererProcessCount(); |
|
Charlie Reis
2012/02/03 23:05:34
This isn't strictly needed here, but I know we'll
nasko
2012/02/07 00:42:05
Done.
|
| }; |
| } // namespace content. |