| 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_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 | 257 |
| 258 enum { | 258 enum { |
| 259 // This is the maximum size of |cached_dibs_| | 259 // This is the maximum size of |cached_dibs_| |
| 260 MAX_MAPPED_TRANSPORT_DIBS = 3, | 260 MAX_MAPPED_TRANSPORT_DIBS = 3, |
| 261 }; | 261 }; |
| 262 | 262 |
| 263 void ClearTransportDIBCache(); | 263 void ClearTransportDIBCache(); |
| 264 // This is used to clear our cache five seconds after the last use. | 264 // This is used to clear our cache five seconds after the last use. |
| 265 base::DelayTimer<RenderProcessHostImpl> cached_dibs_cleaner_; | 265 base::DelayTimer<RenderProcessHostImpl> cached_dibs_cleaner_; |
| 266 | 266 |
| 267 #if !defined(CHROME_MULTIPLE_DLL) | |
| 268 // Used in single-process mode. | 267 // Used in single-process mode. |
| 269 scoped_ptr<RendererMainThread> in_process_renderer_; | 268 scoped_ptr<base::Thread> in_process_renderer_; |
| 270 #endif | |
| 271 | 269 |
| 272 // True after Init() has been called. We can't just check channel_ because we | 270 // True after Init() has been called. We can't just check channel_ because we |
| 273 // also reset that in the case of process termination. | 271 // also reset that in the case of process termination. |
| 274 bool is_initialized_; | 272 bool is_initialized_; |
| 275 | 273 |
| 276 // Used to launch and terminate the process without blocking the UI thread. | 274 // Used to launch and terminate the process without blocking the UI thread. |
| 277 scoped_ptr<ChildProcessLauncher> child_process_launcher_; | 275 scoped_ptr<ChildProcessLauncher> child_process_launcher_; |
| 278 | 276 |
| 279 // Messages we queue while waiting for the process handle. We queue them here | 277 // Messages we queue while waiting for the process handle. We queue them here |
| 280 // instead of in the channel so that we ensure they're sent after init related | 278 // instead of in the channel so that we ensure they're sent after init related |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 | 321 |
| 324 // Forwards power state messages to the renderer process. | 322 // Forwards power state messages to the renderer process. |
| 325 PowerMonitorMessageBroadcaster power_monitor_broadcaster_; | 323 PowerMonitorMessageBroadcaster power_monitor_broadcaster_; |
| 326 | 324 |
| 327 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 325 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 328 }; | 326 }; |
| 329 | 327 |
| 330 } // namespace content | 328 } // namespace content |
| 331 | 329 |
| 332 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 330 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |