diff options
Diffstat (limited to 'ipc/ipc_channel_posix.h')
-rw-r--r-- | ipc/ipc_channel_posix.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ipc/ipc_channel_posix.h b/ipc/ipc_channel_posix.h index 06c545c..e141998 100644 --- a/ipc/ipc_channel_posix.h +++ b/ipc/ipc_channel_posix.h @@ -57,7 +57,9 @@ class Channel::ChannelImpl : public MessageLoopForIO::Watcher { void Close(); void set_listener(Listener* listener) { listener_ = listener; } bool Send(Message* message); - int GetClientFileDescriptor() const; + int GetClientFileDescriptor(); + int TakeClientFileDescriptor(); + void CloseClientFileDescriptor(); bool AcceptsConnections() const; bool HasAcceptedConnection() const; bool GetClientEuid(uid_t* client_euid) const; @@ -109,6 +111,7 @@ class Channel::ChannelImpl : public MessageLoopForIO::Watcher { // For a server, the client end of our socketpair() -- the other end of our // pipe_ that is passed to the client. int client_pipe_; + base::Lock client_pipe_lock_; // Lock that protects |client_pipe_|. #if defined(IPC_USES_READWRITE) // Linux/BSD use a dedicated socketpair() for passing file descriptors. |