| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "build/build_config.h" |
| 5 #include "ipc/ipc_platform_file.h" | 6 #include "ipc/ipc_platform_file.h" |
| 6 | 7 |
| 7 #if defined(OS_POSIX) | 8 #if defined(OS_POSIX) |
| 8 #include <unistd.h> | 9 #include <unistd.h> |
| 9 #endif | 10 #endif |
| 10 | 11 |
| 11 namespace IPC { | 12 namespace IPC { |
| 12 | 13 |
| 13 PlatformFileForTransit GetFileHandleForProcess(base::PlatformFile handle, | 14 PlatformFileForTransit GetFileHandleForProcess(base::PlatformFile handle, |
| 14 base::ProcessHandle process, | 15 base::ProcessHandle process, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 44 #endif | 45 #endif |
| 45 return out_handle; | 46 return out_handle; |
| 46 } | 47 } |
| 47 | 48 |
| 48 PlatformFileForTransit TakeFileHandleForProcess(base::File file, | 49 PlatformFileForTransit TakeFileHandleForProcess(base::File file, |
| 49 base::ProcessHandle process) { | 50 base::ProcessHandle process) { |
| 50 return GetFileHandleForProcess(file.TakePlatformFile(), process, true); | 51 return GetFileHandleForProcess(file.TakePlatformFile(), process, true); |
| 51 } | 52 } |
| 52 | 53 |
| 53 } // namespace IPC | 54 } // namespace IPC |
| OLD | NEW |