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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 256 |
257 enum { | 257 enum { |
258 // This is the maximum size of |cached_dibs_| | 258 // This is the maximum size of |cached_dibs_| |
259 MAX_MAPPED_TRANSPORT_DIBS = 3, | 259 MAX_MAPPED_TRANSPORT_DIBS = 3, |
260 }; | 260 }; |
261 | 261 |
262 void ClearTransportDIBCache(); | 262 void ClearTransportDIBCache(); |
263 // This is used to clear our cache five seconds after the last use. | 263 // This is used to clear our cache five seconds after the last use. |
264 base::DelayTimer<RenderProcessHostImpl> cached_dibs_cleaner_; | 264 base::DelayTimer<RenderProcessHostImpl> cached_dibs_cleaner_; |
265 | 265 |
| 266 #if !defined(CHROME_MULTIPLE_DLL) |
266 // Used in single-process mode. | 267 // Used in single-process mode. |
267 scoped_ptr<RendererMainThread> in_process_renderer_; | 268 scoped_ptr<RendererMainThread> in_process_renderer_; |
| 269 #endif |
268 | 270 |
269 // True after Init() has been called. We can't just check channel_ because we | 271 // True after Init() has been called. We can't just check channel_ because we |
270 // also reset that in the case of process termination. | 272 // also reset that in the case of process termination. |
271 bool is_initialized_; | 273 bool is_initialized_; |
272 | 274 |
273 // Used to launch and terminate the process without blocking the UI thread. | 275 // Used to launch and terminate the process without blocking the UI thread. |
274 scoped_ptr<ChildProcessLauncher> child_process_launcher_; | 276 scoped_ptr<ChildProcessLauncher> child_process_launcher_; |
275 | 277 |
276 // Messages we queue while waiting for the process handle. We queue them here | 278 // Messages we queue while waiting for the process handle. We queue them here |
277 // instead of in the channel so that we ensure they're sent after init related | 279 // instead of in the channel so that we ensure they're sent after init related |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 // Prevents the class from being added as a GpuDataManagerImpl observer more | 319 // Prevents the class from being added as a GpuDataManagerImpl observer more |
318 // than once. | 320 // than once. |
319 bool gpu_observer_registered_; | 321 bool gpu_observer_registered_; |
320 | 322 |
321 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 323 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
322 }; | 324 }; |
323 | 325 |
324 } // namespace content | 326 } // namespace content |
325 | 327 |
326 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 328 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |