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

Issue 1926193002: Clean up ResourceLoader finish more, remove ConnectionState enum (Closed)

Created:
4 years, 7 months ago by Nate Chapin
Modified:
4 years, 7 months ago
Reviewers:
hiroshige, kinuko, yhirano
CC:
chromium-reviews, blink-reviews, loading-reviews+fetch_chromium.org, tyoshino+watch_chromium.org, Nate Chapin, gavinp+loader_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@finish_smaller
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean up ResourceLoader finish more, remove ConnectionState enum * Move multipart first-part completion to ResourceFetcher's didFinishLoading. * Cancel and clear ResourceLoader::m_loader at the start of finish/failure, guaranteeing we won't get any unexpected messages from the WebURLLoader. * Move didLoadResource() call to ResourceFetcher, which means releaseResources() just clears pointers that don't strictly need to be cleared. * Null-check m_loader to determine if ResourceLoader is finishing. The ResourceLoader::ConnectionState is now assert-only, so drop it. BUG= Committed: https://crrev.com/7e772321d9a1f0f71c093747a3138762d9e6f67d Cr-Commit-Position: refs/heads/master@{#393958}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 10

Patch Set 5 : Document call order, enum for didFinishLoading #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -160 lines) Patch
M third_party/WebKit/Source/core/fetch/ImageResource.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.h View 1 2 3 4 5 2 chunks +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 1 2 3 4 5 3 chunks +17 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceLoader.h View 1 2 3 4 5 2 chunks +14 lines, -28 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceLoader.cpp View 1 2 3 4 5 9 chunks +23 lines, -115 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 40 (19 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/1926193002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1926193002/20001
4 years, 7 months ago (2016-05-12 00:08:19 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-12 02:21:37 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1926193002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1926193002/40001
4 years, 7 months ago (2016-05-12 17:03:14 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/169118)
4 years, 7 months ago (2016-05-12 17:42:27 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1926193002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1926193002/60001
4 years, 7 months ago (2016-05-12 19:41:28 UTC) #11
Nate Chapin
More ResourceLoader cleanup :D https://codereview.chromium.org/1926193002/diff/60001/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp File third_party/WebKit/Source/core/fetch/ResourceLoader.cpp (left): https://codereview.chromium.org/1926193002/diff/60001/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp#oldcode57 third_party/WebKit/Source/core/fetch/ResourceLoader.cpp:57: , m_notifiedLoadComplete(false) Like didFailLoading(), didFinishLoading() ...
4 years, 7 months ago (2016-05-12 20:51:13 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-12 21:04:31 UTC) #15
yhirano
Great refactoring! Regarding assertions, it is useful to detect caller-side (i.e., content) bugs and it ...
4 years, 7 months ago (2016-05-13 10:33:03 UTC) #16
Nate Chapin
Added a comment in ResourceLoader.h that documents the order, and reordered the WebURLLoaderClient overrides to ...
4 years, 7 months ago (2016-05-13 22:27:41 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1926193002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1926193002/80001
4 years, 7 months ago (2016-05-13 22:35:54 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/221616)
4 years, 7 months ago (2016-05-14 02:13:18 UTC) #21
yhirano
lgtm
4 years, 7 months ago (2016-05-16 14:41:30 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1926193002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1926193002/80001
4 years, 7 months ago (2016-05-16 17:49:50 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/6149) ios-device-gn on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 7 months ago (2016-05-16 17:52:39 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1926193002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1926193002/100001
4 years, 7 months ago (2016-05-16 20:17:26 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/183921)
4 years, 7 months ago (2016-05-16 20:26:24 UTC) #31
Nate Chapin
kinuko, would you mind reviewing the 1-line change to platform/testing/weburl_loader_mock.cc ?
4 years, 7 months ago (2016-05-16 20:51:01 UTC) #33
kinuko
lgtm!
4 years, 7 months ago (2016-05-16 22:37:40 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1926193002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1926193002/100001
4 years, 7 months ago (2016-05-16 22:38:56 UTC) #36
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-05-16 22:44:21 UTC) #38
commit-bot: I haz the power
4 years, 7 months ago (2016-05-16 22:46:31 UTC) #40
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/7e772321d9a1f0f71c093747a3138762d9e6f67d
Cr-Commit-Position: refs/heads/master@{#393958}

Powered by Google App Engine
This is Rietveld 408576698