| 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" | 13 #include "base/strings/stringprintf.h" |
| 14 #include "base/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
| 15 #include "chrome/browser/devtools/device/adb/adb_client_socket.h" | 15 #include "chrome/browser/devtools/device/adb/adb_client_socket.h" |
| 16 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
| 17 #include "net/dns/host_resolver.h" | 17 #include "net/dns/host_resolver.h" |
| 18 #include "net/socket/tcp_client_socket.h" | 18 #include "net/socket/tcp_client_socket.h" |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 const char kDeviceModel[] = "Remote Target"; | 22 const char kDeviceModel[] = "Remote Target"; |
| 23 const char kBrowserName[] = "Target"; | 23 const char kBrowserName[] = "Target"; |
| 24 | 24 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 release_callback_.Run(); | 125 release_callback_.Run(); |
| 126 } | 126 } |
| 127 | 127 |
| 128 void TCPDeviceProvider::set_release_callback_for_test( | 128 void TCPDeviceProvider::set_release_callback_for_test( |
| 129 const base::Closure& callback) { | 129 const base::Closure& callback) { |
| 130 release_callback_ = callback; | 130 release_callback_ = callback; |
| 131 } | 131 } |
| 132 | 132 |
| 133 TCPDeviceProvider::~TCPDeviceProvider() { | 133 TCPDeviceProvider::~TCPDeviceProvider() { |
| 134 } | 134 } |
| OLD | NEW |