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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js

Issue 2576203002: [Devtools] Remove old code (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org>
4 * Copyright (C) 2011 Google Inc. All rights reserved. 4 * Copyright (C) 2011 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 27 matching lines...) Expand all
38 * @param {!Element} progressBarContainer 38 * @param {!Element} progressBarContainer
39 * @param {!Common.Setting} networkLogLargeRowsSetting 39 * @param {!Common.Setting} networkLogLargeRowsSetting
40 */ 40 */
41 constructor(filterBar, progressBarContainer, networkLogLargeRowsSetting) { 41 constructor(filterBar, progressBarContainer, networkLogLargeRowsSetting) {
42 super(); 42 super();
43 this.setMinimumSize(50, 64); 43 this.setMinimumSize(50, 64);
44 this.registerRequiredCSS('network/networkLogView.css'); 44 this.registerRequiredCSS('network/networkLogView.css');
45 45
46 this._networkHideDataURLSetting = Common.settings.createSetting('networkHide DataURL', false); 46 this._networkHideDataURLSetting = Common.settings.createSetting('networkHide DataURL', false);
47 this._networkResourceTypeFiltersSetting = Common.settings.createSetting('net workResourceTypeFilters', {}); 47 this._networkResourceTypeFiltersSetting = Common.settings.createSetting('net workResourceTypeFilters', {});
48 this._networkShowPrimaryLoadWaterfallSetting =
49 Common.settings.createSetting('networkShowPrimaryLoadWaterfall', false);
50 48
51 this._filterBar = filterBar; 49 this._filterBar = filterBar;
52 this._progressBarContainer = progressBarContainer; 50 this._progressBarContainer = progressBarContainer;
53 this._networkLogLargeRowsSetting = networkLogLargeRowsSetting; 51 this._networkLogLargeRowsSetting = networkLogLargeRowsSetting;
54 this._networkLogLargeRowsSetting.addChangeListener(updateRowHeight.bind(this ), this); 52 this._networkLogLargeRowsSetting.addChangeListener(updateRowHeight.bind(this ), this);
55 53
56 /** @type {!Network.NetworkTransferTimeCalculator} */ 54 /** @type {!Network.NetworkTransferTimeCalculator} */
57 this._timeCalculator = new Network.NetworkTransferTimeCalculator(); 55 this._timeCalculator = new Network.NetworkTransferTimeCalculator();
58 /** @type {!Network.NetworkTransferDurationCalculator} */ 56 /** @type {!Network.NetworkTransferDurationCalculator} */
59 this._durationCalculator = new Network.NetworkTransferDurationCalculator(); 57 this._durationCalculator = new Network.NetworkTransferDurationCalculator();
(...skipping 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after
1668 Network.NetworkLogView._isFilteredOutSymbol = Symbol('isFilteredOut'); 1666 Network.NetworkLogView._isFilteredOutSymbol = Symbol('isFilteredOut');
1669 Network.NetworkLogView._isMatchingSearchQuerySymbol = Symbol('isMatchingSearchQu ery'); 1667 Network.NetworkLogView._isMatchingSearchQuerySymbol = Symbol('isMatchingSearchQu ery');
1670 1668
1671 Network.NetworkLogView.HTTPSchemas = { 1669 Network.NetworkLogView.HTTPSchemas = {
1672 'http': true, 1670 'http': true,
1673 'https': true, 1671 'https': true,
1674 'ws': true, 1672 'ws': true,
1675 'wss': true 1673 'wss': true
1676 }; 1674 };
1677 1675
1678 Network.NetworkLogView._waterfallMinOvertime = 1;
1679 Network.NetworkLogView._waterfallMaxOvertime = 3;
1680
1681 /** @enum {symbol} */ 1676 /** @enum {symbol} */
1682 Network.NetworkLogView.Events = { 1677 Network.NetworkLogView.Events = {
1683 RequestSelected: Symbol('RequestSelected'), 1678 RequestSelected: Symbol('RequestSelected'),
1684 SearchCountUpdated: Symbol('SearchCountUpdated'), 1679 SearchCountUpdated: Symbol('SearchCountUpdated'),
1685 SearchIndexUpdated: Symbol('SearchIndexUpdated'), 1680 SearchIndexUpdated: Symbol('SearchIndexUpdated'),
1686 UpdateRequest: Symbol('UpdateRequest') 1681 UpdateRequest: Symbol('UpdateRequest')
1687 }; 1682 };
1688 1683
1689 /** @enum {string} */ 1684 /** @enum {string} */
1690 Network.NetworkLogView.FilterType = { 1685 Network.NetworkLogView.FilterType = {
(...skipping 24 matching lines...) Expand all
1715 Running: 'running', 1710 Running: 'running',
1716 FromCache: 'from-cache' 1711 FromCache: 'from-cache'
1717 }; 1712 };
1718 1713
1719 /** @type {!Array<string>} */ 1714 /** @type {!Array<string>} */
1720 Network.NetworkLogView._searchKeys = 1715 Network.NetworkLogView._searchKeys =
1721 Object.keys(Network.NetworkLogView.FilterType).map(key => Network.NetworkLog View.FilterType[key]); 1716 Object.keys(Network.NetworkLogView.FilterType).map(key => Network.NetworkLog View.FilterType[key]);
1722 1717
1723 /** @typedef {function(!SDK.NetworkRequest): boolean} */ 1718 /** @typedef {function(!SDK.NetworkRequest): boolean} */
1724 Network.NetworkLogView.Filter; 1719 Network.NetworkLogView.Filter;
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698