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

Unified Diff: content/browser/gpu/gpu_process_host.h

Issue 2230283003: Revert of Establish MojoChildConnection from BrowserChildProcessHostImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@renderer-channel
Patch Set: Created 4 years, 4 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/browser/browser_child_process_host_impl.cc ('k') | 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 e20a1474e046b79c1984d670d5ccd73b5ff92021..bb3510b7ba8e852ed8134e111c3e448380ae68c0 100644
--- a/content/browser/gpu/gpu_process_host.h
+++ b/content/browser/gpu/gpu_process_host.h
@@ -44,14 +44,11 @@
struct SyncToken;
}
-namespace shell {
-class InterfaceProvider;
-}
-
namespace content {
class BrowserChildProcessHostImpl;
class GpuMainThread;
class InProcessChildThreadParams;
+class MojoChildConnection;
class RenderWidgetHostViewFrameSubscriber;
class ShaderDiskCache;
@@ -110,7 +107,8 @@
CONTENT_EXPORT static void RegisterGpuMainThreadFactory(
GpuMainThreadFactoryFunction create);
- shell::InterfaceProvider* GetRemoteInterfaces();
+ // BrowserChildProcessHostDelegate implementation.
+ shell::InterfaceProvider* GetRemoteInterfaces() override;
// Get the GPU process host for the GPU process with the given ID. Returns
// null if the process no longer exists.
@@ -209,7 +207,8 @@
const std::string& key,
const std::string& shader);
- bool LaunchGpuProcess(gpu::GpuPreferences* gpu_preferences);
+ bool LaunchGpuProcess(const std::string& channel_id,
+ gpu::GpuPreferences* gpu_preferences);
void SendOutstandingReplies();
@@ -292,6 +291,11 @@
std::string shader_prefix_key_;
+ // Browser-side Mojo endpoint which sets up a Mojo channel with the child
+ // process and contains the browser's InterfaceRegistry.
+ const std::string child_token_;
+ std::unique_ptr<MojoChildConnection> mojo_child_connection_;
+
DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
};
« no previous file with comments | « content/browser/browser_child_process_host_impl.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698