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

Unified Diff: content/browser/gpu/gpu_process_host.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 | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_process_host.h
diff --git a/content/browser/gpu/gpu_process_host.h b/content/browser/gpu/gpu_process_host.h
index fe5f6558a060ffa5e8ec4f2edd1ec984220989b2..83e3410ca7105bc43856978b30bdfa3cd9eaa4e0 100644
--- a/content/browser/gpu/gpu_process_host.h
+++ b/content/browser/gpu/gpu_process_host.h
@@ -44,6 +44,7 @@ namespace content {
class BrowserChildProcessHostImpl;
class GpuMainThread;
class InProcessChildThreadParams;
+class MojoApplicationHost;
class RenderWidgetHostViewFrameSubscriber;
class ShaderDiskCache;
@@ -172,6 +173,9 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
bool Init();
+ // Sets up mojo support in GPU process. Returns false upon failure.
+ bool SetupMojo();
+
// Post an IPC message to the UI shim's message handler on the UI thread.
void RouteOnUIThread(const IPC::Message& message);
@@ -181,6 +185,7 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
void OnProcessLaunched() override;
void OnProcessLaunchFailed() override;
void OnProcessCrashed(int exit_code) override;
+ ServiceRegistry* GetServiceRegistry() override;
// Message handlers.
void OnInitialized(bool result, const gpu::GPUInfo& gpu_info);
@@ -287,6 +292,10 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
IOSurfaceManagerToken io_surface_manager_token_;
#endif
+ // Browser-side Mojo endpoint which sets up a Mojo channel with the child
+ // process and contains the browser's ServiceRegistry.
+ scoped_ptr<MojoApplicationHost> mojo_application_host_;
+
DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
};
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698