#include "mojo/core/broker.h"
#include <fcntl.h>
#include <unistd.h>
#include <utility>
#include <vector>
#include "base/logging.h"
#include "base/memory/platform_shared_memory_region.h"
#include "build/build_config.h"
#include "mojo/buildflags.h"
#include "mojo/core/broker_messages.h"
#include "mojo/core/channel.h"
#include "mojo/core/platform_handle_utils.h"
#include "mojo/public/cpp/platform/socket_utils_posix.h"
namespace mojo {
namespace core {
namespace {
Channel::MessagePtr WaitForBrokerMessage(
int socket_fd,
BrokerMessageType expected_type,
size_t expected_num_handles,
size_t expected_data_size,
std::vector<PlatformHandle>* incoming_handles) { … }
}
Broker::Broker(PlatformHandle handle, bool wait_for_channel_handle)
: … { … }
Broker::~Broker() = default;
PlatformChannelEndpoint Broker::GetInviterEndpoint() { … }
base::WritableSharedMemoryRegion Broker::GetWritableSharedMemoryRegion(
size_t num_bytes) { … }
}
}