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

Side by Side Diff: chrome/browser/resources/net_internals/main.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 * Dictionary of constants (initialized by browser, updated on load log). 6 * Dictionary of constants (initialized by browser, updated on load log).
7 */ 7 */
8 var LogEventType = null; 8 var LogEventType = null;
9 var LogEventPhase = null; 9 var LogEventPhase = null;
10 var ClientInfo = null; 10 var ClientInfo = null;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 HttpCacheView.getInstance(), false, true); 85 HttpCacheView.getInstance(), false, true);
86 categoryTabSwitcher.addTab('tab-handle-import', ImportView.getInstance(), 86 categoryTabSwitcher.addTab('tab-handle-import', ImportView.getInstance(),
87 false, true); 87 false, true);
88 categoryTabSwitcher.addTab('tab-handle-export', ExportView.getInstance(), 88 categoryTabSwitcher.addTab('tab-handle-export', ExportView.getInstance(),
89 false, true); 89 false, true);
90 categoryTabSwitcher.addTab('tab-handle-capture', CaptureView.getInstance(), 90 categoryTabSwitcher.addTab('tab-handle-capture', CaptureView.getInstance(),
91 false, true); 91 false, true);
92 categoryTabSwitcher.addTab('tab-handle-service-providers', 92 categoryTabSwitcher.addTab('tab-handle-service-providers',
93 ServiceProvidersView.getInstance(), 93 ServiceProvidersView.getInstance(),
94 false, cr.isWindows); 94 false, cr.isWindows);
95 categoryTabSwitcher.addTab('tab-handle-tests', new TestView(), false, true); 95 categoryTabSwitcher.addTab('tab-handle-tests', TestView.getInstance(),
96 false, true);
96 categoryTabSwitcher.addTab('tab-handle-hsts', HSTSView.getInstance(), 97 categoryTabSwitcher.addTab('tab-handle-hsts', HSTSView.getInstance(),
97 false, true); 98 false, true);
98 categoryTabSwitcher.addTab('tab-handle-http-throttling', 99 categoryTabSwitcher.addTab('tab-handle-http-throttling',
99 HttpThrottlingView.getInstance(), false, true); 100 HttpThrottlingView.getInstance(), false, true);
100 categoryTabSwitcher.addTab('tab-handle-logs', new LogsView(), false, 101 categoryTabSwitcher.addTab('tab-handle-logs', LogsView.getInstance(), false,
101 cr.isChromeOS); 102 cr.isChromeOS);
102 categoryTabSwitcher.addTab('tab-handle-prerender', 103 categoryTabSwitcher.addTab('tab-handle-prerender',
103 PrerenderView.getInstance(), false, true); 104 PrerenderView.getInstance(), false, true);
104 105
105 // Build a map from the anchor name of each tab handle to its "tab ID". 106 // Build a map from the anchor name of each tab handle to its "tab ID".
106 // We will consider navigations to the #hash as a switch tab request. 107 // We will consider navigations to the #hash as a switch tab request.
107 var anchorMap = {}; 108 var anchorMap = {};
108 var tabIds = categoryTabSwitcher.getAllTabIds(); 109 var tabIds = categoryTabSwitcher.getAllTabIds();
109 for (var i = 0; i < tabIds.length; ++i) { 110 for (var i = 0; i < tabIds.length; ++i) {
110 var aNode = $(tabIds[i]); 111 var aNode = $(tabIds[i]);
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 } 459 }
459 } 460 }
460 461
461 if (!parsedDump) 462 if (!parsedDump)
462 return 'Unable to parse log dump as JSON file.'; 463 return 'Unable to parse log dump as JSON file.';
463 return loadLogDump(parsedDump, fileName); 464 return loadLogDump(parsedDump, fileName);
464 }; 465 };
465 466
466 // End of anonymous namespace. 467 // End of anonymous namespace.
467 })(); 468 })();
OLDNEW
« no previous file with comments | « chrome/browser/resources/net_internals/logs_view.js ('k') | chrome/browser/resources/net_internals/prerender_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698