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

Unified Diff: mojo/embedder/platform_handle.h

Issue 553283002: IPC::ChannelMojo: Introduce IPC::MojoBootstrap for Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added ChannelMojoHost 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
« ipc/mojo/ipc_channel_mojo_host.h ('K') | « ipc/mojo/ipc_mojo_perftest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/embedder/platform_handle.h
diff --git a/mojo/embedder/platform_handle.h b/mojo/embedder/platform_handle.h
index 39da4a9624965abbffd83e19685544e9bcc2c218..e127fe810db2cc808bd1608a7afa2b8f760cad3d 100644
--- a/mojo/embedder/platform_handle.h
+++ b/mojo/embedder/platform_handle.h
@@ -5,6 +5,7 @@
#ifndef MOJO_EMBEDDER_PLATFORM_HANDLE_H_
#define MOJO_EMBEDDER_PLATFORM_HANDLE_H_
+#include "base/files/platform_file.h"
#include "build/build_config.h"
#include "mojo/system/system_impl_export.h"
@@ -21,6 +22,7 @@ struct MOJO_SYSTEM_IMPL_EXPORT PlatformHandle {
explicit PlatformHandle(int fd) : fd(fd) {}
void CloseIfNecessary();
+ base::PlatformFile ToPlaformFile() const { return fd; }
bool is_valid() const { return fd != -1; }
@@ -32,6 +34,7 @@ struct MOJO_SYSTEM_IMPL_EXPORT PlatformHandle {
explicit PlatformHandle(HANDLE handle) : handle(handle) {}
void CloseIfNecessary();
+ base::PlatformFile ToPlaformFile() const { return handle; }
bool is_valid() const { return handle != INVALID_HANDLE_VALUE; }
« ipc/mojo/ipc_channel_mojo_host.h ('K') | « ipc/mojo/ipc_mojo_perftest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698