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 #ifndef CHROME_BROWSER_DEVTOOLS_DEVICE_TCP_DEVICE_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVICE_TCP_DEVICE_PROVIDER_H_ |
6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_TCP_DEVICE_PROVIDER_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_TCP_DEVICE_PROVIDER_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <set> | 10 #include <set> |
9 | 11 |
10 #include "chrome/browser/devtools/device/android_device_manager.h" | 12 #include "chrome/browser/devtools/device/android_device_manager.h" |
11 #include "net/base/host_port_pair.h" | 13 #include "net/base/host_port_pair.h" |
12 | 14 |
13 // Instantiate this class only in a test and/or when DEBUG_DEVTOOLS is defined. | 15 // Instantiate this class only in a test and/or when DEBUG_DEVTOOLS is defined. |
14 class TCPDeviceProvider : public AndroidDeviceManager::DeviceProvider { | 16 class TCPDeviceProvider : public AndroidDeviceManager::DeviceProvider { |
15 public: | 17 public: |
16 static scoped_refptr<TCPDeviceProvider> CreateForLocalhost(uint16_t port); | 18 static scoped_refptr<TCPDeviceProvider> CreateForLocalhost(uint16_t port); |
17 | 19 |
(...skipping 14 matching lines...) Expand all Loading... |
32 void set_release_callback_for_test(const base::Closure& callback); | 34 void set_release_callback_for_test(const base::Closure& callback); |
33 | 35 |
34 private: | 36 private: |
35 ~TCPDeviceProvider() override; | 37 ~TCPDeviceProvider() override; |
36 | 38 |
37 HostPortSet targets_; | 39 HostPortSet targets_; |
38 base::Closure release_callback_; | 40 base::Closure release_callback_; |
39 }; | 41 }; |
40 | 42 |
41 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_TCP_DEVICE_PROVIDER_H_ | 43 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_TCP_DEVICE_PROVIDER_H_ |
OLD | NEW |