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

Unified Diff: chrome/browser/resources/net_internals/dataview.js

Issue 3416015: Adds Winsock service providers to log dumps... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/net_internals/serviceprovidersview.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/net_internals/dataview.js
===================================================================
--- chrome/browser/resources/net_internals/dataview.js (revision 59945)
+++ chrome/browser/resources/net_internals/dataview.js (working copy)
@@ -96,6 +96,10 @@
' (' + ClientInfo.official +
' ' + ClientInfo.cl +
') ' + ClientInfo.version_mod);
+ // Third value in first set of parentheses in user-agent string.
+ var platform = /\(.*?;.*?; (.*?);/.exec(navigator.userAgent);
+ if (platform)
+ text.push('Platform: ' + platform[1]);
text.push('Command line: ' + ClientInfo.command_line);
text.push('');
@@ -193,6 +197,47 @@
for (var statName in httpCacheStats)
text.push(statName + ': ' + httpCacheStats[statName]);
+ if (g_browser.isPlatformWindows()) {
+ text.push('');
+ text.push('----------------------------------------------');
+ text.push(' Winsock layered service providers');
+ text.push('----------------------------------------------');
+ text.push('');
+
+ var serviceProviders = g_browser.serviceProviders_.currentData_;
+ var layeredServiceProviders = serviceProviders.service_providers;
+ for (var i = 0; i < layeredServiceProviders.length; ++i) {
+ var provider = layeredServiceProviders[i];
+ text.push('name: ' + provider.name);
+ text.push('version: ' + provider.version);
+ text.push('type: ' +
+ ServiceProvidersView.getLayeredServiceProviderType(provider));
+ text.push('socket_type: ' +
+ ServiceProvidersView.getSocketType(provider));
+ text.push('socket_protocol: ' +
+ ServiceProvidersView.getProtocolType(provider));
+ text.push('path: ' + provider.path);
+ text.push('');
+ }
+
+ text.push('');
+ text.push('----------------------------------------------');
+ text.push(' Winsock namespace providers');
+ text.push('----------------------------------------------');
+ text.push('');
+
+ var namespaceProviders = serviceProviders.namespace_providers;
+ for (var i = 0; i < namespaceProviders.length; ++i) {
+ var provider = namespaceProviders[i];
+ text.push('name: ' + provider.name);
+ text.push('version: ' + provider.version);
+ text.push('type: ' +
+ ServiceProvidersView.getNamespaceProviderType(provider));
+ text.push('active: ' + provider.active);
+ text.push('');
+ }
+ }
+
// Open a new window to display this text.
this.setText_(text.join('\n'));
« no previous file with comments | « no previous file | chrome/browser/resources/net_internals/serviceprovidersview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698