1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef IPC_IPC_PLATFORM_FILE_H_
6 #define IPC_IPC_PLATFORM_FILE_H_
9 #include "base/basictypes.h"
11 #include "base/platform_file.h"
14 #include "base/file_descriptor_posix.h"
20 typedef base::PlatformFile PlatformFileForTransit
;
21 #elif defined(OS_POSIX)
22 typedef base::FileDescriptor PlatformFileForTransit
;
25 inline PlatformFileForTransit
InvalidPlatformFileForTransit() {
27 return base::kInvalidPlatformFileValue
;
28 #elif defined(OS_POSIX)
29 return base::FileDescriptor();
33 inline base::PlatformFile
PlatformFileForTransitToPlatformFile(
34 const PlatformFileForTransit
& transit
) {
37 #elif defined(OS_POSIX)
44 #endif // IPC_IPC_PLATFORM_FILE_H_