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/chromeos/process_proxy/process_proxy.h" | 5 #include "chrome/browser/chromeos/process_proxy/process_proxy.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <sys/ioctl.h> | 9 #include <sys/ioctl.h> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/eintr_wrapper.h" | |
14 #include "base/file_util.h" | 13 #include "base/file_util.h" |
| 14 #include "base/posix/eintr_wrapper.h" |
15 #include "base/process_util.h" | 15 #include "base/process_util.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/threading/thread.h" | 17 #include "base/threading/thread.h" |
18 #include "chrome/browser/chromeos/process_proxy/process_output_watcher.h" | 18 #include "chrome/browser/chromeos/process_proxy/process_output_watcher.h" |
19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 enum PipeEnd { | 23 enum PipeEnd { |
24 PIPE_END_READ, | 24 PIPE_END_READ, |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 | 240 |
241 void ProcessProxy::ClearAllFdPairs() { | 241 void ProcessProxy::ClearAllFdPairs() { |
242 ClearFdPair(pt_pair_); | 242 ClearFdPair(pt_pair_); |
243 ClearFdPair(shutdown_pipe_); | 243 ClearFdPair(shutdown_pipe_); |
244 } | 244 } |
245 | 245 |
246 void ProcessProxy::ClearFdPair(int* pipe) { | 246 void ProcessProxy::ClearFdPair(int* pipe) { |
247 pipe[PIPE_END_READ] = kInvalidFd; | 247 pipe[PIPE_END_READ] = kInvalidFd; |
248 pipe[PIPE_END_WRITE] = kInvalidFd; | 248 pipe[PIPE_END_WRITE] = kInvalidFd; |
249 } | 249 } |
OLD | NEW |