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

Side by Side Diff: net/socket/unix_domain_client_socket_posix.cc

Issue 509133002: Raw SocketDescriptor variant of UnixDomainServerSocket::Accept (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nits; waiting on mmenke for broader comments. Created 6 years, 3 months 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "net/socket/unix_domain_client_socket_posix.h" 5 #include "net/socket/unix_domain_client_socket_posix.h"
6 6
7 #include <sys/socket.h> 7 #include <sys/socket.h>
8 #include <sys/un.h> 8 #include <sys/un.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 int UnixDomainClientSocket::SetReceiveBufferSize(int32 size) { 152 int UnixDomainClientSocket::SetReceiveBufferSize(int32 size) {
153 NOTIMPLEMENTED(); 153 NOTIMPLEMENTED();
154 return ERR_NOT_IMPLEMENTED; 154 return ERR_NOT_IMPLEMENTED;
155 } 155 }
156 156
157 int UnixDomainClientSocket::SetSendBufferSize(int32 size) { 157 int UnixDomainClientSocket::SetSendBufferSize(int32 size) {
158 NOTIMPLEMENTED(); 158 NOTIMPLEMENTED();
159 return ERR_NOT_IMPLEMENTED; 159 return ERR_NOT_IMPLEMENTED;
160 } 160 }
161 161
162 SocketDescriptor UnixDomainClientSocket::ReleaseSocketDescriptor() {
163 if (!socket_)
164 return kInvalidSocket;
165
166 SocketDescriptor socket_fd = socket_->ReleaseConnectedSocket();
mmenke 2014/09/03 14:56:46 Should use a consistent temp name here and in Rele
Chris Masone 2014/09/03 15:57:11 Done.
167 socket_.reset();
168 return socket_fd;
169 }
170
162 } // namespace net 171 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698