| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 193 |
| 194 // set of listeners that expect the renderer process to close | 194 // set of listeners that expect the renderer process to close |
| 195 std::set<int> listeners_expecting_close_; | 195 std::set<int> listeners_expecting_close_; |
| 196 | 196 |
| 197 // See getter above. | 197 // See getter above. |
| 198 static bool run_renderer_in_process_; | 198 static bool run_renderer_in_process_; |
| 199 | 199 |
| 200 DISALLOW_COPY_AND_ASSIGN(RenderProcessHost); | 200 DISALLOW_COPY_AND_ASSIGN(RenderProcessHost); |
| 201 }; | 201 }; |
| 202 | 202 |
| 203 // Factory object for RenderProcessHosts. Using this factory allows tests to |
| 204 // swap out a different one to use a TestRenderProcessHost. |
| 205 class RenderProcessHostFactory { |
| 206 public: |
| 207 virtual ~RenderProcessHostFactory() {} |
| 208 virtual RenderProcessHost* CreateRenderProcessHost( |
| 209 Profile* profile) const = 0; |
| 210 }; |
| 211 |
| 203 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ | 212 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |