Chromium Code Reviews| Index: net/socket/tcp_socket_win.h |
| diff --git a/net/socket/tcp_socket_win.h b/net/socket/tcp_socket_win.h |
| index f886d33c14ed4710b23f38e34d662c98d2d9a0c0..a164f6f0f794b911ac996a96ba115ae693812123 100644 |
| --- a/net/socket/tcp_socket_win.h |
| +++ b/net/socket/tcp_socket_win.h |
| @@ -35,6 +35,8 @@ class NET_EXPORT TCPSocketWin : NON_EXPORTED_BASE(public base::NonThreadSafe), |
| int AdoptConnectedSocket(SOCKET socket, const IPEndPoint& peer_address); |
| int Bind(const IPEndPoint& address); |
| + // Takes ownership of |socket|. |
| + int AdoptBoundSocket(SOCKET socket); |
|
wtc
2014/04/24 23:09:31
IMPORTANT: It would be better to list this method
xiyuan
2014/04/25 20:29:29
Renamed to AdoptListenSocket since the adopted |so
|
| int Listen(int backlog); |
| int Accept(scoped_ptr<TCPSocketWin>* socket, |