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

Issue 1802123002: Unify Resource loading status tracking (Closed)

Created:
4 years, 9 months ago by Nate Chapin
Modified:
4 years, 9 months ago
Reviewers:
hiroshige, Mike West
CC:
chromium-reviews, tyoshino+watch_chromium.org, kozyatinskiy+blink_chromium.org, blink-reviews-css, devtools-reviews_chromium.org, loading-reviews+fetch_chromium.org, Yoav Weiss, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, caseq+blink_chromium.org, apavlov+blink_chromium.org, gavinp+loader_chromium.org, darktears, blink-reviews, blink-reviews-bindings_chromium.org, sergeyv+blink_chromium.org, loading-reviews_chromium.org, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Unify Resource loading status tracking Resource keeps an m_loading bit as well as an m_status enum. m_loading mostly corresponds to m_status == Pending, so unify them. FontResource also keeps a separate state enum. Merge most of that into Resource::Status. Centralize image deferral logic in ResourceFetcher, rather than having ImageResource::load() and ImageResource::fetch() participate. BUG= Committed: https://crrev.com/32360d4f64daee1daa4bb4d40d66324da0e782ba Cr-Commit-Position: refs/heads/master@{#383326}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 18

Patch Set 6 : Address comments #

Patch Set 7 : Moar comments #

Patch Set 8 : Rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -109 lines) Patch
M third_party/WebKit/LayoutTests/permissionclient/image-permissions-expected.txt View 1 chunk +3 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp View 1 2 3 4 5 6 8 chunks +13 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/FontResource.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/FontResource.cpp View 1 2 3 4 5 6 7 4 chunks +13 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResource.h View 1 2 3 4 5 6 7 2 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResource.cpp View 1 2 3 4 5 6 7 6 chunks +2 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/MemoryCacheTest.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/RawResourceTest.cpp View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.cpp View 1 2 3 4 5 6 7 9 chunks +7 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.h View 1 2 3 4 5 6 7 3 chunks +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 1 2 3 4 5 6 7 4 chunks +19 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp View 1 chunk +6 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/loader/ImageLoader.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (5 generated)
Nate Chapin
https://codereview.chromium.org/1802123002/diff/80001/third_party/WebKit/Source/core/fetch/Resource.cpp File third_party/WebKit/Source/core/fetch/Resource.cpp (left): https://codereview.chromium.org/1802123002/diff/80001/third_party/WebKit/Source/core/fetch/Resource.cpp#oldcode676 third_party/WebKit/Source/core/fetch/Resource.cpp:676: if (m_status != Cached) This clause is weird. If ...
4 years, 9 months ago (2016-03-18 21:24:06 UTC) #3
hiroshige
https://codereview.chromium.org/1802123002/diff/80001/third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp File third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp (right): https://codereview.chromium.org/1802123002/diff/80001/third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp#newcode94 third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp:94: resource->setStatus(Resource::Cached); If setStatus(Cached) and finish() at Line 397 etc. ...
4 years, 9 months ago (2016-03-18 23:21:20 UTC) #4
Nate Chapin
https://codereview.chromium.org/1802123002/diff/80001/third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp File third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp (right): https://codereview.chromium.org/1802123002/diff/80001/third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp#newcode94 third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp:94: resource->setStatus(Resource::Cached); On 2016/03/18 23:21:20, hiroshige wrote: > If setStatus(Cached) ...
4 years, 9 months ago (2016-03-21 22:04:01 UTC) #5
hiroshige
https://codereview.chromium.org/1802123002/diff/80001/third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp File third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp (right): https://codereview.chromium.org/1802123002/diff/80001/third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp#newcode94 third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp:94: resource->setStatus(Resource::Cached); On 2016/03/21 22:04:01, Nate Chapin wrote: > On ...
4 years, 9 months ago (2016-03-22 18:21:33 UTC) #6
Nate Chapin
https://codereview.chromium.org/1802123002/diff/80001/third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp File third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp (right): https://codereview.chromium.org/1802123002/diff/80001/third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp#newcode94 third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp:94: resource->setStatus(Resource::Cached); On 2016/03/22 18:21:33, hiroshige wrote: > On 2016/03/21 ...
4 years, 9 months ago (2016-03-22 19:51:23 UTC) #7
Nate Chapin
On 2016/03/22 19:51:23, Nate Chapin wrote: > https://codereview.chromium.org/1802123002/diff/80001/third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp > File third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp (right): > > https://codereview.chromium.org/1802123002/diff/80001/third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp#newcode94 ...
4 years, 9 months ago (2016-03-25 17:11:49 UTC) #8
hiroshige
lgtm.
4 years, 9 months ago (2016-03-25 17:35:36 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1802123002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1802123002/140001
4 years, 9 months ago (2016-03-25 17:36:25 UTC) #11
hiroshige
https://codereview.chromium.org/1802123002/diff/140001/third_party/WebKit/LayoutTests/permissionclient/image-permissions-expected.txt File third_party/WebKit/LayoutTests/permissionclient/image-permissions-expected.txt (right): https://codereview.chromium.org/1802123002/diff/140001/third_party/WebKit/LayoutTests/permissionclient/image-permissions-expected.txt#newcode3 third_party/WebKit/LayoutTests/permissionclient/image-permissions-expected.txt:3: PERMISSION CLIENT: allowImage((file test):permissionclient/resources/boston.gif): false Er, one more comment: ...
4 years, 9 months ago (2016-03-25 17:38:22 UTC) #12
Nate Chapin
On 2016/03/25 17:38:22, hiroshige wrote: > https://codereview.chromium.org/1802123002/diff/140001/third_party/WebKit/LayoutTests/permissionclient/image-permissions-expected.txt > File > third_party/WebKit/LayoutTests/permissionclient/image-permissions-expected.txt > (right): > > ...
4 years, 9 months ago (2016-03-25 17:40:24 UTC) #13
hiroshige
On 2016/03/25 17:40:24, Nate Chapin wrote: > On 2016/03/25 17:38:22, hiroshige wrote: > > > ...
4 years, 9 months ago (2016-03-25 17:42:24 UTC) #14
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 9 months ago (2016-03-25 18:58:42 UTC) #16
commit-bot: I haz the power
4 years, 9 months ago (2016-03-25 18:59:57 UTC) #18
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/32360d4f64daee1daa4bb4d40d66324da0e782ba
Cr-Commit-Position: refs/heads/master@{#383326}

Powered by Google App Engine
This is Rietveld 408576698