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

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

Issue 7564029: Use javascript strict mode throughout a number of net-internals files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix one more var Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 Winsock layered service providers and 6 * This view displays information on Winsock layered service providers and
7 * namespace providers. 7 * 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
11 * whether or not it's active. 11 * whether or not it's active.
12 */ 12 */
13 var ServiceProvidersView = (function() {
14 'use strict';
13 15
14 var ServiceProvidersView = (function() { 16 var TAB_ID = 'tab-handle-service-providers';
15 const TAB_ID = 'tab-handle-service-providers';
16 17
17 // IDs for special HTML elements in service_providers_view.html 18 // IDs for special HTML elements in service_providers_view.html
18 const MAIN_BOX_ID = 'service-providers-view-tab-content'; 19 var MAIN_BOX_ID = 'service-providers-view-tab-content';
19 const SERVICE_PROVIDERS_TBODY_ID = 'service-providers-view-tbody'; 20 var SERVICE_PROVIDERS_TBODY_ID = 'service-providers-view-tbody';
20 const NAMESPACE_PROVIDERS_TBODY_ID = 21 var NAMESPACE_PROVIDERS_TBODY_ID =
21 'service-providers-view-namespace-providers-tbody'; 22 'service-providers-view-namespace-providers-tbody';
22 23
23 // We inherit from DivView. 24 // We inherit from DivView.
24 var superClass = DivView; 25 var superClass = DivView;
25 26
26 /** 27 /**
27 * @constructor 28 * @constructor
28 */ 29 */
29 function ServiceProvidersView() { 30 function ServiceProvidersView() {
31 assertFirstConstructorCall(ServiceProvidersView);
32
30 // Call superclass's constructor. 33 // Call superclass's constructor.
31 superClass.call(this, MAIN_BOX_ID); 34 superClass.call(this, MAIN_BOX_ID);
32 35
33 var tab = $(TAB_ID); 36 var tab = $(TAB_ID);
34 setNodeDisplay(tab, true); 37 setNodeDisplay(tab, true);
35 38
36 this.serviceProvidersTbody_ = $(SERVICE_PROVIDERS_TBODY_ID); 39 this.serviceProvidersTbody_ = $(SERVICE_PROVIDERS_TBODY_ID);
37 this.namespaceProvidersTbody_ = $(NAMESPACE_PROVIDERS_TBODY_ID); 40 this.namespaceProvidersTbody_ = $(NAMESPACE_PROVIDERS_TBODY_ID);
38 41
39 g_browser.addServiceProvidersObserver(this); 42 g_browser.addServiceProvidersObserver(this);
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 /** 160 /**
158 * Returns protocol type of a layered service provider as a string. 161 * Returns protocol type of a layered service provider as a string.
159 */ 162 */
160 function getProtocolType(layeredServiceProvider) { 163 function getProtocolType(layeredServiceProvider) {
161 return tryGetValueWithKey(PROTOCOL_TYPE, 164 return tryGetValueWithKey(PROTOCOL_TYPE,
162 layeredServiceProvider.socket_protocol); 165 layeredServiceProvider.socket_protocol);
163 } 166 }
164 167
165 return ServiceProvidersView; 168 return ServiceProvidersView;
166 })(); 169 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698