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 "chrome/browser/extensions/api/messaging/native_process_launcher.h" | 5 #include "chrome/browser/extensions/api/messaging/native_process_launcher.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/eintr_wrapper.h" | |
9 #include "base/file_util.h" | 8 #include "base/file_util.h" |
10 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/posix/eintr_wrapper.h" |
11 #include "base/process_util.h" | 11 #include "base/process_util.h" |
12 | 12 |
13 namespace extensions { | 13 namespace extensions { |
14 | 14 |
15 bool NativeProcessLauncher::LaunchNativeProcess( | 15 bool NativeProcessLauncher::LaunchNativeProcess( |
16 const FilePath& path, | 16 const FilePath& path, |
17 base::ProcessHandle* native_process_handle, | 17 base::ProcessHandle* native_process_handle, |
18 NativeMessageProcessHost::FileHandle* read_file, | 18 NativeMessageProcessHost::FileHandle* read_file, |
19 NativeMessageProcessHost::FileHandle* write_file) const { | 19 NativeMessageProcessHost::FileHandle* write_file) const { |
20 base::FileHandleMappingVector fd_map; | 20 base::FileHandleMappingVector fd_map; |
(...skipping 28 matching lines...) Expand all Loading... |
49 write_pipe_read_fd.reset(); | 49 write_pipe_read_fd.reset(); |
50 read_pipe_write_fd.reset(); | 50 read_pipe_write_fd.reset(); |
51 | 51 |
52 *read_file = *read_pipe_read_fd.release(); | 52 *read_file = *read_pipe_read_fd.release(); |
53 *write_file = *write_pipe_write_fd.release(); | 53 *write_file = *write_pipe_write_fd.release(); |
54 | 54 |
55 return true; | 55 return true; |
56 } | 56 } |
57 | 57 |
58 } // namespace extensions | 58 } // namespace extensions |
OLD | NEW |