OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ipc/ipc_channel_posix.h" | 5 #include "ipc/ipc_channel_posix.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <fcntl.h> | 8 #include <fcntl.h> |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 #include <sys/types.h> | 10 #include <sys/types.h> |
(...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1126 | 1126 |
1127 bool Channel::Connect() { | 1127 bool Channel::Connect() { |
1128 return channel_impl_->Connect(); | 1128 return channel_impl_->Connect(); |
1129 } | 1129 } |
1130 | 1130 |
1131 void Channel::Close() { | 1131 void Channel::Close() { |
1132 if (channel_impl_) | 1132 if (channel_impl_) |
1133 channel_impl_->Close(); | 1133 channel_impl_->Close(); |
1134 } | 1134 } |
1135 | 1135 |
1136 void Channel::set_listener(Listener* listener) { | |
1137 channel_impl_->set_listener(listener); | |
1138 } | |
1139 | |
1140 base::ProcessId Channel::peer_pid() const { | 1136 base::ProcessId Channel::peer_pid() const { |
1141 return channel_impl_->peer_pid(); | 1137 return channel_impl_->peer_pid(); |
1142 } | 1138 } |
1143 | 1139 |
1144 bool Channel::Send(Message* message) { | 1140 bool Channel::Send(Message* message) { |
1145 return channel_impl_->Send(message); | 1141 return channel_impl_->Send(message); |
1146 } | 1142 } |
1147 | 1143 |
1148 int Channel::GetClientFileDescriptor() const { | 1144 int Channel::GetClientFileDescriptor() const { |
1149 return channel_impl_->GetClientFileDescriptor(); | 1145 return channel_impl_->GetClientFileDescriptor(); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1188 | 1184 |
1189 | 1185 |
1190 #if defined(OS_LINUX) | 1186 #if defined(OS_LINUX) |
1191 // static | 1187 // static |
1192 void Channel::SetGlobalPid(int pid) { | 1188 void Channel::SetGlobalPid(int pid) { |
1193 ChannelImpl::SetGlobalPid(pid); | 1189 ChannelImpl::SetGlobalPid(pid); |
1194 } | 1190 } |
1195 #endif // OS_LINUX | 1191 #endif // OS_LINUX |
1196 | 1192 |
1197 } // namespace IPC | 1193 } // namespace IPC |
OLD | NEW |