#include "remoting/host/chromoting_host_services_server.h"
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/notreached.h"
#include "build/buildflag.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/system/isolated_connection.h"
#include "remoting/host/ipc_constants.h"
#include "remoting/host/mojo_caller_security_checker.h"
#include "remoting/host/mojom/chromoting_host_services.mojom.h"
#if BUILDFLAG(IS_WIN)
#include "base/strings/strcat_win.h"
#include "base/win/win_util.h"
#endif
namespace remoting {
namespace {
named_mojo_ipc_server::EndpointOptions CreateEndpointOptions(
const mojo::NamedPlatformChannel::ServerName& server_name) { … }
}
ChromotingHostServicesServer::ChromotingHostServicesServer(
BindChromotingHostServicesCallback bind_chromoting_host_services)
: … { … }
ChromotingHostServicesServer::ChromotingHostServicesServer(
const mojo::NamedPlatformChannel::ServerName& server_name,
Validator validator,
BindChromotingHostServicesCallback bind_chromoting_host_services)
: … { … }
ChromotingHostServicesServer::~ChromotingHostServicesServer() = default;
void ChromotingHostServicesServer::StartServer() { … }
void ChromotingHostServicesServer::StopServer() { … }
void ChromotingHostServicesServer::OnMessagePipeReady(
mojo::ScopedMessagePipeHandle message_pipe,
base::ProcessId peer_pid,
void* context,
std::unique_ptr<mojo::IsolatedConnection> connection) { … }
}