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

Unified Diff: content/common/service_manager/child_connection.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/common/child_process_host_impl.cc ('k') | content/common/service_manager/child_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/service_manager/child_connection.h
diff --git a/content/common/service_manager/child_connection.h b/content/common/service_manager/child_connection.h
index 01ece56b70bb8e6881cd2eb8f2a7c7451c9cb6e2..4799df57dd8372eb051b4207fded6ec6e4a15b9a 100644
--- a/content/common/service_manager/child_connection.h
+++ b/content/common/service_manager/child_connection.h
@@ -16,7 +16,6 @@
#include "content/common/content_export.h"
#include "mojo/edk/embedder/pending_process_connection.h"
#include "services/service_manager/public/cpp/identity.h"
-#include "services/service_manager/public/cpp/interface_provider.h"
#include "services/service_manager/public/interfaces/connector.mojom.h"
namespace service_manager {
@@ -41,9 +40,10 @@ class CONTENT_EXPORT ChildConnection {
scoped_refptr<base::SequencedTaskRunner> io_task_runner);
~ChildConnection();
- service_manager::InterfaceProvider* GetRemoteInterfaces() {
- return &remote_interfaces_;
- }
+ // Binds an implementation of |interface_name| to |interface_pipe| in the
+ // child.
+ void BindInterface(const std::string& interface_name,
+ mojo::ScopedMessagePipeHandle interface_pipe);
const service_manager::Identity& child_identity() const {
return child_identity_;
@@ -67,8 +67,6 @@ class CONTENT_EXPORT ChildConnection {
std::string service_token_;
base::ProcessHandle process_handle_ = base::kNullProcessHandle;
- service_manager::InterfaceProvider remote_interfaces_;
-
base::WeakPtrFactory<ChildConnection> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(ChildConnection);
« no previous file with comments | « content/common/child_process_host_impl.cc ('k') | content/common/service_manager/child_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698