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

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

Issue 449883002: DevTools: Removed refcounting from AndroidWebSocket (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DEVICE_PORT_FORWARDING_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVICE_PORT_FORWARDING_CONTROLLER_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_PORT_FORWARDING_CONTROLLER_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_PORT_FORWARDING_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/prefs/pref_change_registrar.h" 10 #include "base/prefs/pref_change_registrar.h"
(...skipping 17 matching lines...) Expand all
28 DevicesStatus DeviceListChanged( 28 DevicesStatus DeviceListChanged(
29 const DevToolsAndroidBridge::RemoteDevices& devices); 29 const DevToolsAndroidBridge::RemoteDevices& devices);
30 30
31 private: 31 private:
32 class Connection; 32 class Connection;
33 typedef std::map<std::string, Connection*> Registry; 33 typedef std::map<std::string, Connection*> Registry;
34 34
35 void OnPrefsChange(); 35 void OnPrefsChange();
36 36
37 void UpdateConnections(); 37 void UpdateConnections();
38 void ShutdownConnections();
39 38
40 Profile* profile_; 39 Profile* profile_;
41 PrefService* pref_service_; 40 PrefService* pref_service_;
42 PrefChangeRegistrar pref_change_registrar_; 41 PrefChangeRegistrar pref_change_registrar_;
43 Registry registry_; 42 Registry registry_;
44 43
45 typedef std::map<int, std::string> ForwardingMap; 44 typedef std::map<int, std::string> ForwardingMap;
46 ForwardingMap forwarding_map_; 45 ForwardingMap forwarding_map_;
47 46
48 DISALLOW_COPY_AND_ASSIGN(PortForwardingController); 47 DISALLOW_COPY_AND_ASSIGN(PortForwardingController);
49 }; 48 };
50 49
51 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_PORT_FORWARDING_CONTROLLER_H_ 50 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_PORT_FORWARDING_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698