| 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.h" | 10 #include "base/process.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 int exit_code; | 54 int exit_code; |
| 55 bool was_alive; | 55 bool was_alive; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 virtual ~RenderProcessHost() {} | 58 virtual ~RenderProcessHost() {} |
| 59 | 59 |
| 60 // Initialize the new renderer process, returning true on success. This must | 60 // Initialize the new renderer process, returning true on success. This must |
| 61 // be called once before the object can be used, but can be called after | 61 // be called once before the object can be used, but can be called after |
| 62 // that with no effect. Therefore, if the caller isn't sure about whether | 62 // that with no effect. Therefore, if the caller isn't sure about whether |
| 63 // the process has been created, it should just call Init(). | 63 // the process has been created, it should just call Init(). |
| 64 virtual bool Init(bool is_accessibility_enabled) = 0; | 64 virtual bool Init() = 0; |
| 65 | 65 |
| 66 // Gets the next available routing id. | 66 // Gets the next available routing id. |
| 67 virtual int GetNextRoutingID() = 0; | 67 virtual int GetNextRoutingID() = 0; |
| 68 | 68 |
| 69 // Called on the UI thread to cancel any outstanding resource requests for | 69 // Called on the UI thread to cancel any outstanding resource requests for |
| 70 // the specified render widget. | 70 // the specified render widget. |
| 71 virtual void CancelResourceRequests(int render_widget_id) = 0; | 71 virtual void CancelResourceRequests(int render_widget_id) = 0; |
| 72 | 72 |
| 73 // Called on the UI thread to simulate a SwapOut_ACK message to the | 73 // Called on the UI thread to simulate a SwapOut_ACK message to the |
| 74 // ResourceDispatcherHost. Necessary for a cross-site request, in the case | 74 // ResourceDispatcherHost. Necessary for a cross-site request, in the case |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 static void SetMaxRendererProcessCount(size_t count); | 235 static void SetMaxRendererProcessCount(size_t count); |
| 236 | 236 |
| 237 // Returns the current max number of renderer processes used by the content | 237 // Returns the current max number of renderer processes used by the content |
| 238 // module. | 238 // module. |
| 239 static size_t GetMaxRendererProcessCount(); | 239 static size_t GetMaxRendererProcessCount(); |
| 240 }; | 240 }; |
| 241 | 241 |
| 242 } // namespace content. | 242 } // namespace content. |
| 243 | 243 |
| 244 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 244 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
| 245 | |
| OLD | NEW |