| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |