Index: ipc/ipc_channel_handle.h |
diff --git a/ipc/ipc_channel_handle.h b/ipc/ipc_channel_handle.h |
index 1b6fd8ca2059030d11d07391c3c6ead37e162ede..3e8240ecfbe20df0540c54af43a38128d9b3852a 100644 |
--- a/ipc/ipc_channel_handle.h |
+++ b/ipc/ipc_channel_handle.h |
@@ -8,6 +8,7 @@ |
#include <string> |
#include "build/build_config.h" |
+#include "base/files/platform_file.h" |
viettrungluu
2014/09/12 16:39:07
nit: include order wrong
|
#if defined(OS_POSIX) |
#include "base/file_descriptor_posix.h" |
@@ -51,6 +52,8 @@ struct ChannelHandle { |
std::string name; |
#if defined(OS_POSIX) |
base::FileDescriptor socket; |
+ |
+ base::PlatformFile platform_file() const { return socket.fd; } |
#elif defined(OS_WIN) |
// A simple container to automatically initialize pipe handle |
struct PipeHandle { |
@@ -59,6 +62,8 @@ struct ChannelHandle { |
HANDLE handle; |
}; |
PipeHandle pipe; |
+ |
+ base::PlatformFile platform_file() const { return pipe.handle; } |
#endif // defined (OS_WIN) |
}; |