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" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 typedef std::map<int, PortStatus> PortStatusMap; | 43 typedef std::map<int, PortStatus> PortStatusMap; |
44 typedef std::map<std::string, PortStatusMap> DevicesStatus; | 44 typedef std::map<std::string, PortStatusMap> DevicesStatus; |
45 | 45 |
46 DevicesStatus UpdateDeviceList( | 46 DevicesStatus UpdateDeviceList( |
47 const DevToolsAdbBridge::RemoteDevices& devices); | 47 const DevToolsAdbBridge::RemoteDevices& devices); |
48 | 48 |
49 private: | 49 private: |
50 class Connection; | 50 class Connection; |
51 typedef std::map<std::string, Connection* > Registry; | 51 typedef std::map<std::string, Connection* > Registry; |
52 | 52 |
53 scoped_refptr<DevToolsAdbBridge::RefCountedAdbThread> adb_thread_; | 53 scoped_refptr<RefCountedAdbThread> adb_thread_; |
54 PrefService* pref_service_; | 54 PrefService* pref_service_; |
55 Registry registry_; | 55 Registry registry_; |
56 | 56 |
57 DISALLOW_COPY_AND_ASSIGN(PortForwardingController); | 57 DISALLOW_COPY_AND_ASSIGN(PortForwardingController); |
58 }; | 58 }; |
59 | 59 |
60 #endif // CHROME_BROWSER_DEVTOOLS_PORT_FORWARDING_CONTROLLER_H_ | 60 #endif // CHROME_BROWSER_DEVTOOLS_PORT_FORWARDING_CONTROLLER_H_ |
OLD | NEW |