Index: content/gpu/gpu_child_thread.h |
diff --git a/content/gpu/gpu_child_thread.h b/content/gpu/gpu_child_thread.h |
index 11cd46d6c0bd5972df1ed16575eedff7b4dca4bf..35b32f9d5043652042fa282b8fa0b2a9b3b4f70a 100644 |
--- a/content/gpu/gpu_child_thread.h |
+++ b/content/gpu/gpu_child_thread.h |
@@ -19,7 +19,9 @@ |
#include "content/common/gpu/gpu_channel_manager.h" |
#include "content/common/gpu/gpu_config.h" |
#include "content/common/gpu/x_util.h" |
+#include "content/gpu/gpu_process_control_impl.h" |
Ken Rockot(use gerrit already)
2015/10/02 21:34:51
nit: could just forward declare this?
xhwang
2015/10/02 22:07:48
Done.
|
#include "gpu/config/gpu_info.h" |
+#include "mojo/common/weak_binding_set.h" |
#include "ui/gfx/native_widget_types.h" |
namespace gpu { |
@@ -85,6 +87,9 @@ class GpuChildThread : public ChildThreadImpl { |
void OnGetGpuTcmalloc(); |
#endif |
+ void BindProcessControlRequest( |
+ mojo::InterfaceRequest<ProcessControl> request); |
+ |
// Set this flag to true if a fatal error occurred before we receive the |
// OnInitialize message, in which case we just declare ourselves DOA. |
bool dead_on_arrival_; |
@@ -113,6 +118,12 @@ class GpuChildThread : public ChildThreadImpl { |
// The GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers. |
GpuMemoryBufferFactory* const gpu_memory_buffer_factory_; |
+ // Process control for Mojo application hosting. |
+ scoped_ptr<GpuProcessControlImpl> process_control_; |
+ |
+ // Bindings to the ProcessControl impl. |
+ mojo::WeakBindingSet<ProcessControl> process_control_bindings_; |
+ |
DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
}; |