Index: base/posix/unix_domain_socket_linux.h |
diff --git a/base/posix/unix_domain_socket_linux.h b/base/posix/unix_domain_socket_linux.h |
index 2ba739e1083f9a40d38e402a34da2689327d74b7..d132ca439dc7c82d1c1e888778c996c526defe5f 100644 |
--- a/base/posix/unix_domain_socket_linux.h |
+++ b/base/posix/unix_domain_socket_linux.h |
@@ -19,6 +19,13 @@ namespace base { |
class Pickle; |
+#if !defined(OS_NACL_NONSFI) |
+// Creates a connected pair of UNIX-domain SOCK_SEQPACKET sockets, and passes |
+// ownership of the newly allocated file descriptors to |one| and |two|. |
+// Returns true on success. |
+bool CreateSocketPair(ScopedFD* one, ScopedFD* two); |
mdempsky
2017/04/05 04:50:53
This should be BASE_EXPORT, or alternatively chang
shunhsingou
2017/04/05 05:11:18
Done.
|
+#endif |
+ |
class BASE_EXPORT UnixDomainSocket { |
public: |
// Maximum number of file descriptors that can be read by RecvMsg(). |