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

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

Issue 2775483003: Use public Service Manager Connector API in Blink (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 e83ee0f28de1a4c13adb257efa1f715e9791b85c..6263f44a826d719b1e4f63fc7f583c73aa9a063c 100644
--- a/services/service_manager/public/cpp/lib/connector_impl.h
+++ b/services/service_manager/public/cpp/lib/connector_impl.h
@@ -36,18 +36,21 @@ class ConnectorImpl : public Connector {
std::unique_ptr<Connector> Clone() override;
void BindConnectorRequest(mojom::ConnectorRequest request) override;
base::WeakPtr<Connector> GetWeakPtr() override;
- void OverrideBinderForTesting(const std::string& interface_name,
+ void OverrideBinderForTesting(const std::string& service_name,
+ const std::string& interface_name,
const TestApi::Binder& binder) override;
void ClearBinderOverrides() override;
bool BindConnectorIfNecessary();
+ using BinderOverrideMap = std::map<std::string, TestApi::Binder>;
+
mojom::ConnectorPtrInfo unbound_state_;
mojom::ConnectorPtr connector_;
base::ThreadChecker thread_checker_;
- std::map<std::string, TestApi::Binder> local_binder_overrides_;
+ std::map<std::string, BinderOverrideMap> local_binder_overrides_;
base::WeakPtrFactory<Connector> weak_factory_;
« 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