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

Issue 1889973002: Refactoring starting a resource load (Closed)

Created:
4 years, 8 months ago by Nate Chapin
Modified:
4 years, 6 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, gavinp+loader_chromium.org, loading-reviews+fetch_chromium.org, rwlbuis, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactoring starting a resource load Move most of Resource::load to a new ResourceFetcher::startLoad, which is well-positioned to verify that FetchContext is still valid. This also means that deferred loads call ResourceFetcher to actually start the load, just as they called ResourceFetcher to initialize the load. BUG=603428 Committed: https://crrev.com/5b689eeb4cc9dc5636a8db73c79a2674a154e967 Cr-Commit-Position: refs/heads/master@{#399017}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 12

Patch Set 5 : Wild idea for making requestForLoadStart() const #

Patch Set 6 : Rebase #

Patch Set 7 : Fix failing tests #

Patch Set 8 : rebase #

Patch Set 9 : rebase #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Total comments: 2

Patch Set 14 : #

Total comments: 1

Patch Set 15 : #

Patch Set 16 : Rebase #

Patch Set 17 : #

Patch Set 18 : Rebase #

Patch Set 19 : Fix a browser_test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -114 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/loading/promote-img-in-viewport-priority-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/elements/styles-1/css-outline-expected.txt View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSImageValue.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/FetchContext.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/FetchContext.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResource.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 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 8 9 10 11 12 13 14 15 4 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +2 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 16 chunks +48 lines, -47 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceLoader.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceLoader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +10 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ScriptResource.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +16 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/PingLoader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +3 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 39 (18 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1889973002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1889973002/20001
4 years, 8 months ago (2016-04-15 19:23:10 UTC) #2
Nate Chapin
This is a followup to https://chromium.googlesource.com/chromium/src/+/fa123915549f2be2b85ed62f2a43ab1b8c5aace1, partly because I think this way is cleaner, and ...
4 years, 8 months ago (2016-04-18 19:56:55 UTC) #5
Yoav Weiss
https://codereview.chromium.org/1889973002/diff/60001/third_party/WebKit/Source/core/fetch/ImageResource.cpp File third_party/WebKit/Source/core/fetch/ImageResource.cpp (right): https://codereview.chromium.org/1889973002/diff/60001/third_party/WebKit/Source/core/fetch/ImageResource.cpp#newcode506 third_party/WebKit/Source/core/fetch/ImageResource.cpp:506: fetcher->startLoad(this); Can you DCHECK that fetcher is non-null here? ...
4 years, 8 months ago (2016-04-20 08:52:08 UTC) #7
hiroshige
https://codereview.chromium.org/1889973002/diff/60001/third_party/WebKit/Source/core/fetch/Resource.cpp File third_party/WebKit/Source/core/fetch/Resource.cpp (left): https://codereview.chromium.org/1889973002/diff/60001/third_party/WebKit/Source/core/fetch/Resource.cpp#oldcode258 third_party/WebKit/Source/core/fetch/Resource.cpp:258: if (!fetcher->loadingTaskRunner()) Is this check removed? (Or loadingTaskRunner() is ...
4 years, 8 months ago (2016-04-21 08:27:40 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1889973002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1889973002/80001
4 years, 8 months ago (2016-04-22 20:30:51 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/126519)
4 years, 8 months ago (2016-04-22 20:49:10 UTC) #12
Mike West
I think the approach looks reasonable, but the bots are super-unhappy, and the failures look ...
4 years, 8 months ago (2016-04-26 07:55:44 UTC) #13
Nate Chapin
Ok, I think I've worked through the problems and ended with something I'm more or ...
4 years, 7 months ago (2016-05-18 23:56:05 UTC) #14
Mike West
Yup. I still think it looks reasonable (sorry for the delay, was OOO): LGTM.
4 years, 6 months ago (2016-05-30 11:05:39 UTC) #15
Nate Chapin
On 2016/05/30 11:05:39, Mike West (OOO until 30th) wrote: > Yup. I still think it ...
4 years, 6 months ago (2016-05-31 21:35:40 UTC) #16
Yoav Weiss
On 2016/05/31 21:35:40, Nate Chapin wrote: > On 2016/05/30 11:05:39, Mike West (OOO until 30th) ...
4 years, 6 months ago (2016-05-31 21:40:27 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1889973002/300001
4 years, 6 months ago (2016-06-07 21:22:52 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/123634)
4 years, 6 months ago (2016-06-07 22:03:55 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1889973002/340001
4 years, 6 months ago (2016-06-08 21:17:26 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/150112)
4 years, 6 months ago (2016-06-08 21:38:06 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1889973002/340001
4 years, 6 months ago (2016-06-08 21:40:28 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/174612)
4 years, 6 months ago (2016-06-08 22:22:19 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1889973002/360001
4 years, 6 months ago (2016-06-09 19:38:42 UTC) #34
commit-bot: I haz the power
Committed patchset #19 (id:360001)
4 years, 6 months ago (2016-06-09 21:28:20 UTC) #36
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-09 21:28:38 UTC) #37
commit-bot: I haz the power
4 years, 6 months ago (2016-06-09 21:31:26 UTC) #39
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/5b689eeb4cc9dc5636a8db73c79a2674a154e967
Cr-Commit-Position: refs/heads/master@{#399017}

Powered by Google App Engine
This is Rietveld 408576698