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 "tools/android/forwarder2/host_controller.h" | 5 #include "tools/android/forwarder2/host_controller.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | |
10 #include "base/bind.h" | 9 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
12 #include "base/logging.h" | 11 #include "base/logging.h" |
13 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
14 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
15 #include "tools/android/forwarder2/command.h" | 14 #include "tools/android/forwarder2/command.h" |
16 #include "tools/android/forwarder2/forwarder.h" | 15 #include "tools/android/forwarder2/forwarder.h" |
17 #include "tools/android/forwarder2/socket.h" | 16 #include "tools/android/forwarder2/socket.h" |
18 | 17 |
19 namespace forwarder2 { | 18 namespace forwarder2 { |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 LOG(ERROR) << "Could not send unmap command for port " << device_port_; | 161 LOG(ERROR) << "Could not send unmap command for port " << device_port_; |
163 return; | 162 return; |
164 } | 163 } |
165 if (!ReceivedCommand(command::UNLISTEN_SUCCESS, &socket)) { | 164 if (!ReceivedCommand(command::UNLISTEN_SUCCESS, &socket)) { |
166 LOG(ERROR) << "Unamp command failed for port " << device_port_; | 165 LOG(ERROR) << "Unamp command failed for port " << device_port_; |
167 return; | 166 return; |
168 } | 167 } |
169 } | 168 } |
170 | 169 |
171 } // namespace forwarder2 | 170 } // namespace forwarder2 |
OLD | NEW |