| 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 <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
| 15 #include "tools/android/forwarder2/command.h" | 15 #include "tools/android/forwarder2/command.h" |
| 16 #include "tools/android/forwarder2/forwarder.h" | 16 #include "tools/android/forwarder2/forwarder.h" |
| 17 #include "tools/android/forwarder2/socket.h" | 17 #include "tools/android/forwarder2/socket.h" |
| 18 | 18 |
| 19 namespace forwarder2 { | 19 namespace forwarder2 { |
| 20 | 20 |
| 21 // static | 21 // static |
| 22 std::unique_ptr<HostController> HostController::Create( | 22 std::unique_ptr<HostController> HostController::Create( |
| 23 int device_port, | 23 int device_port, |
| 24 int host_port, | 24 int host_port, |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 LOG(ERROR) << "Could not send unmap command for port " << device_port_; | 160 LOG(ERROR) << "Could not send unmap command for port " << device_port_; |
| 161 return; | 161 return; |
| 162 } | 162 } |
| 163 if (!ReceivedCommand(command::UNLISTEN_SUCCESS, &socket)) { | 163 if (!ReceivedCommand(command::UNLISTEN_SUCCESS, &socket)) { |
| 164 LOG(ERROR) << "Unamp command failed for port " << device_port_; | 164 LOG(ERROR) << "Unamp command failed for port " << device_port_; |
| 165 return; | 165 return; |
| 166 } | 166 } |
| 167 } | 167 } |
| 168 | 168 |
| 169 } // namespace forwarder2 | 169 } // namespace forwarder2 |
| OLD | NEW |