#include "mojo/public/cpp/platform/named_platform_channel.h"
#include <errno.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>
#include "base/files/file_util.h"
#include "base/files/scoped_file.h"
#include "base/logging.h"
#include "base/posix/eintr_wrapper.h"
#include "base/rand_util.h"
#include "base/strings/string_number_conversions.h"
#include "net/base/sockaddr_storage.h"
#include "net/base/sockaddr_util_posix.h"
namespace mojo {
namespace {
NamedPlatformChannel::ServerName GenerateRandomServerName(
const NamedPlatformChannel::Options& options) { … }
bool MakeUnixAddr(const NamedPlatformChannel::ServerName& server_name,
bool use_abstract_namespace,
net::SockaddrStorage* addr_storage) { … }
PlatformHandle CreateUnixDomainSocket() { … }
}
PlatformChannelServerEndpoint NamedPlatformChannel::CreateServerEndpoint(
const Options& options,
ServerName* server_name) { … }
PlatformChannelEndpoint NamedPlatformChannel::CreateClientEndpoint(
const Options& options) { … }
}