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

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

Issue 2766263009: Convert content ConnectionFilter to OnBindInterface (Closed)
Patch Set: . Created 3 years, 8 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/child_process_host.h ('k') | content/public/common/child_process_host_delegate.cc » ('j') | 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 d7bd45140598d6a1c7aabca7cd14aaae336cade0..274d2e33a87d597b5c0ca2bfcf958e95f8a3d702 100644
--- a/content/public/common/child_process_host_delegate.h
+++ b/content/public/common/child_process_host_delegate.h
@@ -10,15 +10,12 @@
#include "base/process/process.h"
#include "content/common/content_export.h"
#include "ipc/ipc_listener.h"
+#include "mojo/public/cpp/system/message_pipe.h"
namespace IPC {
class Channel;
}
-namespace service_manager {
-class InterfaceProvider;
-}
-
namespace content {
// Interface that all users of ChildProcessHost need to provide.
@@ -43,10 +40,9 @@ class ChildProcessHostDelegate : public IPC::Listener {
// OnProcessLaunched is called or it will be invalid and may crash.
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.
- CONTENT_EXPORT virtual service_manager::InterfaceProvider*
- GetRemoteInterfaces();
+ // Binds an interface in the child process.
+ virtual void BindInterface(const std::string& interface_name,
+ mojo::ScopedMessagePipeHandle interface_pipe) {}
};
}; // namespace content
« no previous file with comments | « content/public/common/child_process_host.h ('k') | content/public/common/child_process_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698