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 #ifndef CHROME_BROWSER_CHROMEOS_PROCESS_PROXY_PROCESS_PROXY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_PROCESS_PROXY_PROCESS_PROXY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_PROCESS_PROXY_PROCESS_PROXY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_PROCESS_PROXY_PROCESS_PROXY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <cstdio> | |
10 #include <fcntl.h> | 9 #include <fcntl.h> |
11 #include <signal.h> | 10 #include <signal.h> |
12 | 11 |
| 12 #include <cstdio> |
| 13 #include <string> |
| 14 |
13 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
14 #include "chrome/browser/chromeos/process_proxy/process_output_watcher.h" | 16 #include "chrome/browser/chromeos/process_proxy/process_output_watcher.h" |
15 | 17 |
16 namespace base { | 18 namespace base { |
17 class Thread; | 19 class Thread; |
18 } // namespace base | 20 } // namespace base |
19 | 21 |
20 | 22 |
21 // Proxy to a single ChromeOS process. | 23 // Proxy to a single ChromeOS process. |
22 // This is refcounted. Note that output watcher, when it gets triggered owns a | 24 // This is refcounted. Note that output watcher, when it gets triggered owns a |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 84 |
83 bool watcher_started_; | 85 bool watcher_started_; |
84 | 86 |
85 int pt_pair_[2]; | 87 int pt_pair_[2]; |
86 int shutdown_pipe_[2]; | 88 int shutdown_pipe_[2]; |
87 | 89 |
88 DISALLOW_COPY_AND_ASSIGN(ProcessProxy); | 90 DISALLOW_COPY_AND_ASSIGN(ProcessProxy); |
89 }; | 91 }; |
90 | 92 |
91 #endif // CHROME_BROWSER_CHROMEOS_PROCESS_PROXY_PROCESS_PROXY_H_ | 93 #endif // CHROME_BROWSER_CHROMEOS_PROCESS_PROXY_PROCESS_PROXY_H_ |
OLD | NEW |