Index: ipc/ipc_channel_posix.h |
diff --git a/ipc/ipc_channel_posix.h b/ipc/ipc_channel_posix.h |
index a235739286fe061b6f25218ba74592a39eb85e71..91ff576e2675ee63f8c37974da258b16f0183dcc 100644 |
--- a/ipc/ipc_channel_posix.h |
+++ b/ipc/ipc_channel_posix.h |
@@ -14,6 +14,7 @@ |
#include <string> |
#include <vector> |
+#include "base/files/scoped_file.h" |
#include "base/message_loop/message_loop.h" |
#include "base/process/process.h" |
#include "ipc/file_descriptor_set_posix.h" |
@@ -153,20 +154,20 @@ class IPC_EXPORT ChannelPosix : public Channel, |
// File descriptor we're listening on for new connections if we listen |
// for connections. |
- int server_listen_pipe_; |
+ base::ScopedFD server_listen_pipe_; |
// The pipe used for communication. |
- int pipe_; |
+ base::ScopedFD pipe_; |
// 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::ScopedFD client_pipe_; |
mutable 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. |
- int fd_pipe_; |
- int remote_fd_pipe_; |
+ base::ScopedFD fd_pipe_; |
+ base::ScopedFD remote_fd_pipe_; |
#endif |
// The "name" of our pipe. On Windows this is the global identifier for |