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

Issue 2413233003: DevTools: introduce WI.Resource.contentSize() and WI.Resource.lastModified() (Closed)

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

Description

DevTools: introduce WI.Resource.contentSize() and WI.Resource.lastModified() The patch adds contentSize() and lastModified() methods to the WI.Resource. The WI.Resource gets the data either from the resource payload or from the attached request, if any. BUG=none Committed: https://crrev.com/bdb833dea5283a3017b7d291ce984317a4c34905 Cr-Commit-Position: refs/heads/master@{#425508}

Patch Set 1 #

Patch Set 2 : add tests #

Total comments: 2

Patch Set 3 : address comments #

Patch Set 4 : validate date #

Patch Set 5 : always send last-modified in php script #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -18 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/inspector/resource-tree/cached-resource-metadata.html View 1 1 chunk +43 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/resource-tree/cached-resource-metadata-expected.txt View 1 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/resource-tree/resource-metadata.html View 1 1 chunk +41 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector/resource-tree/resource-metadata-expected.txt View 1 1 chunk +6 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/inspector/resource-tree/resources/script-with-constant-last-modified.php View 1 2 3 4 1 chunk +4 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/browser_protocol.json View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/platform/utilities.js View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/NetworkManager.js View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/Resource.js View 1 2 3 3 chunks +29 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js View 1 2 5 chunks +10 lines, -9 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 19 (13 generated)
lushnikov
Please, take a look
4 years, 2 months ago (2016-10-14 05:39:25 UTC) #2
dgozman
lgtm https://codereview.chromium.org/2413233003/diff/20001/third_party/WebKit/Source/devtools/front_end/sdk/Resource.js File third_party/WebKit/Source/devtools/front_end/sdk/Resource.js (right): https://codereview.chromium.org/2413233003/diff/20001/third_party/WebKit/Source/devtools/front_end/sdk/Resource.js#newcode41 third_party/WebKit/Source/devtools/front_end/sdk/Resource.js:41: * @param {?number} lastModified Let's pass ?Date instead.
4 years, 2 months ago (2016-10-14 18:48:51 UTC) #8
lushnikov
Also, added forgotten Date validation on the Resource level https://codereview.chromium.org/2413233003/diff/20001/third_party/WebKit/Source/devtools/front_end/sdk/Resource.js File third_party/WebKit/Source/devtools/front_end/sdk/Resource.js (right): https://codereview.chromium.org/2413233003/diff/20001/third_party/WebKit/Source/devtools/front_end/sdk/Resource.js#newcode41 third_party/WebKit/Source/devtools/front_end/sdk/Resource.js:41: ...
4 years, 2 months ago (2016-10-14 20:56:28 UTC) #9
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/2413233003/80001
4 years, 2 months ago (2016-10-14 22:21:16 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-14 23:30:43 UTC) #17
commit-bot: I haz the power
4 years, 2 months ago (2016-10-14 23:33:15 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/bdb833dea5283a3017b7d291ce984317a4c34905
Cr-Commit-Position: refs/heads/master@{#425508}

Powered by Google App Engine
This is Rietveld 408576698