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

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

Issue 9328011: Adding a command line flag to specify renderer process limit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed feedback by creis. Created 8 years, 10 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/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..6047fbcd8a586719f344be4d5c62f4f737e93937 100644
--- a/content/public/browser/render_process_host.h
+++ b/content/public/browser/render_process_host.h
@@ -225,9 +225,20 @@ 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. It is
+ // also used to allow command line parameter to configure the max number of
Charlie Reis 2012/02/07 17:36:36 Nit: "...allow a command..."
nasko 2012/02/07 19:01:22 Done.
+ // renderer processes and should only be called once during startup.
// 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 content
+ // module.
+ static size_t GetMaxRendererProcessCount();
+
+ private:
+ // Stores the maximum number of renderer processes the content module can
+ // create.
+ static size_t max_renderer_count_override_;
};
} // namespace content.

Powered by Google App Engine
This is Rietveld 408576698