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

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

Issue 9581021: [refactor] Split up SourceTracker into SourceTracker + EventsTracker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update based on mmenke 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
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 * TODO(eroman): This needs better presentation, and cleaner code. This 6 * TODO(eroman): This needs better presentation, and cleaner code. This
7 * implementation is more of a transitionary step as 7 * implementation is more of a transitionary step as
8 * the old net-internals is replaced. 8 * the old net-internals is replaced.
9 */ 9 */
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 var mainCell = tablePrinter.addCell(eventText); 72 var mainCell = tablePrinter.addCell(eventText);
73 mainCell.allowOverflow = true; 73 mainCell.allowOverflow = true;
74 } 74 }
75 75
76 // Output the extra parameters. 76 // Output the extra parameters.
77 if (entry.orig.params != undefined) { 77 if (entry.orig.params != undefined) {
78 // Those 5 skipped cells are: two for "t=", and three for "st=". 78 // Those 5 skipped cells are: two for "t=", and three for "st=".
79 tablePrinter.setNewRowCellIndent(5 + entry.getDepth()); 79 tablePrinter.setNewRowCellIndent(5 + entry.getDepth());
80 addRowsForExtraParams(tablePrinter, 80 addRowsForExtraParams(tablePrinter,
81 entry.orig, 81 entry.orig,
82 g_browser.sourceTracker.getSecurityStripping()); 82 SourceTracker.getInstance().getSecurityStripping());
83 tablePrinter.setNewRowCellIndent(0); 83 tablePrinter.setNewRowCellIndent(0);
84 } 84 }
85 } 85 }
86 86
87 // Format the table for fixed-width text. 87 // Format the table for fixed-width text.
88 tablePrinter.toText(0, parent); 88 tablePrinter.toText(0, parent);
89 } 89 }
90 90
91 /** 91 /**
92 * |hexString| must be a string of hexadecimal characters with no whitespace, 92 * |hexString| must be a string of hexadecimal characters with no whitespace,
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 var result = []; 468 var result = [];
469 for (var i = 0; i < modes.length; ++i) 469 for (var i = 0; i < modes.length; ++i)
470 result.push(indentLines('(' + (i + 1) + ') ', modes[i])); 470 result.push(indentLines('(' + (i + 1) + ') ', modes[i]));
471 471
472 return result.join('\n'); 472 return result.join('\n');
473 }; 473 };
474 474
475 // End of anonymous namespace. 475 // End of anonymous namespace.
476 })(); 476 })();
477 477
OLDNEW
« no previous file with comments | « chrome/browser/resources/net_internals/log_util.js ('k') | chrome/browser/resources/net_internals/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698