OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef IPC_IPC_PLATFORM_FILE_H_ | 5 #ifndef IPC_IPC_PLATFORM_FILE_H_ |
6 #define IPC_IPC_PLATFORM_FILE_H_ | 6 #define IPC_IPC_PLATFORM_FILE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
10 #include "base/process.h" | 10 #include "base/process/process.h" |
11 #include "ipc/ipc_export.h" | 11 #include "ipc/ipc_export.h" |
12 | 12 |
13 #if defined(OS_POSIX) | 13 #if defined(OS_POSIX) |
14 #include "base/file_descriptor_posix.h" | 14 #include "base/file_descriptor_posix.h" |
15 #endif | 15 #endif |
16 | 16 |
17 namespace IPC { | 17 namespace IPC { |
18 | 18 |
19 #if defined(OS_WIN) | 19 #if defined(OS_WIN) |
20 typedef base::PlatformFile PlatformFileForTransit; | 20 typedef base::PlatformFile PlatformFileForTransit; |
(...skipping 20 matching lines...) Expand all Loading... |
41 | 41 |
42 // Returns a file handle equivalent to |file| that can be used in |process|. | 42 // Returns a file handle equivalent to |file| that can be used in |process|. |
43 IPC_EXPORT PlatformFileForTransit GetFileHandleForProcess( | 43 IPC_EXPORT PlatformFileForTransit GetFileHandleForProcess( |
44 base::PlatformFile file, | 44 base::PlatformFile file, |
45 base::ProcessHandle process, | 45 base::ProcessHandle process, |
46 bool close_source_handle); | 46 bool close_source_handle); |
47 | 47 |
48 } // namespace IPC | 48 } // namespace IPC |
49 | 49 |
50 #endif // IPC_IPC_PLATFORM_FILE_H_ | 50 #endif // IPC_IPC_PLATFORM_FILE_H_ |
OLD | NEW |