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

Unified Diff: chrome/browser/resources/net_internals/spdy_view.js

Issue 9696045: Expose a spdy session's pooled aliases in the net-internals page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | net/spdy/spdy_session.cc » ('j') | net/spdy/spdy_session.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/net_internals/spdy_view.js
diff --git a/chrome/browser/resources/net_internals/spdy_view.js b/chrome/browser/resources/net_internals/spdy_view.js
index cf5ddbf6d77ae7ca4a497903d1a2adfcd2df8bd2..b8631048b1f32b1e86ef96920e18d8fb76b295f4 100644
--- a/chrome/browser/resources/net_internals/spdy_view.js
+++ b/chrome/browser/resources/net_internals/spdy_view.js
@@ -157,7 +157,13 @@ var SpdyView = (function() {
var session = spdySessions[i];
tablePrinter.addRow();
- tablePrinter.addCell(session.host_port_pair);
+ var host = session.host_port_pair;
+ if (session.aliases) {
+ for (var j = 0; j < session.aliases.length; j++) {
+ host = host + ' ' + session.aliases[j];
eroman 2012/03/13 20:08:42 This can be simplified using string.join(): var h
Ryan Hamilton 2012/03/13 21:55:37 Done. Totally agree with you, and as it happens,
+ }
+ }
+ tablePrinter.addCell(host);
tablePrinter.addCell(session.proxy);
var idCell = tablePrinter.addCell(session.source_id);
« no previous file with comments | « no previous file | net/spdy/spdy_session.cc » ('j') | net/spdy/spdy_session.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698