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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 addTab(ExportView); | 184 addTab(ExportView); |
185 addTab(ImportView); | 185 addTab(ImportView); |
186 addTab(ProxyView); | 186 addTab(ProxyView); |
187 addTab(EventsView); | 187 addTab(EventsView); |
188 addTab(WaterfallView); | 188 addTab(WaterfallView); |
189 addTab(TimelineView); | 189 addTab(TimelineView); |
190 addTab(DnsView); | 190 addTab(DnsView); |
191 addTab(SocketsView); | 191 addTab(SocketsView); |
192 addTab(SpdyView); | 192 addTab(SpdyView); |
193 addTab(QuicView); | 193 addTab(QuicView); |
194 addTab(HttpPipelineView); | |
195 addTab(HttpCacheView); | 194 addTab(HttpCacheView); |
196 addTab(ModulesView); | 195 addTab(ModulesView); |
197 addTab(TestView); | 196 addTab(TestView); |
198 addTab(CrosLogVisualizerView); | 197 addTab(CrosLogVisualizerView); |
199 addTab(HSTSView); | 198 addTab(HSTSView); |
200 addTab(LogsView); | 199 addTab(LogsView); |
201 addTab(BandwidthView); | 200 addTab(BandwidthView); |
202 addTab(PrerenderView); | 201 addTab(PrerenderView); |
203 addTab(CrosView); | 202 addTab(CrosView); |
204 | 203 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 * Returns a string representation of |family|. | 376 * Returns a string representation of |family|. |
378 * @param {number} family An AddressFamily | 377 * @param {number} family An AddressFamily |
379 * @return {string} A representation of the given family. | 378 * @return {string} A representation of the given family. |
380 */ | 379 */ |
381 function addressFamilyToString(family) { | 380 function addressFamilyToString(family) { |
382 var str = getKeyWithValue(AddressFamily, family); | 381 var str = getKeyWithValue(AddressFamily, family); |
383 // All the address family start with ADDRESS_FAMILY_*. | 382 // All the address family start with ADDRESS_FAMILY_*. |
384 // Strip that prefix since it is redundant and only clutters the output. | 383 // Strip that prefix since it is redundant and only clutters the output. |
385 return str.replace(/^ADDRESS_FAMILY_/, ''); | 384 return str.replace(/^ADDRESS_FAMILY_/, ''); |
386 } | 385 } |
OLD | NEW |