Chromium Code Reviews| Index: chrome/browser/devtools/port_forwarding_controller.h |
| diff --git a/chrome/browser/devtools/port_forwarding_controller.h b/chrome/browser/devtools/port_forwarding_controller.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..673eb801ddcce3da76b5ff82f509cad9ba9af0c9 |
| --- /dev/null |
| +++ b/chrome/browser/devtools/port_forwarding_controller.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_DEVTOOLS_PORT_FORWARDING_CONTROLLER_H_ |
| +#define CHROME_BROWSER_DEVTOOLS_PORT_FORWARDING_CONTROLLER_H_ |
| + |
| +#include <map> |
| + |
| +#include "chrome/browser/devtools/devtools_adb_bridge.h" |
| + |
| +class PrefService; |
| + |
| +class PortForwardingController { |
| + public: |
| + PortForwardingController( |
| + scoped_refptr<DevToolsAdbBridge> bridge, |
| + PrefService* pref_service); |
| + |
| + virtual ~PortForwardingController(); |
|
pfeldman
2013/08/30 09:31:15
Does it have to be virtual?
Vladislav Kaznacheev
2013/08/30 09:43:44
Done.
|
| + |
| + void UpdateDeviceList(const DevToolsAdbBridge::RemoteDevices& devices); |
| + |
| + private: |
| + class Connection; |
| + typedef std::map<std::string, Connection*> Registry; |
| + |
| + scoped_refptr<DevToolsAdbBridge> bridge_; |
| + PrefService* pref_service_; |
| + Registry registry_; |
|
pfeldman
2013/08/30 09:31:15
DISALLOW_COPY_AND_ASSIGN is missing.
Vladislav Kaznacheev
2013/08/30 09:43:44
Done.
|
| +}; |
| + |
| +#endif // CHROME_BROWSER_DEVTOOLS_PORT_FORWARDING_CONTROLLER_H_ |