| 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 static RenderProcessHost* GetExistingProcessHost( | 272 static RenderProcessHost* GetExistingProcessHost( |
| 273 content::BrowserContext* browser_context, const GURL& site_url); | 273 content::BrowserContext* browser_context, const GURL& site_url); |
| 274 | 274 |
| 275 // Overrides the default heuristic for limiting the max renderer process | 275 // Overrides the default heuristic for limiting the max renderer process |
| 276 // count. This is useful for unit testing process limit behaviors. It is | 276 // count. This is useful for unit testing process limit behaviors. It is |
| 277 // also used to allow a command line parameter to configure the max number of | 277 // also used to allow a command line parameter to configure the max number of |
| 278 // renderer processes and should only be called once during startup. | 278 // renderer processes and should only be called once during startup. |
| 279 // A value of zero means to use the default heuristic. | 279 // A value of zero means to use the default heuristic. |
| 280 static void SetMaxRendererProcessCount(size_t count); | 280 static void SetMaxRendererProcessCount(size_t count); |
| 281 | 281 |
| 282 // Returns the current max number of renderer processes used by the content | 282 // Returns the current maximum number of renderer process hosts kept by the |
| 283 // module. | 283 // content module. |
| 284 static size_t GetMaxRendererProcessCount(); | 284 static size_t GetMaxRendererProcessCount(); |
| 285 }; | 285 }; |
| 286 | 286 |
| 287 } // namespace content. | 287 } // namespace content. |
| 288 | 288 |
| 289 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 289 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |