#include "services/service_manager/public/cpp/connector.h"
#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "services/service_manager/public/cpp/identity.h"
#include "services/service_manager/public/mojom/service.mojom.h"
namespace service_manager {
Connector::Connector(mojo::PendingRemote<mojom::Connector> unbound_state)
: … { … }
Connector::Connector(mojo::Remote<mojom::Connector> connector)
: … { … }
Connector::~Connector() = default;
std::unique_ptr<Connector> Connector::Create(
mojo::PendingReceiver<mojom::Connector>* receiver) { … }
void Connector::WarmService(const ServiceFilter& filter,
WarmServiceCallback callback) { … }
void Connector::RegisterServiceInstance(
const Identity& identity,
mojo::PendingRemote<mojom::Service> service,
mojo::PendingReceiver<mojom::ProcessMetadata> metadata_receiver,
RegisterServiceInstanceCallback callback) { … }
void Connector::QueryService(const std::string& service_name,
mojom::Connector::QueryServiceCallback callback) { … }
void Connector::BindInterface(const ServiceFilter& filter,
const std::string& interface_name,
mojo::ScopedMessagePipeHandle interface_pipe,
mojom::BindInterfacePriority priority,
BindInterfaceCallback callback) { … }
std::unique_ptr<Connector> Connector::Clone() { … }
bool Connector::IsBound() const { … }
void Connector::BindConnectorReceiver(
mojo::PendingReceiver<mojom::Connector> receiver) { … }
base::WeakPtr<Connector> Connector::GetWeakPtr() { … }
void Connector::OverrideBinderForTesting(
const service_manager::ServiceFilter& filter,
const std::string& interface_name,
const TestApi::Binder& binder) { … }
bool Connector::HasBinderOverrideForTesting(
const service_manager::ServiceFilter& filter,
const std::string& interface_name) { … }
void Connector::ClearBinderOverrideForTesting(
const service_manager::ServiceFilter& filter,
const std::string& interface_name) { … }
void Connector::ClearBinderOverridesForTesting() { … }
void Connector::OnConnectionError() { … }
bool Connector::BindConnectorIfNecessary() { … }
}