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

Side by Side 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: Fix eroman's comments 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | net/spdy/spdy_session.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 /** 5 /**
6 * This view displays a summary of the state of each SPDY sessions, and 6 * This view displays a summary of the state of each SPDY sessions, and
7 * has links to display them in the events tab. 7 * has links to display them in the events tab.
8 */ 8 */
9 var SpdyView = (function() { 9 var SpdyView = (function() {
10 'use strict'; 10 'use strict';
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 tablePrinter.addHeaderCell('Received frames'); 150 tablePrinter.addHeaderCell('Received frames');
151 tablePrinter.addHeaderCell('Secure'); 151 tablePrinter.addHeaderCell('Secure');
152 tablePrinter.addHeaderCell('Sent settings'); 152 tablePrinter.addHeaderCell('Sent settings');
153 tablePrinter.addHeaderCell('Received settings'); 153 tablePrinter.addHeaderCell('Received settings');
154 tablePrinter.addHeaderCell('Error'); 154 tablePrinter.addHeaderCell('Error');
155 155
156 for (var i = 0; i < spdySessions.length; i++) { 156 for (var i = 0; i < spdySessions.length; i++) {
157 var session = spdySessions[i]; 157 var session = spdySessions[i];
158 tablePrinter.addRow(); 158 tablePrinter.addRow();
159 159
160 tablePrinter.addCell(session.host_port_pair); 160 var host = session.host_port_pair;
161 if (session.aliases) {
eroman 2012/03/13 23:15:58 minor-nit: I suggest removing the curlies, for con
162 host += ' ' + session.aliases.join(' ');
163 }
164 tablePrinter.addCell(host);
161 tablePrinter.addCell(session.proxy); 165 tablePrinter.addCell(session.proxy);
162 166
163 var idCell = tablePrinter.addCell(session.source_id); 167 var idCell = tablePrinter.addCell(session.source_id);
164 idCell.link = '#events&q=id:' + session.source_id; 168 idCell.link = '#events&q=id:' + session.source_id;
165 169
166 tablePrinter.addCell(session.protocol_negotiated); 170 tablePrinter.addCell(session.protocol_negotiated);
167 tablePrinter.addCell(session.active_streams); 171 tablePrinter.addCell(session.active_streams);
168 tablePrinter.addCell(session.unclaimed_pushed_streams); 172 tablePrinter.addCell(session.unclaimed_pushed_streams);
169 tablePrinter.addCell(session.max_concurrent_streams); 173 tablePrinter.addCell(session.max_concurrent_streams);
170 tablePrinter.addCell(session.streams_initiated_count); 174 tablePrinter.addCell(session.streams_initiated_count);
(...skipping 24 matching lines...) Expand all
195 tablePrinter.addRow(); 199 tablePrinter.addRow();
196 200
197 tablePrinter.addCell(entry.host_port_pair); 201 tablePrinter.addCell(entry.host_port_pair);
198 tablePrinter.addCell(entry.alternate_protocol); 202 tablePrinter.addCell(entry.alternate_protocol);
199 } 203 }
200 return tablePrinter; 204 return tablePrinter;
201 } 205 }
202 206
203 return SpdyView; 207 return SpdyView;
204 })(); 208 })();
OLDNEW
« no previous file with comments | « no previous file | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698