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

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

Issue 775773002: Add data reduction proxy debug info to net-internals#bandwidth (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bengr CR updates Created 6 years 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;
11 var EventTypeNames = null; 11 var EventTypeNames = null;
12 var EventPhase = null; 12 var EventPhase = null;
13 var EventSourceType = null; 13 var EventSourceType = null;
14 var EventSourceTypeNames = null; 14 var EventSourceTypeNames = null;
15 var LogLevelType = null; 15 var LogLevelType = null;
16 var ClientInfo = null; 16 var ClientInfo = null;
17 var NetError = null; 17 var NetError = null;
18 var QuicError = null; 18 var QuicError = null;
19 var QuicRstStreamError = null; 19 var QuicRstStreamError = null;
20 var LoadFlag = null; 20 var LoadFlag = null;
21 var CertStatusFlag = null; 21 var CertStatusFlag = null;
22 var LoadState = null; 22 var LoadState = null;
23 var AddressFamily = null; 23 var AddressFamily = null;
24 var SdchProblemCode = null; 24 var SdchProblemCode = null;
25 var DataReductionProxyBypassEventType = null;
25 26
26 /** 27 /**
27 * Dictionary of all constants, used for saving log files. 28 * Dictionary of all constants, used for saving log files.
28 */ 29 */
29 var Constants = null; 30 var Constants = null;
30 31
31 /** 32 /**
32 * Object to communicate between the renderer and the browser. 33 * Object to communicate between the renderer and the browser.
33 * @type {!BrowserBridge} 34 * @type {!BrowserBridge}
34 */ 35 */
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 EventSourceTypeNames = makeInverseMap(EventSourceType); 308 EventSourceTypeNames = makeInverseMap(EventSourceType);
308 LogLevelType = Constants.logLevelType; 309 LogLevelType = Constants.logLevelType;
309 ClientInfo = Constants.clientInfo; 310 ClientInfo = Constants.clientInfo;
310 LoadFlag = Constants.loadFlag; 311 LoadFlag = Constants.loadFlag;
311 NetError = Constants.netError; 312 NetError = Constants.netError;
312 QuicError = Constants.quicError; 313 QuicError = Constants.quicError;
313 QuicRstStreamError = Constants.quicRstStreamError; 314 QuicRstStreamError = Constants.quicRstStreamError;
314 AddressFamily = Constants.addressFamily; 315 AddressFamily = Constants.addressFamily;
315 LoadState = Constants.loadState; 316 LoadState = Constants.loadState;
316 SdchProblemCode = Constants.sdchProblemCode; 317 SdchProblemCode = Constants.sdchProblemCode;
318 DataReductionProxyBypassEventType =
319 Constants.dataReductionProxyBypassEventType;
317 // certStatusFlag may not be present when loading old log Files 320 // certStatusFlag may not be present when loading old log Files
318 if (typeof(Constants.certStatusFlag) == 'object') 321 if (typeof(Constants.certStatusFlag) == 'object')
319 CertStatusFlag = Constants.certStatusFlag; 322 CertStatusFlag = Constants.certStatusFlag;
320 else 323 else
321 CertStatusFlag = {}; 324 CertStatusFlag = {};
322 325
323 timeutil.setTimeTickOffset(Constants.timeTickOffset); 326 timeutil.setTimeTickOffset(Constants.timeTickOffset);
324 }; 327 };
325 328
326 /** 329 /**
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 * Returns the name for sdchProblemCode. 397 * Returns the name for sdchProblemCode.
395 * 398 *
396 * Example: sdchProblemCodeToString(5) should return 399 * Example: sdchProblemCodeToString(5) should return
397 * "DECODE_BODY_ERROR". 400 * "DECODE_BODY_ERROR".
398 * @param {number} sdchProblemCode The SDCH problem code. 401 * @param {number} sdchProblemCode The SDCH problem code.
399 * @return {string} The name of the given problem code. 402 * @return {string} The name of the given problem code.
400 */ 403 */
401 function sdchProblemCodeToString(sdchProblemCode) { 404 function sdchProblemCodeToString(sdchProblemCode) {
402 return getKeyWithValue(SdchProblemCode, sdchProblemCode); 405 return getKeyWithValue(SdchProblemCode, sdchProblemCode);
403 } 406 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/net_internals/browser_bridge.js ('k') | chrome/browser/ui/webui/net_internals/net_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698