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 <set> |
9 | |
9 #include "base/id_map.h" | 10 #include "base/id_map.h" |
10 #include "base/process.h" | 11 #include "base/process.h" |
11 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
12 #include "chrome/common/ipc_sync_channel.h" | 13 #include "chrome/common/ipc_sync_channel.h" |
13 | 14 |
14 class Profile; | 15 class Profile; |
15 | 16 |
16 // Virtual interface that represents the browser side of the browser <-> | 17 // Virtual interface that represents the browser side of the browser <-> |
17 // renderer communication channel. There will generally be one | 18 // renderer communication channel. There will generally be one |
18 // RenderProcessHost per renderer process. | 19 // RenderProcessHost per renderer process. |
(...skipping 171 matching lines...) Loading... | |
190 int host_id_; | 191 int host_id_; |
191 | 192 |
192 Profile* profile_; | 193 Profile* profile_; |
193 | 194 |
194 // set of listeners that expect the renderer process to close | 195 // set of listeners that expect the renderer process to close |
195 std::set<int> listeners_expecting_close_; | 196 std::set<int> listeners_expecting_close_; |
196 | 197 |
197 // See getter above. | 198 // See getter above. |
198 static bool run_renderer_in_process_; | 199 static bool run_renderer_in_process_; |
199 | 200 |
200 DISALLOW_COPY_AND_ASSIGN(RenderProcessHost); | 201 DISALLOW_COPY_AND_ASSIGN(RenderProcessHost); |
Dean McNamee
2009/02/19 11:50:32
this requires basictypes.h, but you removed that i
| |
201 }; | 202 }; |
202 | 203 |
203 // Factory object for RenderProcessHosts. Using this factory allows tests to | 204 // Factory object for RenderProcessHosts. Using this factory allows tests to |
204 // swap out a different one to use a TestRenderProcessHost. | 205 // swap out a different one to use a TestRenderProcessHost. |
205 class RenderProcessHostFactory { | 206 class RenderProcessHostFactory { |
206 public: | 207 public: |
207 virtual ~RenderProcessHostFactory() {} | 208 virtual ~RenderProcessHostFactory() {} |
208 virtual RenderProcessHost* CreateRenderProcessHost( | 209 virtual RenderProcessHost* CreateRenderProcessHost( |
209 Profile* profile) const = 0; | 210 Profile* profile) const = 0; |
210 }; | 211 }; |
211 | 212 |
212 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ | 213 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ |
OLD | NEW |