diff options
author | rvargas@chromium.org <rvargas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-25 06:01:48 +0000 |
---|---|---|
committer | rvargas@chromium.org <rvargas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-25 06:01:48 +0000 |
commit | 008e3b3ce883855afaaeb0ea150594c09c8877f1 (patch) | |
tree | 27f7cd3f5e0bc46445b4cd9432304168abb2bd06 /ipc | |
parent | 0356f554c956d598a2a04c3bfd4d7826781f722f (diff) | |
download | chromium_src-008e3b3ce883855afaaeb0ea150594c09c8877f1.zip chromium_src-008e3b3ce883855afaaeb0ea150594c09c8877f1.tar.gz chromium_src-008e3b3ce883855afaaeb0ea150594c09c8877f1.tar.bz2 |
Remove PlatformFile from spell checker
BUG=322664
Review URL: https://codereview.chromium.org/209193002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259163 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/ipc_platform_file.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ipc/ipc_platform_file.h b/ipc/ipc_platform_file.h index 8fb1a39..95b66b7 100644 --- a/ipc/ipc_platform_file.h +++ b/ipc/ipc_platform_file.h @@ -40,6 +40,15 @@ inline base::PlatformFile PlatformFileForTransitToPlatformFile( #endif } +inline base::File PlatformFileForTransitToFile( + const PlatformFileForTransit& transit) { +#if defined(OS_WIN) + return base::File(transit); +#elif defined(OS_POSIX) + return base::File(transit.fd); +#endif +} + // Returns a file handle equivalent to |file| that can be used in |process|. IPC_EXPORT PlatformFileForTransit GetFileHandleForProcess( base::PlatformFile file, |