Chromium Code Reviews| 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> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 26 const DeviceInfoCallback& callback) override; | 26 const DeviceInfoCallback& callback) override; |
| 27 | 27 |
| 28 void OpenSocket(const std::string& serial, | 28 void OpenSocket(const std::string& serial, |
| 29 const std::string& socket_name, | 29 const std::string& socket_name, |
| 30 const SocketCallback& callback) override; | 30 const SocketCallback& callback) override; |
| 31 | 31 |
| 32 void ReleaseDevice(const std::string& serial) override; | 32 void ReleaseDevice(const std::string& serial) override; |
| 33 | 33 |
| 34 void set_release_callback_for_test(const base::Closure& callback); | 34 void set_release_callback_for_test(const base::Closure& callback); |
| 35 | 35 |
| 36 HostPortSet get_targets_for_test() { | |
|
dgozman
2016/08/17 00:22:19
Trivial getters are either one-line or put in .cc
eostroukhov-old
2016/08/17 00:44:22
Done.
| |
| 37 return targets_; | |
| 38 } | |
| 39 | |
| 36 private: | 40 private: |
| 37 ~TCPDeviceProvider() override; | 41 ~TCPDeviceProvider() override; |
| 38 | 42 |
| 39 HostPortSet targets_; | 43 HostPortSet targets_; |
| 40 base::Closure release_callback_; | 44 base::Closure release_callback_; |
| 41 }; | 45 }; |
| 42 | 46 |
| 43 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_TCP_DEVICE_PROVIDER_H_ | 47 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_TCP_DEVICE_PROVIDER_H_ |
| OLD | NEW |