Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Unified Diff: ipc/ipc_channel_handle.h

Issue 555503007: Cleanup: Get rid of OS_WIN/OS_POSIX ifdefs from MojoApplication (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ipc/ipc_channel_handle.h
diff --git a/ipc/ipc_channel_handle.h b/ipc/ipc_channel_handle.h
index 1b6fd8ca2059030d11d07391c3c6ead37e162ede..cdac507f9bbd8bb8cf6fd2524d077e1646c12a79 100644
--- a/ipc/ipc_channel_handle.h
+++ b/ipc/ipc_channel_handle.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/files/platform_file.h"
#include "build/build_config.h"
#if defined(OS_POSIX)
@@ -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)
};

Powered by Google App Engine
This is Rietveld 408576698