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) | |
267 // Used in single-process mode. | 266 // Used in single-process mode. |
268 scoped_ptr<RendererMainThread> in_process_renderer_; | 267 scoped_ptr<RendererMainThread> in_process_renderer_; |
269 #endif | |
270 | 268 |
271 // True after Init() has been called. We can't just check channel_ because we | 269 // True after Init() has been called. We can't just check channel_ because we |
272 // also reset that in the case of process termination. | 270 // also reset that in the case of process termination. |
273 bool is_initialized_; | 271 bool is_initialized_; |
274 | 272 |
275 // Used to launch and terminate the process without blocking the UI thread. | 273 // Used to launch and terminate the process without blocking the UI thread. |
276 scoped_ptr<ChildProcessLauncher> child_process_launcher_; | 274 scoped_ptr<ChildProcessLauncher> child_process_launcher_; |
277 | 275 |
278 // Messages we queue while waiting for the process handle. We queue them here | 276 // Messages we queue while waiting for the process handle. We queue them here |
279 // instead of in the channel so that we ensure they're sent after init related | 277 // 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... |
319 // Prevents the class from being added as a GpuDataManagerImpl observer more | 317 // Prevents the class from being added as a GpuDataManagerImpl observer more |
320 // than once. | 318 // than once. |
321 bool gpu_observer_registered_; | 319 bool gpu_observer_registered_; |
322 | 320 |
323 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 321 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
324 }; | 322 }; |
325 | 323 |
326 } // namespace content | 324 } // namespace content |
327 | 325 |
328 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 326 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |