OLD | NEW |
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 Loading... |
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 Loading... |
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 })(); |
OLD | NEW |