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

Issue 2749043005: [DevTools] Make NetworkLog a singleton, and not an SDKModel (Closed)

Created:
3 years, 9 months ago by dgozman
Modified:
3 years, 9 months ago
Reviewers:
caseq, allada
CC:
chromium-reviews, extensions-reviews_chromium.org, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, chromium-apps-reviews_chromium.org, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] Make NetworkLog a singleton, and not an SDKModel NetworkLog is a presentation model, which keeps track of interesting network requests (between page loads actually) for our UI. It is also created in TargetManager which is a layering violation. This patch makes it a separate entity which can even be extracted out of SDK. BUG=none Review-Url: https://codereview.chromium.org/2749043005 Cr-Commit-Position: refs/heads/master@{#457663} Committed: https://chromium.googlesource.com/chromium/src/+/e8fb18a01d4fdfaa6c3007df47bb7d2ba709afed

Patch Set 1 #

Total comments: 10

Patch Set 2 : review comments addressed #

Total comments: 16

Patch Set 3 : review comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -169 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js View 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/network/download.html View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/network/network-datareceived.html View 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/network/network-xhr-data-received-async-response-type-blob.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/network/network-xsl-content.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/network/x-frame-options-deny.html View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/sources/debugger/async-callstack-network-initiator-image.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/network/network-status-non-http.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/audits/AuditController.js View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/components/Linkifier.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console_model/ConsoleModel.js View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/extensions/ExtensionServer.js View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/main/Main.js View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js View 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js View 2 chunks +2 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/HAREntry.js View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/NetworkLog.js View 1 2 7 chunks +137 lines, -130 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js View 1 chunk +1 line, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (11 generated)
dgozman
Could you please take a look at this speculative patch? WDYT?
3 years, 9 months ago (2017-03-16 19:01:39 UTC) #3
caseq
https://codereview.chromium.org/2749043005/diff/1/third_party/WebKit/Source/devtools/front_end/sdk/NetworkLog.js File third_party/WebKit/Source/devtools/front_end/sdk/NetworkLog.js (right): https://codereview.chromium.org/2749043005/diff/1/third_party/WebKit/Source/devtools/front_end/sdk/NetworkLog.js#newcode83 third_party/WebKit/Source/devtools/front_end/sdk/NetworkLog.js:83: for (var i = 0; i < this._requests.length; ++i) ...
3 years, 9 months ago (2017-03-16 20:27:47 UTC) #5
dgozman
https://codereview.chromium.org/2749043005/diff/1/third_party/WebKit/Source/devtools/front_end/sdk/NetworkLog.js File third_party/WebKit/Source/devtools/front_end/sdk/NetworkLog.js (right): https://codereview.chromium.org/2749043005/diff/1/third_party/WebKit/Source/devtools/front_end/sdk/NetworkLog.js#newcode83 third_party/WebKit/Source/devtools/front_end/sdk/NetworkLog.js:83: for (var i = 0; i < this._requests.length; ++i) ...
3 years, 9 months ago (2017-03-16 20:51:21 UTC) #6
caseq
lgtm
3 years, 9 months ago (2017-03-16 20:53:35 UTC) #9
allada
https://codereview.chromium.org/2749043005/diff/20001/third_party/WebKit/Source/devtools/front_end/sdk/NetworkLog.js File third_party/WebKit/Source/devtools/front_end/sdk/NetworkLog.js (right): https://codereview.chromium.org/2749043005/diff/20001/third_party/WebKit/Source/devtools/front_end/sdk/NetworkLog.js#newcode37 third_party/WebKit/Source/devtools/front_end/sdk/NetworkLog.js:37: this._requests = []; It looks like we are only ...
3 years, 9 months ago (2017-03-16 21:58:01 UTC) #10
caseq
On 2017/03/16 21:58:01, allada wrote: > https://codereview.chromium.org/2749043005/diff/20001/third_party/WebKit/Source/devtools/front_end/sdk/NetworkLog.js#newcode99 > third_party/WebKit/Source/devtools/front_end/sdk/NetworkLog.js:99: return map ? > Array.from(map.values()) : ...
3 years, 9 months ago (2017-03-16 22:13:11 UTC) #11
dgozman
https://codereview.chromium.org/2749043005/diff/20001/third_party/WebKit/Source/devtools/front_end/sdk/NetworkLog.js File third_party/WebKit/Source/devtools/front_end/sdk/NetworkLog.js (right): https://codereview.chromium.org/2749043005/diff/20001/third_party/WebKit/Source/devtools/front_end/sdk/NetworkLog.js#newcode209 third_party/WebKit/Source/devtools/front_end/sdk/NetworkLog.js:209: while (checkRequest) { On 2017/03/16 21:58:00, allada wrote: > ...
3 years, 9 months ago (2017-03-17 00:51:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2749043005/40001
3 years, 9 months ago (2017-03-17 00:51:37 UTC) #17
commit-bot: I haz the power
3 years, 9 months ago (2017-03-17 02:38:22 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/e8fb18a01d4fdfaa6c3007df47bb...

Powered by Google App Engine
This is Rietveld 408576698