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

Side by Side Diff: chrome/browser/devtools/port_forwarding_controller.h

Issue 23583023: Merge TetheringAdbFilter into PortForwardingController::Connection class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/devtools/port_forwarding_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/devtools/port_forwarding_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698