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

Unified Diff: net/socket/socket_libevent.h

Issue 509133002: Raw SocketDescriptor variant of UnixDomainServerSocket::Accept (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add ReleaseSocketDescriptor to UnixDomainClientSocket class 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/socket/socket_libevent.cc » ('j') | net/socket/unix_domain_client_socket_posix.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/socket_libevent.h
diff --git a/net/socket/socket_libevent.h b/net/socket/socket_libevent.h
index 98eaf92de0c3afd8466e77aaccaedfd404245ecc..0415780a4def85a1d0f1d5800d3cfee09d91dcd3 100644
--- a/net/socket/socket_libevent.h
+++ b/net/socket/socket_libevent.h
@@ -34,6 +34,8 @@ class SocketLibevent : public base::MessageLoopForIO::Watcher {
// Takes ownership of |socket|.
int AdoptConnectedSocket(SocketDescriptor socket,
const SockaddrStorage& peer_address);
+ // Releases ownership of |socket_fd_| to caller.
+ SocketDescriptor ReleaseConnectedSocket();
int Bind(const SockaddrStorage& address);
« no previous file with comments | « no previous file | net/socket/socket_libevent.cc » ('j') | net/socket/unix_domain_client_socket_posix.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698