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 26 matching lines...) Expand all Loading... | |
37 * @param {!WebInspector.Setting} coulmnsVisibilitySetting | 37 * @param {!WebInspector.Setting} coulmnsVisibilitySetting |
38 */ | 38 */ |
39 WebInspector.NetworkLogView = function(filterBar, coulmnsVisibilitySetting) | 39 WebInspector.NetworkLogView = function(filterBar, coulmnsVisibilitySetting) |
40 { | 40 { |
41 WebInspector.VBox.call(this); | 41 WebInspector.VBox.call(this); |
42 this.registerRequiredCSS("network/networkLogView.css"); | 42 this.registerRequiredCSS("network/networkLogView.css"); |
43 this.registerRequiredCSS("ui/filter.css"); | 43 this.registerRequiredCSS("ui/filter.css"); |
44 | 44 |
45 this._filterBar = filterBar; | 45 this._filterBar = filterBar; |
46 this._coulmnsVisibilitySetting = coulmnsVisibilitySetting; | 46 this._coulmnsVisibilitySetting = coulmnsVisibilitySetting; |
47 this._allowRequestSelection = false; | |
48 /** @type {!Map.<string, !WebInspector.NetworkDataGridNode>} */ | 47 /** @type {!Map.<string, !WebInspector.NetworkDataGridNode>} */ |
49 this._nodesByRequestId = new Map(); | 48 this._nodesByRequestId = new Map(); |
50 /** @type {!Object.<string, boolean>} */ | 49 /** @type {!Object.<string, boolean>} */ |
51 this._staleRequestIds = {}; | 50 this._staleRequestIds = {}; |
52 /** @type {number} */ | 51 /** @type {number} */ |
53 this._mainRequestLoadTime = -1; | 52 this._mainRequestLoadTime = -1; |
54 /** @type {number} */ | 53 /** @type {number} */ |
55 this._mainRequestDOMContentLoadedTime = -1; | 54 this._mainRequestDOMContentLoadedTime = -1; |
56 this._matchedRequestCount = 0; | 55 this._matchedRequestCount = 0; |
57 this._highlightedSubstringChanges = []; | 56 this._highlightedSubstringChanges = []; |
(...skipping 22 matching lines...) Expand all Loading... | |
80 WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, Web Inspector.NetworkManager.EventTypes.RequestStarted, this._onRequestStarted, this ); | 79 WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, Web Inspector.NetworkManager.EventTypes.RequestStarted, this._onRequestStarted, this ); |
81 WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, Web Inspector.NetworkManager.EventTypes.RequestUpdated, this._onRequestUpdated, this ); | 80 WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, Web Inspector.NetworkManager.EventTypes.RequestUpdated, this._onRequestUpdated, this ); |
82 WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, Web Inspector.NetworkManager.EventTypes.RequestFinished, this._onRequestUpdated, thi s); | 81 WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, Web Inspector.NetworkManager.EventTypes.RequestFinished, this._onRequestUpdated, thi s); |
83 | 82 |
84 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel, WebInspector.ResourceTreeModel.EventTypes.WillReloadPage, this._willReloadPage, this); | 83 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel, WebInspector.ResourceTreeModel.EventTypes.WillReloadPage, this._willReloadPage, this); |
85 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel, WebInspector.ResourceTreeModel.EventTypes.MainFrameNavigated, this._mainFrameNav igated, this); | 84 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel, WebInspector.ResourceTreeModel.EventTypes.MainFrameNavigated, this._mainFrameNav igated, this); |
86 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel, WebInspector.ResourceTreeModel.EventTypes.Load, this._loadEventFired, this); | 85 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel, WebInspector.ResourceTreeModel.EventTypes.Load, this._loadEventFired, this); |
87 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel, WebInspector.ResourceTreeModel.EventTypes.DOMContentLoaded, this._domContentLoad edEventFired, this); | 86 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel, WebInspector.ResourceTreeModel.EventTypes.DOMContentLoaded, this._domContentLoad edEventFired, this); |
88 } | 87 } |
89 | 88 |
89 WebInspector.NetworkLogView._isFilteredOutSymbol = Symbol("isFilteredOut"); | |
90 WebInspector.NetworkLogView._isMatchingSearchQuerySymbol = Symbol("isMatchingSea rchQuery"); | |
91 | |
90 WebInspector.NetworkLogView.HTTPSchemas = {"http": true, "https": true, "ws": tr ue, "wss": true}; | 92 WebInspector.NetworkLogView.HTTPSchemas = {"http": true, "https": true, "ws": tr ue, "wss": true}; |
91 WebInspector.NetworkLogView._responseHeaderColumns = ["Cache-Control", "Connecti on", "Content-Encoding", "Content-Length", "ETag", "Keep-Alive", "Last-Modified" , "Server", "Vary"]; | 93 WebInspector.NetworkLogView._responseHeaderColumns = ["Cache-Control", "Connecti on", "Content-Encoding", "Content-Length", "ETag", "Keep-Alive", "Last-Modified" , "Server", "Vary"]; |
92 WebInspector.NetworkLogView.defaultColumnsVisibility = { | 94 WebInspector.NetworkLogView.defaultColumnsVisibility = { |
93 method: true, status: true, scheme: false, domain: false, remoteAddress: fal se, type: true, initiator: true, cookies: false, setCookies: false, size: true, time: true, connectionId: false, | 95 method: true, status: true, scheme: false, domain: false, remoteAddress: fal se, type: true, initiator: true, cookies: false, setCookies: false, size: true, time: true, connectionId: false, |
94 "Cache-Control": false, "Connection": false, "Content-Encoding": false, "Con tent-Length": false, "ETag": false, "Keep-Alive": false, "Last-Modified": false, "Server": false, "Vary": false | 96 "Cache-Control": false, "Connection": false, "Content-Encoding": false, "Con tent-Length": false, "ETag": false, "Keep-Alive": false, "Last-Modified": false, "Server": false, "Vary": false |
95 }; | 97 }; |
96 WebInspector.NetworkLogView._defaultRefreshDelay = 500; | 98 WebInspector.NetworkLogView._defaultRefreshDelay = 500; |
97 | 99 |
98 /** @enum {string} */ | 100 /** @enum {string} */ |
99 WebInspector.NetworkLogView.FilterType = { | 101 WebInspector.NetworkLogView.FilterType = { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
160 */ | 162 */ |
161 targetRemoved: function(target) | 163 targetRemoved: function(target) |
162 { | 164 { |
163 }, | 165 }, |
164 | 166 |
165 /** | 167 /** |
166 * @return {boolean} | 168 * @return {boolean} |
167 */ | 169 */ |
168 allowRequestSelection: function() | 170 allowRequestSelection: function() |
169 { | 171 { |
170 return this._allowRequestSelection; | 172 return !this._allowPopover; |
vsevik
2014/11/14 10:52:59
This is not semantically correct. allowPopover and
eustas
2014/11/14 12:02:43
Fixed. Removed allowPopover
| |
171 }, | 173 }, |
172 | 174 |
173 _addFilters: function() | 175 _addFilters: function() |
174 { | 176 { |
175 this._textFilterUI = new WebInspector.TextFilterUI(); | 177 this._textFilterUI = new WebInspector.TextFilterUI(); |
176 this._textFilterUI.addEventListener(WebInspector.FilterUI.Events.FilterC hanged, this._filterChanged, this); | 178 this._textFilterUI.addEventListener(WebInspector.FilterUI.Events.FilterC hanged, this._filterChanged, this); |
177 this._filterBar.addFilter(this._textFilterUI); | 179 this._filterBar.addFilter(this._textFilterUI); |
178 | 180 |
179 var types = []; | 181 var types = []; |
180 for (var typeId in WebInspector.resourceTypes) { | 182 for (var typeId in WebInspector.resourceTypes) { |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
584 var transferSize = 0; | 586 var transferSize = 0; |
585 var selectedRequestsNumber = 0; | 587 var selectedRequestsNumber = 0; |
586 var selectedTransferSize = 0; | 588 var selectedTransferSize = 0; |
587 var baseTime = -1; | 589 var baseTime = -1; |
588 var maxTime = -1; | 590 var maxTime = -1; |
589 var nodes = this._nodesByRequestId.valuesArray(); | 591 var nodes = this._nodesByRequestId.valuesArray(); |
590 for (var i = 0; i < nodes.length; ++i) { | 592 for (var i = 0; i < nodes.length; ++i) { |
591 var request = nodes[i].request(); | 593 var request = nodes[i].request(); |
592 var requestTransferSize = request.transferSize; | 594 var requestTransferSize = request.transferSize; |
593 transferSize += requestTransferSize; | 595 transferSize += requestTransferSize; |
594 if (!nodes[i]._isFilteredOut) { | 596 if (!nodes[i][WebInspector.NetworkLogView._isFilteredOutSymbol]) { |
595 selectedRequestsNumber++; | 597 selectedRequestsNumber++; |
596 selectedTransferSize += requestTransferSize; | 598 selectedTransferSize += requestTransferSize; |
597 } | 599 } |
598 if (request.url === request.target().resourceTreeModel.inspectedPage URL()) | 600 if (request.url === request.target().resourceTreeModel.inspectedPage URL()) |
599 baseTime = request.startTime; | 601 baseTime = request.startTime; |
600 if (request.endTime > maxTime) | 602 if (request.endTime > maxTime) |
601 maxTime = request.endTime; | 603 maxTime = request.endTime; |
602 } | 604 } |
603 var text = ""; | 605 var text = ""; |
604 if (selectedRequestsNumber !== requestsNumber) { | 606 if (selectedRequestsNumber !== requestsNumber) { |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
789 boundariesChanged = calculator.updateBoundariesForEventTime(this._ma inRequestDOMContentLoadedTime) || boundariesChanged; | 791 boundariesChanged = calculator.updateBoundariesForEventTime(this._ma inRequestDOMContentLoadedTime) || boundariesChanged; |
790 } | 792 } |
791 | 793 |
792 var dataGrid = this._dataGrid; | 794 var dataGrid = this._dataGrid; |
793 var rootNode = dataGrid.rootNode(); | 795 var rootNode = dataGrid.rootNode(); |
794 var nodesToInsert = []; | 796 var nodesToInsert = []; |
795 for (var requestId in this._staleRequestIds) { | 797 for (var requestId in this._staleRequestIds) { |
796 var node = this._nodesByRequestId.get(requestId); | 798 var node = this._nodesByRequestId.get(requestId); |
797 if (!node) | 799 if (!node) |
798 continue; | 800 continue; |
799 if (!node._isFilteredOut) | 801 if (!node[WebInspector.NetworkLogView._isFilteredOutSymbol]) |
800 rootNode.removeChild(node); | 802 rootNode.removeChild(node); |
801 node._isFilteredOut = !this._applyFilter(node); | 803 node[WebInspector.NetworkLogView._isFilteredOutSymbol] = !this._appl yFilter(node); |
802 if (!node._isFilteredOut) | 804 if (!node[WebInspector.NetworkLogView._isFilteredOutSymbol]) |
803 nodesToInsert.push(node); | 805 nodesToInsert.push(node); |
804 } | 806 } |
805 | 807 |
806 for (var i = 0; i < nodesToInsert.length; ++i) { | 808 for (var i = 0; i < nodesToInsert.length; ++i) { |
807 var node = nodesToInsert[i]; | 809 var node = nodesToInsert[i]; |
808 var request = node.request(); | 810 var request = node.request(); |
809 node.refresh(); | 811 node.refresh(); |
810 dataGrid.insertChild(node); | 812 dataGrid.insertChild(node); |
811 node._isMatchingSearchQuery = this._matchRequest(request); | 813 node[WebInspector.NetworkLogView._isMatchingSearchQuerySymbol] = thi s._matchRequest(request); |
812 if (calculator.updateBoundaries(request)) | 814 if (calculator.updateBoundaries(request)) |
813 boundariesChanged = true; | 815 boundariesChanged = true; |
814 } | 816 } |
815 | 817 |
816 this._highlightNthMatchedRequestForSearch(this._updateMatchCountAndFindM atchIndex(this._currentMatchedRequestNode), false); | 818 this._highlightNthMatchedRequestForSearch(this._updateMatchCountAndFindM atchIndex(this._currentMatchedRequestNode), false); |
817 | 819 |
818 if (boundariesChanged) { | 820 if (boundariesChanged) { |
819 // The boundaries changed, so all item graphs are stale. | 821 // The boundaries changed, so all item graphs are stale. |
820 this._updateDividersIfNeeded(); | 822 this._updateDividersIfNeeded(); |
821 var nodes = this._nodesByRequestId.valuesArray(); | 823 var nodes = this._nodesByRequestId.valuesArray(); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
882 this._appendRequest(request); | 884 this._appendRequest(request); |
883 } | 885 } |
884 }, | 886 }, |
885 | 887 |
886 /** | 888 /** |
887 * @param {!WebInspector.NetworkRequest} request | 889 * @param {!WebInspector.NetworkRequest} request |
888 */ | 890 */ |
889 _appendRequest: function(request) | 891 _appendRequest: function(request) |
890 { | 892 { |
891 var node = new WebInspector.NetworkDataGridNode(this, request); | 893 var node = new WebInspector.NetworkDataGridNode(this, request); |
894 node[WebInspector.NetworkLogView._isFilteredOutSymbol] = true; | |
895 node[WebInspector.NetworkLogView._isMatchingSearchQuerySymbol] = false; | |
892 | 896 |
893 // In case of redirect request id is reassigned to a redirected | 897 // In case of redirect request id is reassigned to a redirected |
894 // request and we need to update _nodesByRequestId and search results. | 898 // request and we need to update _nodesByRequestId and search results. |
895 var originalRequestNode = this._nodesByRequestId.get(request.requestId); | 899 var originalRequestNode = this._nodesByRequestId.get(request.requestId); |
896 if (originalRequestNode) | 900 if (originalRequestNode) |
897 this._nodesByRequestId.set(originalRequestNode.request().requestId, originalRequestNode); | 901 this._nodesByRequestId.set(originalRequestNode.request().requestId, originalRequestNode); |
898 this._nodesByRequestId.set(request.requestId, node); | 902 this._nodesByRequestId.set(request.requestId, node); |
899 | 903 |
900 // Pull all the redirects of the main request upon commit load. | 904 // Pull all the redirects of the main request upon commit load. |
901 if (request.redirects) { | 905 if (request.redirects) { |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1350 */ | 1354 */ |
1351 _highlightNthMatchedRequestForSearch: function(n, reveal) | 1355 _highlightNthMatchedRequestForSearch: function(n, reveal) |
1352 { | 1356 { |
1353 this._removeAllHighlights(); | 1357 this._removeAllHighlights(); |
1354 | 1358 |
1355 /** @type {!Array.<!WebInspector.NetworkDataGridNode>} */ | 1359 /** @type {!Array.<!WebInspector.NetworkDataGridNode>} */ |
1356 var nodes = this._dataGrid.rootNode().children; | 1360 var nodes = this._dataGrid.rootNode().children; |
1357 var matchCount = 0; | 1361 var matchCount = 0; |
1358 var node = null; | 1362 var node = null; |
1359 for (var i = 0; i < nodes.length; ++i) { | 1363 for (var i = 0; i < nodes.length; ++i) { |
1360 if (nodes[i]._isMatchingSearchQuery) { | 1364 if (nodes[i][WebInspector.NetworkLogView._isMatchingSearchQuerySymbo l]) { |
1361 if (matchCount === n) { | 1365 if (matchCount === n) { |
1362 node = nodes[i]; | 1366 node = nodes[i]; |
1363 break; | 1367 break; |
1364 } | 1368 } |
1365 matchCount++; | 1369 matchCount++; |
1366 } | 1370 } |
1367 } | 1371 } |
1368 if (!node) { | 1372 if (!node) { |
1369 this._currentMatchedRequestNode = null; | 1373 this._currentMatchedRequestNode = null; |
1370 return; | 1374 return; |
(...skipping 23 matching lines...) Expand all Loading... | |
1394 performSearch: function(searchConfig, shouldJump, jumpBackwards) | 1398 performSearch: function(searchConfig, shouldJump, jumpBackwards) |
1395 { | 1399 { |
1396 var query = searchConfig.query; | 1400 var query = searchConfig.query; |
1397 var currentMatchedRequestNode = this._currentMatchedRequestNode; | 1401 var currentMatchedRequestNode = this._currentMatchedRequestNode; |
1398 this._clearSearchMatchedList(); | 1402 this._clearSearchMatchedList(); |
1399 this._searchRegExp = createPlainTextSearchRegex(query, "i"); | 1403 this._searchRegExp = createPlainTextSearchRegex(query, "i"); |
1400 | 1404 |
1401 /** @type {!Array.<!WebInspector.NetworkDataGridNode>} */ | 1405 /** @type {!Array.<!WebInspector.NetworkDataGridNode>} */ |
1402 var nodes = this._dataGrid.rootNode().children; | 1406 var nodes = this._dataGrid.rootNode().children; |
1403 for (var i = 0; i < nodes.length; ++i) | 1407 for (var i = 0; i < nodes.length; ++i) |
1404 nodes[i]._isMatchingSearchQuery = this._matchRequest(nodes[i].reques t()); | 1408 nodes[i][WebInspector.NetworkLogView._isMatchingSearchQuerySymbol] = this._matchRequest(nodes[i].request()); |
1405 var newMatchedRequestIndex = this._updateMatchCountAndFindMatchIndex(cur rentMatchedRequestNode); | 1409 var newMatchedRequestIndex = this._updateMatchCountAndFindMatchIndex(cur rentMatchedRequestNode); |
1406 if (!newMatchedRequestIndex && jumpBackwards) | 1410 if (!newMatchedRequestIndex && jumpBackwards) |
1407 newMatchedRequestIndex = this._matchedRequestCount - 1; | 1411 newMatchedRequestIndex = this._matchedRequestCount - 1; |
1408 this._highlightNthMatchedRequestForSearch(newMatchedRequestIndex, should Jump); | 1412 this._highlightNthMatchedRequestForSearch(newMatchedRequestIndex, should Jump); |
1409 }, | 1413 }, |
1410 | 1414 |
1411 /** | 1415 /** |
1412 * @return {boolean} | 1416 * @return {boolean} |
1413 */ | 1417 */ |
1414 supportsCaseSensitiveSearch: function() | 1418 supportsCaseSensitiveSearch: function() |
(...skipping 13 matching lines...) Expand all Loading... | |
1428 * @param {?WebInspector.NetworkDataGridNode} node | 1432 * @param {?WebInspector.NetworkDataGridNode} node |
1429 * @return {number} | 1433 * @return {number} |
1430 */ | 1434 */ |
1431 _updateMatchCountAndFindMatchIndex: function(node) | 1435 _updateMatchCountAndFindMatchIndex: function(node) |
1432 { | 1436 { |
1433 /** @type {!Array.<!WebInspector.NetworkDataGridNode>} */ | 1437 /** @type {!Array.<!WebInspector.NetworkDataGridNode>} */ |
1434 var nodes = this._dataGrid.rootNode().children; | 1438 var nodes = this._dataGrid.rootNode().children; |
1435 var matchCount = 0; | 1439 var matchCount = 0; |
1436 var matchIndex = 0; | 1440 var matchIndex = 0; |
1437 for (var i = 0; i < nodes.length; ++i) { | 1441 for (var i = 0; i < nodes.length; ++i) { |
1438 if (!nodes[i]._isMatchingSearchQuery) | 1442 if (!nodes[i][WebInspector.NetworkLogView._isMatchingSearchQuerySymb ol]) |
1439 continue; | 1443 continue; |
1440 if (node === nodes[i]) | 1444 if (node === nodes[i]) |
1441 matchIndex = matchCount; | 1445 matchIndex = matchCount; |
1442 matchCount++; | 1446 matchCount++; |
1443 } | 1447 } |
1444 if (this._matchedRequestCount !== matchCount) { | 1448 if (this._matchedRequestCount !== matchCount) { |
1445 this._matchedRequestCount = matchCount; | 1449 this._matchedRequestCount = matchCount; |
1446 this.dispatchEventToListeners(WebInspector.NetworkLogView.EventTypes .SearchCountUpdated, matchCount); | 1450 this.dispatchEventToListeners(WebInspector.NetworkLogView.EventTypes .SearchCountUpdated, matchCount); |
1447 } | 1451 } |
1448 return matchIndex; | 1452 return matchIndex; |
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2104 _toggleGridMode: function() | 2108 _toggleGridMode: function() |
2105 { | 2109 { |
2106 if (this._viewingRequestMode) { | 2110 if (this._viewingRequestMode) { |
2107 this._viewingRequestMode = false; | 2111 this._viewingRequestMode = false; |
2108 this.element.classList.remove("viewing-resource"); | 2112 this.element.classList.remove("viewing-resource"); |
2109 this._splitView.hideMain(); | 2113 this._splitView.hideMain(); |
2110 } | 2114 } |
2111 | 2115 |
2112 this._networkLogView.switchViewMode(true); | 2116 this._networkLogView.switchViewMode(true); |
2113 this._networkLogView.setAllowPopover(true); | 2117 this._networkLogView.setAllowPopover(true); |
2114 this._networkLogView._allowRequestSelection = false; | |
2115 }, | 2118 }, |
2116 | 2119 |
2117 _toggleViewingRequestMode: function() | 2120 _toggleViewingRequestMode: function() |
2118 { | 2121 { |
2119 if (this._viewingRequestMode) | 2122 if (this._viewingRequestMode) |
2120 return; | 2123 return; |
2121 this._viewingRequestMode = true; | 2124 this._viewingRequestMode = true; |
2122 | 2125 |
2123 this.element.classList.add("viewing-resource"); | 2126 this.element.classList.add("viewing-resource"); |
2124 this._splitView.showBoth(); | 2127 this._splitView.showBoth(); |
2125 this._networkLogView.setAllowPopover(false); | 2128 this._networkLogView.setAllowPopover(false); |
2126 this._networkLogView._allowRequestSelection = true; | |
2127 this._networkLogView.switchViewMode(false); | 2129 this._networkLogView.switchViewMode(false); |
2128 }, | 2130 }, |
2129 | 2131 |
2130 /** | 2132 /** |
2131 * @param {!WebInspector.SearchableView.SearchConfig} searchConfig | 2133 * @param {!WebInspector.SearchableView.SearchConfig} searchConfig |
2132 * @param {boolean} shouldJump | 2134 * @param {boolean} shouldJump |
2133 * @param {boolean=} jumpBackwards | 2135 * @param {boolean=} jumpBackwards |
2134 */ | 2136 */ |
2135 performSearch: function(searchConfig, shouldJump, jumpBackwards) | 2137 performSearch: function(searchConfig, shouldJump, jumpBackwards) |
2136 { | 2138 { |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2605 * @extends {WebInspector.SortableDataGridNode} | 2607 * @extends {WebInspector.SortableDataGridNode} |
2606 * @param {!WebInspector.NetworkLogView} parentView | 2608 * @param {!WebInspector.NetworkLogView} parentView |
2607 * @param {!WebInspector.NetworkRequest} request | 2609 * @param {!WebInspector.NetworkRequest} request |
2608 */ | 2610 */ |
2609 WebInspector.NetworkDataGridNode = function(parentView, request) | 2611 WebInspector.NetworkDataGridNode = function(parentView, request) |
2610 { | 2612 { |
2611 WebInspector.SortableDataGridNode.call(this, {}); | 2613 WebInspector.SortableDataGridNode.call(this, {}); |
2612 this._parentView = parentView; | 2614 this._parentView = parentView; |
2613 this._request = request; | 2615 this._request = request; |
2614 this._linkifier = new WebInspector.Linkifier(); | 2616 this._linkifier = new WebInspector.Linkifier(); |
2615 this._isFilteredOut = true; | |
2616 this._isMatchingSearchQuery = false; | |
2617 this._staleGraph = true; | 2617 this._staleGraph = true; |
2618 } | 2618 } |
2619 | 2619 |
2620 WebInspector.NetworkDataGridNode._hoveredRowSymbol = Symbol("hoveredRow"); | 2620 WebInspector.NetworkDataGridNode._hoveredRowSymbol = Symbol("hoveredRow"); |
2621 | 2621 |
2622 WebInspector.NetworkDataGridNode.prototype = { | 2622 WebInspector.NetworkDataGridNode.prototype = { |
2623 /** | 2623 /** |
2624 * @return {!WebInspector.NetworkRequest} | 2624 * @return {!WebInspector.NetworkRequest} |
2625 */ | 2625 */ |
2626 request: function() | 2626 request: function() |
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3302 this._writeProgress.done(); | 3302 this._writeProgress.done(); |
3303 return; | 3303 return; |
3304 } | 3304 } |
3305 const chunkSize = 100000; | 3305 const chunkSize = 100000; |
3306 var text = this._text.substring(this._bytesWritten, this._bytesWritten + chunkSize); | 3306 var text = this._text.substring(this._bytesWritten, this._bytesWritten + chunkSize); |
3307 this._bytesWritten += text.length; | 3307 this._bytesWritten += text.length; |
3308 stream.write(text, this._writeNextChunk.bind(this)); | 3308 stream.write(text, this._writeNextChunk.bind(this)); |
3309 this._writeProgress.setWorked(this._bytesWritten); | 3309 this._writeProgress.setWorked(this._bytesWritten); |
3310 } | 3310 } |
3311 } | 3311 } |
OLD | NEW |