| 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" | |
| 9 #include "base/files/file.h" | 8 #include "base/files/file.h" |
| 10 #include "base/process/process.h" | 9 #include "base/process/process.h" |
| 11 #include "ipc/ipc_export.h" | 10 #include "ipc/ipc_export.h" |
| 12 | 11 |
| 13 #if defined(OS_POSIX) | 12 #if defined(OS_POSIX) |
| 14 #include "base/file_descriptor_posix.h" | 13 #include "base/file_descriptor_posix.h" |
| 15 #endif | 14 #endif |
| 16 | 15 |
| 17 namespace IPC { | 16 namespace IPC { |
| 18 | 17 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 55 |
| 57 // Returns a file handle equivalent to |file| that can be used in |process|. | 56 // Returns a file handle equivalent to |file| that can be used in |process|. |
| 58 // Note that this function takes ownership of |file|. | 57 // Note that this function takes ownership of |file|. |
| 59 IPC_EXPORT PlatformFileForTransit TakeFileHandleForProcess( | 58 IPC_EXPORT PlatformFileForTransit TakeFileHandleForProcess( |
| 60 base::File file, | 59 base::File file, |
| 61 base::ProcessHandle process); | 60 base::ProcessHandle process); |
| 62 | 61 |
| 63 } // namespace IPC | 62 } // namespace IPC |
| 64 | 63 |
| 65 #endif // IPC_IPC_PLATFORM_FILE_H_ | 64 #endif // IPC_IPC_PLATFORM_FILE_H_ |
| OLD | NEW |