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 <signal.h> | 5 #include <signal.h> |
6 #include <stdio.h> | 6 #include <stdio.h> |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/at_exit.h" | 11 #include "base/at_exit.h" |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/stringprintf.h" | |
17 #include "base/strings/string_piece.h" | 16 #include "base/strings/string_piece.h" |
| 17 #include "base/strings/stringprintf.h" |
18 #include "base/threading/thread.h" | 18 #include "base/threading/thread.h" |
19 #include "tools/android/forwarder2/common.h" | 19 #include "tools/android/forwarder2/common.h" |
20 #include "tools/android/forwarder2/daemon.h" | 20 #include "tools/android/forwarder2/daemon.h" |
21 #include "tools/android/forwarder2/device_controller.h" | 21 #include "tools/android/forwarder2/device_controller.h" |
22 #include "tools/android/forwarder2/pipe_notifier.h" | 22 #include "tools/android/forwarder2/pipe_notifier.h" |
23 | 23 |
24 namespace forwarder2 { | 24 namespace forwarder2 { |
25 namespace { | 25 namespace { |
26 | 26 |
27 // Leaky global instance, accessed from the signal handler. | 27 // Leaky global instance, accessed from the signal handler. |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 return 1; | 171 return 1; |
172 return client_delegate.has_failed(); | 172 return client_delegate.has_failed(); |
173 } | 173 } |
174 | 174 |
175 } // namespace | 175 } // namespace |
176 } // namespace forwarder2 | 176 } // namespace forwarder2 |
177 | 177 |
178 int main(int argc, char** argv) { | 178 int main(int argc, char** argv) { |
179 return forwarder2::RunDeviceForwarder(argc, argv); | 179 return forwarder2::RunDeviceForwarder(argc, argv); |
180 } | 180 } |
OLD | NEW |