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

Unified Diff: chrome/browser/devtools/devtools_adb_bridge.h

Issue 22685003: Visualize status of port forwarding sockets in chrome:inspect Devices tab (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_protocol.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/devtools/devtools_adb_bridge.h
diff --git a/chrome/browser/devtools/devtools_adb_bridge.h b/chrome/browser/devtools/devtools_adb_bridge.h
index cfd348242ea4cecc3c7615bba4075f9fc07ea450..377c3c80fb7719a9d23f250d4e08492302baaecb 100644
--- a/chrome/browser/devtools/devtools_adb_bridge.h
+++ b/chrome/browser/devtools/devtools_adb_bridge.h
@@ -162,6 +162,9 @@ class DevToolsAdbBridge
class RemoteDevice : public base::RefCounted<RemoteDevice> {
public:
+ typedef int PortStatus;
+ typedef std::map<int, PortStatus> PortStatusMap;
+
explicit RemoteDevice(scoped_refptr<DevToolsAdbBridge> bridge,
scoped_refptr<AndroidDevice> device);
@@ -174,6 +177,11 @@ class DevToolsAdbBridge
browsers_.push_back(browser);
}
+ const PortStatusMap& port_status() { return port_status_; }
+ void set_port_status(const PortStatusMap& port_status) {
+ port_status_ = port_status;
+ }
+
private:
friend class base::RefCounted<RemoteDevice>;
virtual ~RemoteDevice();
@@ -181,6 +189,7 @@ class DevToolsAdbBridge
scoped_refptr<DevToolsAdbBridge> bridge_;
scoped_refptr<AndroidDevice> device_;
RemoteBrowsers browsers_;
+ PortStatusMap port_status_;
DISALLOW_COPY_AND_ASSIGN(RemoteDevice);
};
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698