| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 this->status = status; | 49 this->status = status; |
| 50 this->exit_code = exit_code; | 50 this->exit_code = exit_code; |
| 51 } | 51 } |
| 52 base::ProcessHandle handle; | 52 base::ProcessHandle handle; |
| 53 base::TerminationStatus status; | 53 base::TerminationStatus status; |
| 54 int exit_code; | 54 int exit_code; |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 // General functions --------------------------------------------------------- | 57 // General functions --------------------------------------------------------- |
| 58 | 58 |
| 59 virtual ~RenderProcessHost() {} | 59 ~RenderProcessHost() override {} |
| 60 | 60 |
| 61 // Initialize the new renderer process, returning true on success. This must | 61 // Initialize the new renderer process, returning true on success. This must |
| 62 // be called once before the object can be used, but can be called after | 62 // be called once before the object can be used, but can be called after |
| 63 // that with no effect. Therefore, if the caller isn't sure about whether | 63 // that with no effect. Therefore, if the caller isn't sure about whether |
| 64 // the process has been created, it should just call Init(). | 64 // the process has been created, it should just call Init(). |
| 65 virtual bool Init() = 0; | 65 virtual bool Init() = 0; |
| 66 | 66 |
| 67 // Gets the next available routing id. | 67 // Gets the next available routing id. |
| 68 virtual int GetNextRoutingID() = 0; | 68 virtual int GetNextRoutingID() = 0; |
| 69 | 69 |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 static void SetMaxRendererProcessCount(size_t count); | 280 static void SetMaxRendererProcessCount(size_t count); |
| 281 | 281 |
| 282 // Returns the current maximum number of renderer process hosts kept by the | 282 // Returns the current maximum number of renderer process hosts kept by the |
| 283 // content 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 |