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 * Dictionary of constants (Initialized soon after loading by data from browser, | 6 * Dictionary of constants (Initialized soon after loading by data from browser, |
7 * updated on load log). The *Types dictionaries map strings to numeric IDs, | 7 * updated on load log). The *Types dictionaries map strings to numeric IDs, |
8 * while the *TypeNames are the other way around. | 8 * while the *TypeNames are the other way around. |
9 */ | 9 */ |
10 var EventType = null; | 10 var EventType = null; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 false, true); | 83 false, true); |
84 tabs.addTab(EventsView.TAB_HANDLE_ID, EventsView.getInstance(), | 84 tabs.addTab(EventsView.TAB_HANDLE_ID, EventsView.getInstance(), |
85 false, true); | 85 false, true); |
86 tabs.addTab(TimelineView.TAB_HANDLE_ID, TimelineView.getInstance(), | 86 tabs.addTab(TimelineView.TAB_HANDLE_ID, TimelineView.getInstance(), |
87 false, true); | 87 false, true); |
88 tabs.addTab(DnsView.TAB_HANDLE_ID, DnsView.getInstance(), | 88 tabs.addTab(DnsView.TAB_HANDLE_ID, DnsView.getInstance(), |
89 false, true); | 89 false, true); |
90 tabs.addTab(SocketsView.TAB_HANDLE_ID, SocketsView.getInstance(), | 90 tabs.addTab(SocketsView.TAB_HANDLE_ID, SocketsView.getInstance(), |
91 false, true); | 91 false, true); |
92 tabs.addTab(SpdyView.TAB_HANDLE_ID, SpdyView.getInstance(), false, true); | 92 tabs.addTab(SpdyView.TAB_HANDLE_ID, SpdyView.getInstance(), false, true); |
| 93 tabs.addTab(QuicView.TAB_HANDLE_ID, QuicView.getInstance(), false, true); |
93 tabs.addTab(HttpPipelineView.TAB_HANDLE_ID, HttpPipelineView.getInstance(), | 94 tabs.addTab(HttpPipelineView.TAB_HANDLE_ID, HttpPipelineView.getInstance(), |
94 false, true); | 95 false, true); |
95 tabs.addTab(HttpCacheView.TAB_HANDLE_ID, HttpCacheView.getInstance(), | 96 tabs.addTab(HttpCacheView.TAB_HANDLE_ID, HttpCacheView.getInstance(), |
96 false, true); | 97 false, true); |
97 tabs.addTab(ServiceProvidersView.TAB_HANDLE_ID, | 98 tabs.addTab(ServiceProvidersView.TAB_HANDLE_ID, |
98 ServiceProvidersView.getInstance(), false, cr.isWindows); | 99 ServiceProvidersView.getInstance(), false, cr.isWindows); |
99 tabs.addTab(TestView.TAB_HANDLE_ID, TestView.getInstance(), false, true); | 100 tabs.addTab(TestView.TAB_HANDLE_ID, TestView.getInstance(), false, true); |
100 tabs.addTab(HSTSView.TAB_HANDLE_ID, HSTSView.getInstance(), false, true); | 101 tabs.addTab(HSTSView.TAB_HANDLE_ID, HSTSView.getInstance(), false, true); |
101 tabs.addTab(LogsView.TAB_HANDLE_ID, LogsView.getInstance(), | 102 tabs.addTab(LogsView.TAB_HANDLE_ID, LogsView.getInstance(), |
102 false, cr.isChromeOS); | 103 false, cr.isChromeOS); |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 * Returns a string representation of |family|. | 305 * Returns a string representation of |family|. |
305 * @param {number} family An AddressFamily | 306 * @param {number} family An AddressFamily |
306 * @return {string} A representation of the given family. | 307 * @return {string} A representation of the given family. |
307 */ | 308 */ |
308 function addressFamilyToString(family) { | 309 function addressFamilyToString(family) { |
309 var str = getKeyWithValue(AddressFamily, family); | 310 var str = getKeyWithValue(AddressFamily, family); |
310 // All the address family start with ADDRESS_FAMILY_*. | 311 // All the address family start with ADDRESS_FAMILY_*. |
311 // Strip that prefix since it is redundant and only clutters the output. | 312 // Strip that prefix since it is redundant and only clutters the output. |
312 return str.replace(/^ADDRESS_FAMILY_/, ''); | 313 return str.replace(/^ADDRESS_FAMILY_/, ''); |
313 } | 314 } |
OLD | NEW |