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

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

Issue 2221153003: Establish MojoChildConnection from BrowserChildProcessHostImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@renderer-channel
Patch Set: rebase 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/public/common/BUILD.gn ('k') | content/public/common/child_process_host_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/child_process_host.h
diff --git a/content/public/common/child_process_host.h b/content/public/common/child_process_host.h
index 7fbac4c8f6f9b259f7a14eb1043c4c0a1cb1e49d..db686ede026e19d09192dae526756bc433369e82 100644
--- a/content/public/common/child_process_host.h
+++ b/content/public/common/child_process_host.h
@@ -21,6 +21,10 @@ namespace IPC {
class MessageFilter;
}
+namespace shell {
+class InterfaceProvider;
+}
+
namespace content {
class ChildProcessHostDelegate;
@@ -83,14 +87,25 @@ class CONTENT_EXPORT ChildProcessHost : public IPC::Sender {
// Creates the IPC channel on top of Mojo. Returns the Mojo channel token if
// succeeded, or an empty string on failure.
+ //
+ // DEPRECATED: Don't use this. Instead implement GetRemoteInterfaces() in the
+ // delegate and use the CreateChannelMojo() version below.
virtual std::string CreateChannelMojo(const std::string& child_token) = 0;
+ // Creates the IPC channel over a Mojo message pipe. The pipe connection is
+ // brokered through the shell like any other service connection.
+ virtual void CreateChannelMojo() = 0;
+
// Returns true iff the IPC channel is currently being opened;
virtual bool IsChannelOpening() = 0;
// Adds an IPC message filter. A reference will be kept to the filter.
virtual void AddFilter(IPC::MessageFilter* filter) = 0;
+ // Returns the shell::InterfaceProvider the process host can use to bind
+ // interfaces exposed to it from the child.
+ virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0;
+
#if defined(OS_POSIX)
// See IPC::Channel::TakeClientFileDescriptor.
virtual base::ScopedFD TakeClientFileDescriptor() = 0;
« no previous file with comments | « content/public/common/BUILD.gn ('k') | content/public/common/child_process_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698