OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/id_map.h" | 9 #include "base/id_map.h" |
10 #include "base/process/kill.h" | 10 #include "base/process/kill.h" |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 static RenderProcessHost* GetExistingProcessHost( | 279 static RenderProcessHost* GetExistingProcessHost( |
280 content::BrowserContext* browser_context, const GURL& site_url); | 280 content::BrowserContext* browser_context, const GURL& site_url); |
281 | 281 |
282 // Overrides the default heuristic for limiting the max renderer process | 282 // Overrides the default heuristic for limiting the max renderer process |
283 // count. This is useful for unit testing process limit behaviors. It is | 283 // count. This is useful for unit testing process limit behaviors. It is |
284 // also used to allow a command line parameter to configure the max number of | 284 // also used to allow a command line parameter to configure the max number of |
285 // renderer processes and should only be called once during startup. | 285 // renderer processes and should only be called once during startup. |
286 // A value of zero means to use the default heuristic. | 286 // A value of zero means to use the default heuristic. |
287 static void SetMaxRendererProcessCount(size_t count); | 287 static void SetMaxRendererProcessCount(size_t count); |
288 | 288 |
289 // Returns the current max number of renderer processes used by the content | 289 // Returns the current maximum number of renderer process hosts kept by the |
290 // module. | 290 // content module. |
291 static size_t GetMaxRendererProcessCount(); | 291 static size_t GetMaxRendererProcessCount(); |
292 }; | 292 }; |
293 | 293 |
294 } // namespace content. | 294 } // namespace content. |
295 | 295 |
296 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 296 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |