Commit 28e9ac8b authored by Jay Civelli's avatar Jay Civelli Committed by Commit Bot

Adding a bound accessor to service_manager::Connector.

Adding a bound accessor to service_manager::Connector so clients that
require a fresh (unbound) connector can check that.

Bug: None
Change-Id: I555e32b71d7259713544f6283c8868827409382c
Reviewed-on: https://chromium-review.googlesource.com/803907Reviewed-by: default avatarKen Rockot <rockot@chromium.org>
Commit-Queue: Jay Civelli <jcivelli@chromium.org>
Cr-Commit-Position: refs/heads/master@{#521048}
parent 75ed6df4
......@@ -95,6 +95,10 @@ std::unique_ptr<Connector> Connector::Clone() {
return std::make_unique<Connector>(connector.PassInterface());
}
bool Connector::IsBound() const {
return connector_.is_bound();
}
void Connector::FilterInterfaces(const std::string& spec,
const Identity& source_identity,
mojom::InterfaceProviderRequest request,
......
......@@ -131,6 +131,9 @@ class SERVICE_MANAGER_PUBLIC_CPP_EXPORT Connector {
// to pass again.
std::unique_ptr<Connector> Clone();
// Returns true if this Connector instance is already bound to a thread.
bool IsBound() const;
void FilterInterfaces(const std::string& spec,
const Identity& source_identity,
mojom::InterfaceProviderRequest request,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment