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

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

Issue 423813002: Sdch view for net-internals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review fixes. Lots. Created 6 years, 2 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
OLDNEW
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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 addTab(ExportView); 185 addTab(ExportView);
186 addTab(ImportView); 186 addTab(ImportView);
187 addTab(ProxyView); 187 addTab(ProxyView);
188 addTab(EventsView); 188 addTab(EventsView);
189 addTab(WaterfallView); 189 addTab(WaterfallView);
190 addTab(TimelineView); 190 addTab(TimelineView);
191 addTab(DnsView); 191 addTab(DnsView);
192 addTab(SocketsView); 192 addTab(SocketsView);
193 addTab(SpdyView); 193 addTab(SpdyView);
194 addTab(QuicView); 194 addTab(QuicView);
195 addTab(SdchView);
195 addTab(HttpCacheView); 196 addTab(HttpCacheView);
196 addTab(ModulesView); 197 addTab(ModulesView);
197 addTab(TestView); 198 addTab(TestView);
198 addTab(CrosLogVisualizerView); 199 addTab(CrosLogVisualizerView);
199 addTab(HSTSView); 200 addTab(HSTSView);
200 addTab(LogsView); 201 addTab(LogsView);
201 addTab(BandwidthView); 202 addTab(BandwidthView);
202 addTab(PrerenderView); 203 addTab(PrerenderView);
203 addTab(CrosView); 204 addTab(CrosView);
204 205
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 EventSourceType = Constants.logSourceType; 305 EventSourceType = Constants.logSourceType;
305 EventSourceTypeNames = makeInverseMap(EventSourceType); 306 EventSourceTypeNames = makeInverseMap(EventSourceType);
306 LogLevelType = Constants.logLevelType; 307 LogLevelType = Constants.logLevelType;
307 ClientInfo = Constants.clientInfo; 308 ClientInfo = Constants.clientInfo;
308 LoadFlag = Constants.loadFlag; 309 LoadFlag = Constants.loadFlag;
309 NetError = Constants.netError; 310 NetError = Constants.netError;
310 QuicError = Constants.quicError; 311 QuicError = Constants.quicError;
311 QuicRstStreamError = Constants.quicRstStreamError; 312 QuicRstStreamError = Constants.quicRstStreamError;
312 AddressFamily = Constants.addressFamily; 313 AddressFamily = Constants.addressFamily;
313 LoadState = Constants.loadState; 314 LoadState = Constants.loadState;
315 SdchProblemCode = Constants.sdchProblemCode;
mmenke 2014/10/03 18:59:26 Should declare this up with the others (Not curren
baranovich 2014/10/27 20:49:24 Matt, not quite sure if I got what you mean. I gue
mmenke 2014/10/27 21:29:34 This is where they're initialized, but not where t
baranovich 2014/10/27 21:52:16 Done. Ah, thanks, my bad(
314 // certStatusFlag may not be present when loading old log Files 316 // certStatusFlag may not be present when loading old log Files
315 if (typeof(Constants.certStatusFlag) == 'object') 317 if (typeof(Constants.certStatusFlag) == 'object')
316 CertStatusFlag = Constants.certStatusFlag; 318 CertStatusFlag = Constants.certStatusFlag;
317 else 319 else
318 CertStatusFlag = {}; 320 CertStatusFlag = {};
319 321
320 timeutil.setTimeTickOffset(Constants.timeTickOffset); 322 timeutil.setTimeTickOffset(Constants.timeTickOffset);
321 }; 323 };
322 324
323 /** 325 /**
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 * Returns a string representation of |family|. 381 * Returns a string representation of |family|.
380 * @param {number} family An AddressFamily 382 * @param {number} family An AddressFamily
381 * @return {string} A representation of the given family. 383 * @return {string} A representation of the given family.
382 */ 384 */
383 function addressFamilyToString(family) { 385 function addressFamilyToString(family) {
384 var str = getKeyWithValue(AddressFamily, family); 386 var str = getKeyWithValue(AddressFamily, family);
385 // All the address family start with ADDRESS_FAMILY_*. 387 // All the address family start with ADDRESS_FAMILY_*.
386 // Strip that prefix since it is redundant and only clutters the output. 388 // Strip that prefix since it is redundant and only clutters the output.
387 return str.replace(/^ADDRESS_FAMILY_/, ''); 389 return str.replace(/^ADDRESS_FAMILY_/, '');
388 } 390 }
391
392 /**
393 * Returns the name for sdchProblemCode.
394 *
395 * Example: sdchProblemCodeToString(5) should return
396 * "DECODE_BODY_ERROR".
397 * @param {number} sdchProblemCode The SDCH problem code.
398 * @return {string} The name of the given problem code.
399 */
400 function sdchProblemCodeToString(sdchProblemCode) {
401 return getKeyWithValue(SdchProblemCode, sdchProblemCode);
402 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698