#include "components/named_mojo_ipc_server/named_mojo_message_pipe_server.h"
#include <memory>
#include <utility>
#include "base/check.h"
#include "base/logging.h"
#include "base/memory/weak_ptr.h"
#include "base/process/process.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/thread_pool.h"
#include "base/threading/sequence_bound.h"
#include "build/build_config.h"
#include "components/named_mojo_ipc_server/connection_info.h"
#include "components/named_mojo_ipc_server/endpoint_options.h"
#include "components/named_mojo_ipc_server/named_mojo_server_endpoint_connector.h"
#include "mojo/core/embedder/embedder.h"
#include "mojo/public/cpp/platform/platform_channel_endpoint.h"
#include "mojo/public/cpp/system/invitation.h"
#include "mojo/public/cpp/system/isolated_connection.h"
#include "mojo/public/cpp/system/message_pipe.h"
#if BUILDFLAG(IS_WIN)
#include <windows.h>
#include "base/strings/stringprintf.h"
#include "base/win/win_util.h"
#endif
namespace named_mojo_ipc_server {
class NamedMojoMessagePipeServer::DelegateProxy final
: public NamedMojoServerEndpointConnector::Delegate { … };
NamedMojoMessagePipeServer::NamedMojoMessagePipeServer(
const EndpointOptions& options,
Validator validator,
OnMessagePipeReady on_message_pipe_ready)
: … { … }
NamedMojoMessagePipeServer::~NamedMojoMessagePipeServer() { … }
void NamedMojoMessagePipeServer::StartServer() { … }
void NamedMojoMessagePipeServer::StopServer() { … }
void NamedMojoMessagePipeServer::OnClientConnected(
mojo::PlatformChannelEndpoint endpoint,
std::unique_ptr<ConnectionInfo> info) { … }
void NamedMojoMessagePipeServer::OnServerEndpointCreated() { … }
}