#include "mojo/public/cpp/bindings/service_factory.h"
#include "base/containers/contains.h"
#include "base/functional/bind.h"
namespace mojo {
ServiceFactory::ServiceFactory() = default;
ServiceFactory::~ServiceFactory() = default;
bool ServiceFactory::CanRunService(
const GenericPendingReceiver& receiver) const { … }
bool ServiceFactory::RunService(GenericPendingReceiver receiver,
base::OnceClosure termination_callback) { … }
void ServiceFactory::OnInstanceDisconnected(InstanceHolderBase* instance) { … }
ServiceFactory::InstanceHolderBase::InstanceHolderBase()
: … { … }
ServiceFactory::InstanceHolderBase::~InstanceHolderBase() = default;
void ServiceFactory::InstanceHolderBase::WatchPipe(
MessagePipeHandle pipe,
base::OnceClosure disconnect_callback) { … }
void ServiceFactory::InstanceHolderBase::OnPipeSignaled(
MojoResult result,
const HandleSignalsState& state) { … }
}