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

Unified Diff: services/service_manager/public/cpp/lib/connector_impl.h

Issue 2755813002: Begin to wean child processes off reliance on a persistent service_manager::Connection to the brows… (Closed)
Patch Set: . Created 3 years, 9 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
Index: services/service_manager/public/cpp/lib/connector_impl.h
diff --git a/services/service_manager/public/cpp/lib/connector_impl.h b/services/service_manager/public/cpp/lib/connector_impl.h
index 7c719a8480961cfa8a52a80dc5be98dc85413e5b..e83ee0f28de1a4c13adb257efa1f715e9791b85c 100644
--- a/services/service_manager/public/cpp/lib/connector_impl.h
+++ b/services/service_manager/public/cpp/lib/connector_impl.h
@@ -5,6 +5,7 @@
#ifndef SERVICES_SERVICE_MANAGER_PUBLIC_CPP_LIB_CONNECTOR_IMPL_H_
#define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_LIB_CONNECTOR_IMPL_H_
+#include <map>
#include <memory>
#include "base/callback.h"
@@ -34,6 +35,10 @@ class ConnectorImpl : public Connector {
mojo::ScopedMessagePipeHandle interface_pipe) override;
std::unique_ptr<Connector> Clone() override;
void BindConnectorRequest(mojom::ConnectorRequest request) override;
+ base::WeakPtr<Connector> GetWeakPtr() override;
+ void OverrideBinderForTesting(const std::string& interface_name,
+ const TestApi::Binder& binder) override;
+ void ClearBinderOverrides() override;
bool BindConnectorIfNecessary();
@@ -42,6 +47,10 @@ class ConnectorImpl : public Connector {
base::ThreadChecker thread_checker_;
+ std::map<std::string, TestApi::Binder> local_binder_overrides_;
+
+ base::WeakPtrFactory<Connector> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(ConnectorImpl);
};
« no previous file with comments | « services/service_manager/public/cpp/connector.h ('k') | services/service_manager/public/cpp/lib/connector_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698