| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 options for importing/exporting the captured data. Its | 6 * This view displays options for importing/exporting the captured data. Its |
| 7 * primarily usefulness is to allow users to copy-paste their data in an easy | 7 * primarily usefulness is to allow users to copy-paste their data in an easy |
| 8 * to read format for bug reports. | 8 * to read format for bug reports. |
| 9 * | 9 * |
| 10 * - Has a button to generate a text report. | 10 * - Has a button to generate a text report. |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 text.push(''); | 263 text.push(''); |
| 264 text.push('----------------------------------------------'); | 264 text.push('----------------------------------------------'); |
| 265 text.push(' Socket pools'); | 265 text.push(' Socket pools'); |
| 266 text.push('----------------------------------------------'); | 266 text.push('----------------------------------------------'); |
| 267 text.push(''); | 267 text.push(''); |
| 268 | 268 |
| 269 this.appendSocketPoolsAsText_(text, data.socketPoolInfo); | 269 this.appendSocketPoolsAsText_(text, data.socketPoolInfo); |
| 270 | 270 |
| 271 text.push(''); | 271 text.push(''); |
| 272 text.push('----------------------------------------------'); | 272 text.push('----------------------------------------------'); |
| 273 text.push(' SPDY Status'); |
| 274 text.push('----------------------------------------------'); |
| 275 text.push(''); |
| 276 |
| 277 text.push('SPDY Enabled: ' + data.spdyStatus.spdy_enabled); |
| 278 text.push('Use Alternate Protocol: ' + |
| 279 data.spdyStatus.use_alternate_protocols); |
| 280 text.push('Force SPDY Always: ' + data.spdyStatus.force_spdy_always); |
| 281 text.push('Force SPDY Over SSL: ' + data.spdyStatus.force_spdy_over_ssl); |
| 282 text.push('Next Protocols: ' + data.spdyStatus.next_protos); |
| 283 |
| 284 |
| 285 text.push(''); |
| 286 text.push('----------------------------------------------'); |
| 273 text.push(' SPDY Sessions'); | 287 text.push(' SPDY Sessions'); |
| 274 text.push('----------------------------------------------'); | 288 text.push('----------------------------------------------'); |
| 275 text.push(''); | 289 text.push(''); |
| 276 | 290 |
| 277 if (data.spdySessionInfo == null || data.spdySessionInfo.length == 0) { | 291 if (data.spdySessionInfo == null || data.spdySessionInfo.length == 0) { |
| 278 text.push('None'); | 292 text.push('None'); |
| 279 } else { | 293 } else { |
| 280 var spdyTablePrinter = | 294 var spdyTablePrinter = |
| 281 SpdyView.createSessionTablePrinter(data.spdySessionInfo); | 295 SpdyView.createSessionTablePrinter(data.spdySessionInfo); |
| 282 text.push(spdyTablePrinter.toText(2)); | 296 text.push(spdyTablePrinter.toText(2)); |
| 283 } | 297 } |
| 284 | 298 |
| 299 text.push(''); |
| 300 text.push('----------------------------------------------'); |
| 301 text.push(' Alternate Protocol Mappings'); |
| 302 text.push('----------------------------------------------'); |
| 303 text.push(''); |
| 304 |
| 305 if (data.spdyAlternateProtocolMappings == null || |
| 306 data.spdyAlternateProtocolMappings.length == 0) { |
| 307 text.push('None'); |
| 308 } else { |
| 309 var spdyTablePrinter = |
| 310 SpdyView.createAlternateProtocolMappingsTablePrinter( |
| 311 data.spdyAlternateProtocolMappings); |
| 312 text.push(spdyTablePrinter.toText(2)); |
| 313 } |
| 314 |
| 285 if (g_browser.isPlatformWindows()) { | 315 if (g_browser.isPlatformWindows()) { |
| 286 text.push(''); | 316 text.push(''); |
| 287 text.push('----------------------------------------------'); | 317 text.push('----------------------------------------------'); |
| 288 text.push(' Winsock layered service providers'); | 318 text.push(' Winsock layered service providers'); |
| 289 text.push('----------------------------------------------'); | 319 text.push('----------------------------------------------'); |
| 290 text.push(''); | 320 text.push(''); |
| 291 | 321 |
| 292 var serviceProviders = data.serviceProviders; | 322 var serviceProviders = data.serviceProviders; |
| 293 var layeredServiceProviders = serviceProviders.service_providers; | 323 var layeredServiceProviders = serviceProviders.service_providers; |
| 294 for (var i = 0; i < layeredServiceProviders.length; ++i) { | 324 for (var i = 0; i < layeredServiceProviders.length; ++i) { |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 * Select all text from log dump. | 450 * Select all text from log dump. |
| 421 */ | 451 */ |
| 422 DataView.prototype.selectText_ = function() { | 452 DataView.prototype.selectText_ = function() { |
| 423 var selection = window.getSelection(); | 453 var selection = window.getSelection(); |
| 424 selection.removeAllRanges(); | 454 selection.removeAllRanges(); |
| 425 | 455 |
| 426 var range = document.createRange(); | 456 var range = document.createRange(); |
| 427 range.selectNodeContents(this.textPre_); | 457 range.selectNodeContents(this.textPre_); |
| 428 selection.addRange(range); | 458 selection.addRange(range); |
| 429 }; | 459 }; |
| OLD | NEW |