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

Side by Side Diff: chrome/browser/resources/net_internals/sockets_view.js

Issue 9521006: Cleanup some classnames to match style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase off head 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
OLDNEW
1 // Copyright (c) 2011 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 information on the state of all socket pools. 6 * This view displays information on the state of all socket pools.
7 * 7 *
8 * - Shows a summary of the state of each socket pool at the top. 8 * - Shows a summary of the state of each socket pool at the top.
9 * - For each pool with allocated sockets or connect jobs, shows all its 9 * - For each pool with allocated sockets or connect jobs, shows all its
10 * groups with any allocated sockets. 10 * groups with any allocated sockets.
11 */ 11 */
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 onSocketPoolInfoChanged: function(socketPoolInfo) { 58 onSocketPoolInfoChanged: function(socketPoolInfo) {
59 this.socketPoolDiv_.innerHTML = ''; 59 this.socketPoolDiv_.innerHTML = '';
60 this.socketPoolGroupsDiv_.innerHTML = ''; 60 this.socketPoolGroupsDiv_.innerHTML = '';
61 61
62 if (!socketPoolInfo) 62 if (!socketPoolInfo)
63 return false; 63 return false;
64 64
65 var socketPools = SocketPoolWrapper.createArrayFrom(socketPoolInfo); 65 var socketPools = SocketPoolWrapper.createArrayFrom(socketPoolInfo);
66 var tablePrinter = SocketPoolWrapper.createTablePrinter(socketPools); 66 var tablePrinter = SocketPoolWrapper.createTablePrinter(socketPools);
67 tablePrinter.toHTML(this.socketPoolDiv_, 'styledTable'); 67 tablePrinter.toHTML(this.socketPoolDiv_, 'styled-table');
68 68
69 // Add table for each socket pool with information on each of its groups. 69 // Add table for each socket pool with information on each of its groups.
70 for (var i = 0; i < socketPools.length; ++i) { 70 for (var i = 0; i < socketPools.length; ++i) {
71 if (socketPools[i].origPool.groups != undefined) { 71 if (socketPools[i].origPool.groups != undefined) {
72 var p = addNode(this.socketPoolGroupsDiv_, 'p'); 72 var p = addNode(this.socketPoolGroupsDiv_, 'p');
73 var br = addNode(p, 'br'); 73 var br = addNode(p, 'br');
74 var groupTablePrinter = socketPools[i].createGroupTablePrinter(); 74 var groupTablePrinter = socketPools[i].createGroupTablePrinter();
75 groupTablePrinter.toHTML(p, 'styledTable'); 75 groupTablePrinter.toHTML(p, 'styled-table');
76 } 76 }
77 } 77 }
78 return true; 78 return true;
79 }, 79 },
80 80
81 closeIdleSockets: function() { 81 closeIdleSockets: function() {
82 g_browser.sendCloseIdleSockets(); 82 g_browser.sendCloseIdleSockets();
83 g_browser.checkForUpdatedInfo(false); 83 g_browser.checkForUpdatedInfo(false);
84 }, 84 },
85 85
86 flushSocketPools: function() { 86 flushSocketPools: function() {
87 g_browser.sendFlushSocketPools(); 87 g_browser.sendFlushSocketPools();
88 g_browser.checkForUpdatedInfo(false); 88 g_browser.checkForUpdatedInfo(false);
89 } 89 }
90 }; 90 };
91 91
92 return SocketsView; 92 return SocketsView;
93 })(); 93 })();
OLDNEW
« no previous file with comments | « chrome/browser/resources/net_internals/sockets_view.html ('k') | chrome/browser/resources/net_internals/spdy_view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698