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/device_controller.h" | 5 #include "tools/android/forwarder2/device_controller.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/basictypes.h" | |
10 #include "base/bind.h" | 9 #include "base/bind.h" |
11 #include "base/callback_helpers.h" | 10 #include "base/callback_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/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
15 #include "base/thread_task_runner_handle.h" | 14 #include "base/thread_task_runner_handle.h" |
16 #include "tools/android/forwarder2/command.h" | 15 #include "tools/android/forwarder2/command.h" |
17 #include "tools/android/forwarder2/device_listener.h" | 16 #include "tools/android/forwarder2/device_listener.h" |
18 #include "tools/android/forwarder2/socket.h" | 17 #include "tools/android/forwarder2/socket.h" |
19 #include "tools/android/forwarder2/util.h" | 18 #include "tools/android/forwarder2/util.h" |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 return; | 147 return; |
149 } | 148 } |
150 DCHECK(controller->construction_task_runner_->RunsTasksOnCurrentThread()); | 149 DCHECK(controller->construction_task_runner_->RunsTasksOnCurrentThread()); |
151 bool listener_did_exist = DeleteRefCountedValueInMap( | 150 bool listener_did_exist = DeleteRefCountedValueInMap( |
152 listener->listener_port(), &controller->listeners_); | 151 listener->listener_port(), &controller->listeners_); |
153 DCHECK(listener_did_exist); | 152 DCHECK(listener_did_exist); |
154 // Note that |listener| was deleted by DeleteRefCountedValueInMap(). | 153 // Note that |listener| was deleted by DeleteRefCountedValueInMap(). |
155 } | 154 } |
156 | 155 |
157 } // namespace forwarder | 156 } // namespace forwarder |
OLD | NEW |