| 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 59bb8840b9df58e6903b22a77561ccc739e3bac4..5281875d7b333d333047fc6eedd3e9083a9980fe 100644
|
| --- a/base/posix/unix_domain_socket_linux.h
|
| +++ b/base/posix/unix_domain_socket_linux.h
|
| @@ -21,10 +21,12 @@ class BASE_EXPORT UnixDomainSocket {
|
| // Maximum number of file descriptors that can be read by RecvMsg().
|
| static const size_t kMaxFileDescriptors;
|
|
|
| +#if !defined(__native_client_nonsfi__)
|
| // Use to enable receiving process IDs in RecvMsgWithPid. Should be called on
|
| // the receiving socket (i.e., the socket passed to RecvMsgWithPid). Returns
|
| // true if successful.
|
| static bool EnableReceiveProcessId(int fd);
|
| +#endif // !defined(__native_client_nonsfi__)
|
|
|
| // Use sendmsg to write the given msg and include a vector of file
|
| // descriptors. Returns true if successful.
|
| @@ -50,6 +52,7 @@ class BASE_EXPORT UnixDomainSocket {
|
| ScopedVector<base::ScopedFD>* fds,
|
| base::ProcessId* pid);
|
|
|
| +#if !defined(__native_client_nonsfi__)
|
| // Perform a sendmsg/recvmsg pair.
|
| // 1. This process creates a UNIX SEQPACKET socketpair. Using
|
| // connection-oriented sockets (SEQPACKET or STREAM) is critical here,
|
| @@ -82,6 +85,7 @@ class BASE_EXPORT UnixDomainSocket {
|
| int recvmsg_flags,
|
| int* result_fd,
|
| const Pickle& request);
|
| +#endif // !defined(__native_client_nonsfi__)
|
| private:
|
| // Similar to RecvMsg, but allows to specify |flags| for recvmsg(2).
|
| static ssize_t RecvMsgWithFlags(int fd,
|
|
|