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 <unistd.h> | 7 #include <unistd.h> |
8 | 8 |
9 #include <cstdio> | 9 #include <cstdio> |
10 #include <cstring> | 10 #include <cstring> |
11 #include <string> | 11 #include <string> |
12 #include <utility> | 12 #include <utility> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
17 #include "base/file_util.h" | 17 #include "base/file_util.h" |
18 #include "base/files/file_path.h" | 18 #include "base/files/file_path.h" |
19 #include "base/hash_tables.h" | 19 #include "base/hash_tables.h" |
20 #include "base/logging.h" | 20 #include "base/logging.h" |
21 #include "base/memory/linked_ptr.h" | 21 #include "base/memory/linked_ptr.h" |
22 #include "base/memory/scoped_vector.h" | 22 #include "base/memory/scoped_vector.h" |
23 #include "base/posix/eintr_wrapper.h" | 23 #include "base/posix/eintr_wrapper.h" |
24 #include "base/safe_strerror_posix.h" | 24 #include "base/safe_strerror_posix.h" |
25 #include "base/string_number_conversions.h" | 25 #include "base/strings/string_number_conversions.h" |
26 #include "base/string_util.h" | |
27 #include "base/stringprintf.h" | |
28 #include "base/strings/string_piece.h" | 26 #include "base/strings/string_piece.h" |
29 #include "base/strings/string_split.h" | 27 #include "base/strings/string_split.h" |
| 28 #include "base/strings/string_util.h" |
| 29 #include "base/strings/stringprintf.h" |
30 #include "tools/android/forwarder2/common.h" | 30 #include "tools/android/forwarder2/common.h" |
31 #include "tools/android/forwarder2/daemon.h" | 31 #include "tools/android/forwarder2/daemon.h" |
32 #include "tools/android/forwarder2/host_controller.h" | 32 #include "tools/android/forwarder2/host_controller.h" |
33 #include "tools/android/forwarder2/pipe_notifier.h" | 33 #include "tools/android/forwarder2/pipe_notifier.h" |
34 #include "tools/android/forwarder2/socket.h" | 34 #include "tools/android/forwarder2/socket.h" |
35 | 35 |
36 namespace forwarder2 { | 36 namespace forwarder2 { |
37 namespace { | 37 namespace { |
38 | 38 |
39 const char kLogFilePath[] = "/tmp/host_forwarder_log"; | 39 const char kLogFilePath[] = "/tmp/host_forwarder_log"; |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 | 292 |
293 return client_delegate.has_failed() || daemon_delegate.has_failed(); | 293 return client_delegate.has_failed() || daemon_delegate.has_failed(); |
294 } | 294 } |
295 | 295 |
296 } // namespace | 296 } // namespace |
297 } // namespace forwarder2 | 297 } // namespace forwarder2 |
298 | 298 |
299 int main(int argc, char** argv) { | 299 int main(int argc, char** argv) { |
300 return forwarder2::RunHostForwarder(argc, argv); | 300 return forwarder2::RunHostForwarder(argc, argv); |
301 } | 301 } |
OLD | NEW |