OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/devtools/device/tcp_device_provider.h" | 5 #include "chrome/browser/devtools/device/tcp_device_provider.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
13 #include "base/strings/stringprintf.h" | |
14 #include "base/threading/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
15 #include "chrome/browser/devtools/device/adb/adb_client_socket.h" | 14 #include "chrome/browser/devtools/device/adb/adb_client_socket.h" |
16 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
17 #include "net/dns/host_resolver.h" | 16 #include "net/dns/host_resolver.h" |
18 #include "net/log/net_log_source.h" | 17 #include "net/log/net_log_source.h" |
19 #include "net/log/net_log_with_source.h" | 18 #include "net/log/net_log_with_source.h" |
20 #include "net/socket/tcp_client_socket.h" | 19 #include "net/socket/tcp_client_socket.h" |
21 | 20 |
22 namespace { | 21 namespace { |
23 | 22 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 release_callback_.Run(); | 127 release_callback_.Run(); |
129 } | 128 } |
130 | 129 |
131 void TCPDeviceProvider::set_release_callback_for_test( | 130 void TCPDeviceProvider::set_release_callback_for_test( |
132 const base::Closure& callback) { | 131 const base::Closure& callback) { |
133 release_callback_ = callback; | 132 release_callback_ = callback; |
134 } | 133 } |
135 | 134 |
136 TCPDeviceProvider::~TCPDeviceProvider() { | 135 TCPDeviceProvider::~TCPDeviceProvider() { |
137 } | 136 } |
OLD | NEW |