OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PORT_FORWARDING_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_PORT_FORWARDING_CONTROLLER_H_ |
6 #define CHROME_BROWSER_DEVTOOLS_PORT_FORWARDING_CONTROLLER_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_PORT_FORWARDING_CONTROLLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "chrome/browser/devtools/devtools_adb_bridge.h" | 10 #include "chrome/browser/devtools/devtools_adb_bridge.h" |
11 | 11 |
12 class PrefService; | 12 class PrefService; |
13 | 13 |
14 class PortForwardingController { | 14 class PortForwardingController { |
15 public: | 15 public: |
16 PortForwardingController( | 16 PortForwardingController( |
17 scoped_refptr<DevToolsAdbBridge> bridge, | 17 scoped_refptr<DevToolsAdbBridge> bridge, |
18 PrefService* pref_service); | 18 PrefService* pref_service); |
19 | 19 |
20 ~PortForwardingController(); | 20 ~PortForwardingController(); |
21 | 21 |
22 void UpdateDeviceList(const DevToolsAdbBridge::RemoteDevices& devices); | 22 void UpdateDeviceList(const DevToolsAdbBridge::RemoteDevices& devices); |
23 | 23 |
24 private: | 24 private: |
25 class Connection; | 25 class Connection; |
26 typedef std::map<std::string, Connection*> Registry; | 26 typedef std::map<std::string, Connection* > Registry; |
27 | 27 |
28 scoped_refptr<DevToolsAdbBridge> bridge_; | 28 scoped_refptr<DevToolsAdbBridge> bridge_; |
29 PrefService* pref_service_; | 29 PrefService* pref_service_; |
30 Registry registry_; | 30 Registry registry_; |
31 | 31 |
32 DISALLOW_COPY_AND_ASSIGN(PortForwardingController); | 32 DISALLOW_COPY_AND_ASSIGN(PortForwardingController); |
33 }; | 33 }; |
34 | 34 |
35 #endif // CHROME_BROWSER_DEVTOOLS_PORT_FORWARDING_CONTROLLER_H_ | 35 #endif // CHROME_BROWSER_DEVTOOLS_PORT_FORWARDING_CONTROLLER_H_ |
OLD | NEW |