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

Unified Diff: ipc/ipc_platform_file.h

Issue 209193002: Remove PlatformFile from spell checker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert IsEnabled behavior Created 6 years, 9 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 | « chrome/renderer/spellchecker/spelling_engine.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_platform_file.h
diff --git a/ipc/ipc_platform_file.h b/ipc/ipc_platform_file.h
index 8fb1a39335c4aacf163d4820566e5708c8f917af..95b66b7a18d35747db68b44fcbfffc752fd5bfac 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,
« no previous file with comments | « chrome/renderer/spellchecker/spelling_engine.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698