Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 69 } | 69 } |
| 70 updateRowHeight.call(this); | 70 updateRowHeight.call(this); |
| 71 | 71 |
| 72 this._columns = new Network.NetworkLogViewColumns( | 72 this._columns = new Network.NetworkLogViewColumns( |
| 73 this, this._timeCalculator, this._durationCalculator, networkLogLargeRow sSetting); | 73 this, this._timeCalculator, this._durationCalculator, networkLogLargeRow sSetting); |
| 74 | 74 |
| 75 /** @type {!Map.<string, !Network.NetworkRequestNode>} */ | 75 /** @type {!Map.<string, !Network.NetworkRequestNode>} */ |
| 76 this._nodesByRequestId = new Map(); | 76 this._nodesByRequestId = new Map(); |
| 77 /** @type {!Map<*, !Network.NetworkGroupNode>} */ | 77 /** @type {!Map<*, !Network.NetworkGroupNode>} */ |
| 78 this._nodeGroups = new Map(); | 78 this._nodeGroups = new Map(); |
| 79 /** @type {!Set<!Network.NetworkRowDecorator>} */ | |
| 80 this._rowDecorators = new Set(); | |
| 81 var extensions = self.runtime.extensions(Network.NetworkRowDecorator); | |
| 82 for (var extension of extensions) | |
| 83 extension.instance().then(instance => this._rowDecorators.add(instance)); | |
|
pfeldman
2017/04/07 23:22:01
You should barrier those and re-decorate everythin
allada
2017/04/10 22:20:44
Done.
| |
| 84 | |
| 79 /** @type {!Object.<string, boolean>} */ | 85 /** @type {!Object.<string, boolean>} */ |
| 80 this._staleRequestIds = {}; | 86 this._staleRequestIds = {}; |
| 81 /** @type {number} */ | 87 /** @type {number} */ |
| 82 this._mainRequestLoadTime = -1; | 88 this._mainRequestLoadTime = -1; |
| 83 /** @type {number} */ | 89 /** @type {number} */ |
| 84 this._mainRequestDOMContentLoadedTime = -1; | 90 this._mainRequestDOMContentLoadedTime = -1; |
| 85 this._matchedRequestCount = 0; | 91 this._matchedRequestCount = 0; |
| 86 this._highlightedSubstringChanges = []; | 92 this._highlightedSubstringChanges = []; |
| 87 | 93 |
| 88 /** @type {!Array.<!Network.NetworkLogView.Filter>} */ | 94 /** @type {!Array.<!Network.NetworkLogView.Filter>} */ |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 351 /** | 357 /** |
| 352 * @param {?Network.NetworkGroupLookupInterface} grouping | 358 * @param {?Network.NetworkGroupLookupInterface} grouping |
| 353 */ | 359 */ |
| 354 setGrouping(grouping) { | 360 setGrouping(grouping) { |
| 355 this._activeGroupLookup = grouping; | 361 this._activeGroupLookup = grouping; |
| 356 this._nodeGroups.clear(); | 362 this._nodeGroups.clear(); |
| 357 this._invalidateAllItems(); | 363 this._invalidateAllItems(); |
| 358 } | 364 } |
| 359 | 365 |
| 360 /** | 366 /** |
| 367 * @return {!Set<!Network.NetworkRowDecorator>} | |
| 368 */ | |
| 369 rowDecorators() { | |
| 370 return this._rowDecorators; | |
| 371 } | |
| 372 | |
| 373 /** | |
| 361 * @param {!SDK.NetworkRequest} request | 374 * @param {!SDK.NetworkRequest} request |
| 362 * @return {?Network.NetworkRequestNode} | 375 * @return {?Network.NetworkRequestNode} |
| 363 */ | 376 */ |
| 364 nodeForRequest(request) { | 377 nodeForRequest(request) { |
| 365 return this._nodesByRequestId.get(request.requestId()); | 378 return this._nodesByRequestId.get(request.requestId()); |
| 366 } | 379 } |
| 367 | 380 |
| 368 /** | 381 /** |
| 369 * @return {number} | 382 * @return {number} |
| 370 */ | 383 */ |
| (...skipping 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1809 * @return {?*} | 1822 * @return {?*} |
| 1810 */ | 1823 */ |
| 1811 groupForRequest(request) {}, | 1824 groupForRequest(request) {}, |
| 1812 | 1825 |
| 1813 /** | 1826 /** |
| 1814 * @param {!*} key | 1827 * @param {!*} key |
| 1815 * @return {string} | 1828 * @return {string} |
| 1816 */ | 1829 */ |
| 1817 groupName(key) {} | 1830 groupName(key) {} |
| 1818 }; | 1831 }; |
| 1832 | |
| 1833 /** | |
| 1834 * @interface | |
| 1835 */ | |
| 1836 Network.NetworkRowDecorator = function() {}; | |
| 1837 | |
| 1838 Network.NetworkRowDecorator.prototype = { | |
| 1839 /** | |
| 1840 * @param {!Network.NetworkNode} node | |
| 1841 */ | |
| 1842 decorate(node) {} | |
| 1843 }; | |
| OLD | NEW |