| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 // delete ourselves | 266 // delete ourselves |
| 267 IDMap<IPC::Channel::Listener> listeners_; | 267 IDMap<IPC::Channel::Listener> listeners_; |
| 268 | 268 |
| 269 // The maximum page ID we've ever seen from the renderer process. | 269 // The maximum page ID we've ever seen from the renderer process. |
| 270 int32 max_page_id_; | 270 int32 max_page_id_; |
| 271 | 271 |
| 272 // True if fast shutdown has been performed on this RPH. | 272 // True if fast shutdown has been performed on this RPH. |
| 273 bool fast_shutdown_started_; | 273 bool fast_shutdown_started_; |
| 274 | 274 |
| 275 private: | 275 private: |
| 276 // The globally-uniqe identifier for this RPH. | 276 // The globally-unique identifier for this RPH. |
| 277 int id_; | 277 int id_; |
| 278 | 278 |
| 279 Profile* profile_; | 279 Profile* profile_; |
| 280 | 280 |
| 281 // set of listeners that expect the renderer process to close | 281 // set of listeners that expect the renderer process to close |
| 282 std::set<int> listeners_expecting_close_; | 282 std::set<int> listeners_expecting_close_; |
| 283 | 283 |
| 284 // True if the process can be shut down suddenly. If this is true, then we're | 284 // True if the process can be shut down suddenly. If this is true, then we're |
| 285 // sure that all the RenderViews in the process can be shutdown suddenly. If | 285 // sure that all the RenderViews in the process can be shutdown suddenly. If |
| 286 // it's false, then specific RenderViews might still be allowed to be shutdown | 286 // it's false, then specific RenderViews might still be allowed to be shutdown |
| (...skipping 18 matching lines...) Expand all Loading... |
| 305 // Factory object for RenderProcessHosts. Using this factory allows tests to | 305 // Factory object for RenderProcessHosts. Using this factory allows tests to |
| 306 // swap out a different one to use a TestRenderProcessHost. | 306 // swap out a different one to use a TestRenderProcessHost. |
| 307 class RenderProcessHostFactory { | 307 class RenderProcessHostFactory { |
| 308 public: | 308 public: |
| 309 virtual ~RenderProcessHostFactory() {} | 309 virtual ~RenderProcessHostFactory() {} |
| 310 virtual RenderProcessHost* CreateRenderProcessHost( | 310 virtual RenderProcessHost* CreateRenderProcessHost( |
| 311 Profile* profile) const = 0; | 311 Profile* profile) const = 0; |
| 312 }; | 312 }; |
| 313 | 313 |
| 314 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ | 314 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |