Chromium Code Reviews| 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> |
| 11 | 11 |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/process.h" | 13 #include "base/process.h" |
| 14 #include "base/synchronization/waitable_event.h" | |
| 14 #include "base/timer.h" | 15 #include "base/timer.h" |
| 15 #include "content/browser/child_process_launcher.h" | 16 #include "content/browser/child_process_launcher.h" |
| 16 #include "content/common/content_export.h" | 17 #include "content/common/content_export.h" |
| 17 #include "content/public/browser/render_process_host.h" | 18 #include "content/public/browser/render_process_host.h" |
| 18 #include "ipc/ipc_channel_proxy.h" | 19 #include "ipc/ipc_channel_proxy.h" |
| 19 #include "ui/surface/transport_dib.h" | 20 #include "ui/surface/transport_dib.h" |
| 20 | 21 |
| 21 class CommandLine; | 22 class CommandLine; |
| 22 | 23 |
| 23 namespace gfx { | 24 namespace gfx { |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 286 // the same process doesn't. | 287 // the same process doesn't. |
| 287 bool sudden_termination_allowed_; | 288 bool sudden_termination_allowed_; |
| 288 | 289 |
| 289 // Set to true if we shouldn't send input events. We actually do the | 290 // Set to true if we shouldn't send input events. We actually do the |
| 290 // filtering for this at the render widget level. | 291 // filtering for this at the render widget level. |
| 291 bool ignore_input_events_; | 292 bool ignore_input_events_; |
| 292 | 293 |
| 293 // Records the last time we regarded the child process active. | 294 // Records the last time we regarded the child process active. |
| 294 base::TimeTicks child_process_activity_time_; | 295 base::TimeTicks child_process_activity_time_; |
| 295 | 296 |
| 297 #if defined(OS_ANDROID) | |
| 298 // Android WebView needs to use a SyncChannel to block the browser process | |
| 299 // for synchronous find-in-page API support. In that case the shutdown event | |
| 300 // makes no sense but SyncChannel still expects one. So, create a dummy event | |
|
jam
2012/09/19 16:55:43
why doesn't it make sense? seems that you'd want t
Leandro GraciĆ” Gil
2012/09/19 18:08:59
AFAIK there's no quitting on Android, we just get
| |
| 301 // that never will be signaled. | |
| 302 base::WaitableEvent dummy_shutdown_event_; | |
| 303 #endif | |
| 304 | |
| 296 // Indicates whether this is a RenderProcessHost of a Browser Plugin guest | 305 // Indicates whether this is a RenderProcessHost of a Browser Plugin guest |
| 297 // renderer. | 306 // renderer. |
| 298 bool is_guest_; | 307 bool is_guest_; |
| 299 | 308 |
| 300 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 309 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 301 }; | 310 }; |
| 302 | 311 |
| 303 } // namespace content | 312 } // namespace content |
| 304 | 313 |
| 305 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 314 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |