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

Unified Diff: content/public/common/child_process_host.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/bind_interface_helpers.h ('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 51e617f8e901715bf2709aeb954d70733ad5ebde..0557524952399e827cc245a5edad0ce641bf1fbc 100644
--- a/content/public/common/child_process_host.h
+++ b/content/public/common/child_process_host.h
@@ -10,6 +10,7 @@
#include "base/files/scoped_file.h"
#include "build/build_config.h"
#include "content/common/content_export.h"
+#include "content/public/common/bind_interface_helpers.h"
#include "ipc/ipc_channel_proxy.h"
#include "mojo/edk/embedder/pending_process_connection.h"
@@ -21,10 +22,6 @@ namespace IPC {
class MessageFilter;
}
-namespace service_manager {
-class InterfaceProvider;
-}
-
namespace content {
class ChildProcessHostDelegate;
@@ -94,10 +91,9 @@ class CONTENT_EXPORT ChildProcessHost : public IPC::Sender {
// Adds an IPC message filter. A reference will be kept to the filter.
virtual void AddFilter(IPC::MessageFilter* filter) = 0;
- // Returns the service_manager::InterfaceProvider the process host can use to
- // bind
- // interfaces exposed to it from the child.
- virtual service_manager::InterfaceProvider* GetRemoteInterfaces() = 0;
+ // Bind an interface exposed by the child process.
+ virtual void BindInterface(const std::string& interface_name,
+ mojo::ScopedMessagePipeHandle interface_pipe) = 0;
};
}; // namespace content
« no previous file with comments | « content/public/common/bind_interface_helpers.h ('k') | content/public/common/child_process_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698