Lines Matching defs:Channel
48 // channel ids as the pipe names. Channels on POSIX use sockets as
52 // the fork arranges it such that the initial control channel ends up on the
57 // A POSIX IPC channel can also be set up as a server for a bound UNIX domain
102 // Lookup a given channel id. Return -1 if not found.
112 // Remove the mapping for the given channel id. No error is signaled if the
165 int Channel::ChannelImpl::global_pid_ = 0;
168 Channel::ChannelImpl::ChannelImpl(const IPC::ChannelHandle& channel_handle,
194 Channel::ChannelImpl::~ChannelImpl() {
222 bool Channel::ChannelImpl::CreatePipe(
227 // 1) It's a channel wrapping a pipe that is given to us.
228 // 2) It's for a named channel, so we create it.
231 // 4) It's the initial IPC channel:
279 // Guard against inappropriate reuse of the initial IPC channel. If
280 // an IPC channel closes and someone attempts to reuse it by name, the
281 // initial channel must not be recycled here. http://crbug.com/26754.
284 LOG(FATAL) << "Denying attempt to reuse initial IPC channel for "
328 bool Channel::ChannelImpl::Connect() {
330 DLOG(INFO) << "Channel creation failed: " << pipe_name_;
350 void Channel::ChannelImpl::CloseFileDescriptors(Message* msg) {
371 bool Channel::ChannelImpl::ProcessOutgoingMessages() {
411 // to a directory over an IPC channel. Since IPC channels span
504 DVLOG(2) << "sent message @" << msg << " on channel @" << this
513 bool Channel::ChannelImpl::Send(Message* message) {
514 DVLOG(2) << "sending message @" << message << " on channel @" << this
531 int Channel::ChannelImpl::GetClientFileDescriptor() {
536 int Channel::ChannelImpl::TakeClientFileDescriptor() {
546 void Channel::ChannelImpl::CloseClientFileDescriptor() {
556 bool Channel::ChannelImpl::AcceptsConnections() const {
560 bool Channel::ChannelImpl::HasAcceptedConnection() const {
564 bool Channel::ChannelImpl::GetPeerEuid(uid_t* peer_euid) const {
569 void Channel::ChannelImpl::ResetToAcceptingConnectionState() {
613 bool Channel::ChannelImpl::IsNamedServerInitialized(
620 void Channel::ChannelImpl::SetGlobalPid(int pid) {
626 void Channel::ChannelImpl::OnFileCanReadWithoutBlocking(int fd) {
648 // Verify that the IPC channel peer is running as the same user.
692 void Channel::ChannelImpl::OnFileCanWriteWithoutBlocking(int fd) {
700 bool Channel::ChannelImpl::AcceptConnection() {
720 void Channel::ChannelImpl::ClosePipeOnError() {
734 int Channel::ChannelImpl::GetHelloMessageProcId() {
745 void Channel::ChannelImpl::QueueHelloMessage() {
766 Channel::ChannelImpl::ReadState Channel::ChannelImpl::ReadData(
824 bool Channel::ChannelImpl::ReadFileDescriptorsFromFDPipe() {
849 bool Channel::ChannelImpl::WillDispatchInputMessage(Message* msg) {
872 << " channel:" << this
889 bool Channel::ChannelImpl::DidEmptyInputBuffers() {
896 bool Channel::ChannelImpl::ExtractFileDescriptorsFromMsghdr(msghdr* msg) {
928 void Channel::ChannelImpl::ClearInputFDs() {
936 void Channel::ChannelImpl::QueueCloseFDMessage(int fd, int hops) {
958 void Channel::ChannelImpl::HandleInternalMessage(const Message& msg) {
967 case Channel::HELLO_MESSAGE_TYPE:
991 case Channel::CLOSE_FD_MESSAGE_TYPE:
1012 void Channel::ChannelImpl::Close() {
1034 // Channel's methods simply call through to ChannelImpl.
1035 Channel::Channel(const IPC::ChannelHandle& channel_handle, Mode mode,
1040 Channel::~Channel() {
1044 bool Channel::Connect() {
1048 void Channel::Close() {
1053 base::ProcessId Channel::peer_pid() const {
1057 bool Channel::Send(Message* message) {
1061 int Channel::GetClientFileDescriptor() const {
1065 int Channel::TakeClientFileDescriptor() {
1069 bool Channel::AcceptsConnections() const {
1073 bool Channel::HasAcceptedConnection() const {
1077 bool Channel::GetPeerEuid(uid_t* peer_euid) const {
1081 void Channel::ResetToAcceptingConnectionState() {
1086 bool Channel::IsNamedServerInitialized(const std::string& channel_id) {
1091 std::string Channel::GenerateVerifiedChannelID(const std::string& prefix) {
1105 void Channel::SetGlobalPid(int pid) {