Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(676)

Unified Diff: content/gpu/gpu_child_thread.h

Issue 1297953004: Support mojo applications in GPU process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/gpu/BUILD.gn ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_child_thread.h
diff --git a/content/gpu/gpu_child_thread.h b/content/gpu/gpu_child_thread.h
index b4ece6349a275e8b0e18ba85a6680ae3e5c6bb1e..1fd0a1973ac31aa23e42da9410a327bb31be8e03 100644
--- a/content/gpu/gpu_child_thread.h
+++ b/content/gpu/gpu_child_thread.h
@@ -20,6 +20,8 @@
#include "content/common/gpu/gpu_config.h"
#include "content/common/gpu/x_util.h"
#include "gpu/config/gpu_info.h"
+#include "mojo/common/weak_binding_set.h"
+#include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h"
#include "ui/gfx/native_widget_types.h"
namespace gpu {
@@ -32,7 +34,9 @@ class TargetServices;
namespace content {
class GpuMemoryBufferFactory;
+class GpuProcessControlImpl;
class GpuWatchdogThread;
+class ProcessControl;
// The main thread of the GPU child process. There will only ever be one of
// these per process. It does process initialization and shutdown. It forwards
@@ -83,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_;
@@ -111,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);
};
« no previous file with comments | « content/gpu/BUILD.gn ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698