#include "base/task/single_thread_task_runner.h"
#include "build/build_config.h"
#include "ipc/ipc_channel.h"
#include "ipc/ipc_channel_mojo.h"
#include "mojo/public/cpp/system/message_pipe.h"
namespace IPC {
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
namespace {
int g_global_pid = …;
}
void Channel::SetGlobalPid(int pid) { … }
int Channel::GetGlobalPid() { … }
#endif
std::unique_ptr<Channel> Channel::CreateClient(
const IPC::ChannelHandle& channel_handle,
Listener* listener,
const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner) { … }
std::unique_ptr<Channel> Channel::CreateServer(
const IPC::ChannelHandle& channel_handle,
Listener* listener,
const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner) { … }
Channel::~Channel() = default;
Channel::AssociatedInterfaceSupport* Channel::GetAssociatedInterfaceSupport() { … }
void Channel::Pause() { … }
void Channel::Unpause(bool flush) { … }
void Channel::Flush() { … }
void Channel::SetUrgentMessageObserver(UrgentMessageObserver* observer) { … }
void Channel::WillConnect() { … }
}