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; } |