OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 message_send_bytes_written_(0), | 291 message_send_bytes_written_(0), |
292 server_listen_pipe_(-1), | 292 server_listen_pipe_(-1), |
293 pipe_(-1), | 293 pipe_(-1), |
294 client_pipe_(-1), | 294 client_pipe_(-1), |
295 #if defined(IPC_USES_READWRITE) | 295 #if defined(IPC_USES_READWRITE) |
296 fd_pipe_(-1), | 296 fd_pipe_(-1), |
297 remote_fd_pipe_(-1), | 297 remote_fd_pipe_(-1), |
298 #endif // IPC_USES_READWRITE | 298 #endif // IPC_USES_READWRITE |
299 pipe_name_(channel_handle.name), | 299 pipe_name_(channel_handle.name), |
300 listener_(listener), | 300 listener_(listener), |
| 301 must_unlink_(false), |
301 factory_(this) { | 302 factory_(this) { |
302 // Check to see if we want to implement using domain sockets. | 303 // Check to see if we want to implement using domain sockets. |
303 bool uses_domain_socket = false; | 304 bool uses_domain_socket = false; |
304 bool listening_socket = false; | 305 bool listening_socket = false; |
305 if (mode_ == MODE_NAMED_SERVER) { | 306 if (mode_ == MODE_NAMED_SERVER) { |
306 uses_domain_socket = true; | 307 uses_domain_socket = true; |
307 listening_socket = true; | 308 listening_socket = true; |
308 mode_ = MODE_SERVER; | 309 mode_ = MODE_SERVER; |
309 } else if (mode_ == MODE_NAMED_CLIENT) { | 310 } else if (mode_ == MODE_NAMED_CLIENT) { |
310 uses_domain_socket = true; | 311 uses_domain_socket = true; |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1139 | 1140 |
1140 bool Channel::HasAcceptedConnection() const { | 1141 bool Channel::HasAcceptedConnection() const { |
1141 return channel_impl_->HasAcceptedConnection(); | 1142 return channel_impl_->HasAcceptedConnection(); |
1142 } | 1143 } |
1143 | 1144 |
1144 void Channel::ResetToAcceptingConnectionState() { | 1145 void Channel::ResetToAcceptingConnectionState() { |
1145 channel_impl_->ResetToAcceptingConnectionState(); | 1146 channel_impl_->ResetToAcceptingConnectionState(); |
1146 } | 1147 } |
1147 | 1148 |
1148 } // namespace IPC | 1149 } // namespace IPC |
OLD | NEW |