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 <errno.h> | 5 #include <errno.h> |
6 #include <signal.h> | 6 #include <signal.h> |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <unistd.h> | 9 #include <unistd.h> |
10 | 10 |
11 #include <vector> | 11 #include <vector> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/eintr_wrapper.h" | |
16 #include "base/file_path.h" | 15 #include "base/file_path.h" |
17 #include "base/file_util.h" | 16 #include "base/file_util.h" |
18 #include "base/logging.h" | 17 #include "base/logging.h" |
19 #include "base/memory/scoped_vector.h" | 18 #include "base/memory/scoped_vector.h" |
| 19 #include "base/posix/eintr_wrapper.h" |
20 #include "base/safe_strerror_posix.h" | 20 #include "base/safe_strerror_posix.h" |
21 #include "base/string_number_conversions.h" | 21 #include "base/string_number_conversions.h" |
22 #include "base/string_piece.h" | 22 #include "base/string_piece.h" |
23 #include "base/string_split.h" | 23 #include "base/string_split.h" |
24 #include "base/string_util.h" | 24 #include "base/string_util.h" |
25 #include "base/stringprintf.h" | 25 #include "base/stringprintf.h" |
26 #include "tools/android/forwarder2/common.h" | 26 #include "tools/android/forwarder2/common.h" |
27 #include "tools/android/forwarder2/daemon.h" | 27 #include "tools/android/forwarder2/daemon.h" |
28 #include "tools/android/forwarder2/host_controller.h" | 28 #include "tools/android/forwarder2/host_controller.h" |
29 #include "tools/android/forwarder2/pipe_notifier.h" | 29 #include "tools/android/forwarder2/pipe_notifier.h" |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 printf("%s\n", buf); | 273 printf("%s\n", buf); |
274 return 0; | 274 return 0; |
275 } | 275 } |
276 | 276 |
277 } // namespace | 277 } // namespace |
278 } // namespace forwarder2 | 278 } // namespace forwarder2 |
279 | 279 |
280 int main(int argc, char** argv) { | 280 int main(int argc, char** argv) { |
281 return forwarder2::RunHostForwarder(argc, argv); | 281 return forwarder2::RunHostForwarder(argc, argv); |
282 } | 282 } |
OLD | NEW |