Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: ipc/ipc_channel_posix.cc

Issue 5870003: Revert 69341 - Fix up problem with uninitialized member variable.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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),
302 factory_(this) { 301 factory_(this) {
303 // Check to see if we want to implement using domain sockets. 302 // Check to see if we want to implement using domain sockets.
304 bool uses_domain_socket = false; 303 bool uses_domain_socket = false;
305 bool listening_socket = false; 304 bool listening_socket = false;
306 if (mode_ == MODE_NAMED_SERVER) { 305 if (mode_ == MODE_NAMED_SERVER) {
307 uses_domain_socket = true; 306 uses_domain_socket = true;
308 listening_socket = true; 307 listening_socket = true;
309 mode_ = MODE_SERVER; 308 mode_ = MODE_SERVER;
310 } else if (mode_ == MODE_NAMED_CLIENT) { 309 } else if (mode_ == MODE_NAMED_CLIENT) {
311 uses_domain_socket = true; 310 uses_domain_socket = true;
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
1140 1139
1141 bool Channel::HasAcceptedConnection() const { 1140 bool Channel::HasAcceptedConnection() const {
1142 return channel_impl_->HasAcceptedConnection(); 1141 return channel_impl_->HasAcceptedConnection();
1143 } 1142 }
1144 1143
1145 void Channel::ResetToAcceptingConnectionState() { 1144 void Channel::ResetToAcceptingConnectionState() {
1146 channel_impl_->ResetToAcceptingConnectionState(); 1145 channel_impl_->ResetToAcceptingConnectionState();
1147 } 1146 }
1148 1147
1149 } // namespace IPC 1148 } // namespace IPC
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698