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

Unified Diff: content/public/common/child_process_host_delegate.h

Issue 2625933002: content/gpu: Set up a mojom connection between browser and gpu. (Closed)
Patch Set: tot merge Created 3 years, 11 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/public/app/mojo/content_gpu_manifest.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/child_process_host_delegate.h
diff --git a/content/public/common/child_process_host_delegate.h b/content/public/common/child_process_host_delegate.h
index 62fa80e733d5aa4c0f79385bc58ad828ea5bd925..d7bd45140598d6a1c7aabca7cd14aaae336cade0 100644
--- a/content/public/common/child_process_host_delegate.h
+++ b/content/public/common/child_process_host_delegate.h
@@ -11,6 +11,10 @@
#include "content/common/content_export.h"
#include "ipc/ipc_listener.h"
+namespace IPC {
+class Channel;
+}
+
namespace service_manager {
class InterfaceProvider;
}
@@ -28,6 +32,9 @@ class ChildProcessHostDelegate : public IPC::Listener {
// it's ok to shutdown, when really it's not.
CONTENT_EXPORT virtual bool CanShutdown();
+ // Called when the IPC channel for the child process is initialized.
+ virtual void OnChannelInitialized(IPC::Channel* channel) {}
+
// Called when the child process unexpected closes the IPC channel. Delegates
// would normally delete the object in this case.
virtual void OnChildDisconnected() {}
@@ -37,8 +44,7 @@ class ChildProcessHostDelegate : public IPC::Listener {
virtual const base::Process& GetProcess() const = 0;
// Returns the service_manager::InterfaceProvider the process host can use to
- // bind
- // interfaces exposed to it from the child.
+ // bind interfaces exposed to it from the child.
CONTENT_EXPORT virtual service_manager::InterfaceProvider*
GetRemoteInterfaces();
};
« no previous file with comments | « content/public/app/mojo/content_gpu_manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698