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

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: Addressed comments 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
« no previous file with comments | « content/child/mojo/mojo_application.cc ('k') | ipc/mojo/ipc_channel_mojo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
};
« no previous file with comments | « content/child/mojo/mojo_application.cc ('k') | ipc/mojo/ipc_channel_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698