Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_DEVTOOLS_PORT_FORWARDING_CONTROLLER_H_ | |
| 6 #define CHROME_BROWSER_DEVTOOLS_PORT_FORWARDING_CONTROLLER_H_ | |
| 7 | |
| 8 #include <map> | |
| 9 | |
| 10 #include "chrome/browser/devtools/devtools_adb_bridge.h" | |
| 11 | |
| 12 class PrefService; | |
| 13 | |
| 14 class PortForwardingController { | |
| 15 public: | |
| 16 PortForwardingController( | |
| 17 scoped_refptr<DevToolsAdbBridge> bridge, | |
| 18 PrefService* pref_service); | |
| 19 | |
| 20 virtual ~PortForwardingController(); | |
|
pfeldman
2013/08/30 09:31:15
Does it have to be virtual?
Vladislav Kaznacheev
2013/08/30 09:43:44
Done.
| |
| 21 | |
| 22 void UpdateDeviceList(const DevToolsAdbBridge::RemoteDevices& devices); | |
| 23 | |
| 24 private: | |
| 25 class Connection; | |
| 26 typedef std::map<std::string, Connection*> Registry; | |
| 27 | |
| 28 scoped_refptr<DevToolsAdbBridge> bridge_; | |
| 29 PrefService* pref_service_; | |
| 30 Registry registry_; | |
|
pfeldman
2013/08/30 09:31:15
DISALLOW_COPY_AND_ASSIGN is missing.
Vladislav Kaznacheev
2013/08/30 09:43:44
Done.
| |
| 31 }; | |
| 32 | |
| 33 #endif // CHROME_BROWSER_DEVTOOLS_PORT_FORWARDING_CONTROLLER_H_ | |
| OLD | NEW |