Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: chrome/browser/devtools/device/tcp_device_provider.h

Issue 2253683002: [DevTools] Introduce a target discovery preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test added Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698