| 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 * This view displays information on installed Chrome extensions / apps as well | 6 * This view displays information on installed Chrome extensions / apps as well |
| 7 * as Winsock layered service providers and namespace providers. | 7 * as Winsock layered service providers and namespace providers. |
| 8 * | 8 * |
| 9 * For each layered service provider, shows the name, dll, and type | 9 * For each layered service provider, shows the name, dll, and type |
| 10 * information. For each namespace provider, shows the name and | 10 * information. For each namespace provider, shows the name and |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 '17': 'IPPROTO_UDP', | 100 '17': 'IPPROTO_UDP', |
| 101 '58': 'IPPROTO_ICMPV6' | 101 '58': 'IPPROTO_ICMPV6' |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 /** | 104 /** |
| 105 * Returns protocol type of a layered service provider as a string. | 105 * Returns protocol type of a layered service provider as a string. |
| 106 */ | 106 */ |
| 107 ModulesView.getLayeredServiceProviderProtocolType = | 107 ModulesView.getLayeredServiceProviderProtocolType = |
| 108 function(serviceProvider) { | 108 function(serviceProvider) { |
| 109 return tryGetValueWithKey(PROTOCOL_TYPE, serviceProvider.socket_protocol); | 109 return tryGetValueWithKey(PROTOCOL_TYPE, serviceProvider.socket_protocol); |
| 110 } | 110 }; |
| 111 | 111 |
| 112 var NAMESPACE_PROVIDER_PTYPE = { | 112 var NAMESPACE_PROVIDER_PTYPE = { |
| 113 '12': 'NS_DNS', | 113 '12': 'NS_DNS', |
| 114 '15': 'NS_NLA', | 114 '15': 'NS_NLA', |
| 115 '16': 'NS_BTH', | 115 '16': 'NS_BTH', |
| 116 '32': 'NS_NTDS', | 116 '32': 'NS_NTDS', |
| 117 '37': 'NS_EMAIL', | 117 '37': 'NS_EMAIL', |
| 118 '38': 'NS_PNRPNAME', | 118 '38': 'NS_PNRPNAME', |
| 119 '39': 'NS_PNRPCLOUD' | 119 '39': 'NS_PNRPCLOUD' |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 /** | 122 /** |
| 123 * Returns the type of a namespace provider as a string. | 123 * Returns the type of a namespace provider as a string. |
| 124 */ | 124 */ |
| 125 ModulesView.getNamespaceProviderType = function(namespaceProvider) { | 125 ModulesView.getNamespaceProviderType = function(namespaceProvider) { |
| 126 return tryGetValueWithKey(NAMESPACE_PROVIDER_PTYPE, namespaceProvider.type); | 126 return tryGetValueWithKey(NAMESPACE_PROVIDER_PTYPE, namespaceProvider.type); |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 return ModulesView; | 129 return ModulesView; |
| 130 })(); | 130 })(); |
| OLD | NEW |