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

Issue 2533683002: Move the code in ResourceFetcher handling calls from WebURLLoaderImpl to ResourceLoader (Closed)

Created:
4 years ago by tyoshino (SeeGerritForStatus)
Modified:
4 years ago
CC:
chromium-reviews, tyoshino+watch_chromium.org, Yoav Weiss, loading-reviews_chromium.org, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, Nate Chapin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move the code in ResourceFetcher handling calls from WebURLLoaderImpl to ResourceLoader They're not doing anything specific to the ResourceFetcher but just consulting the FrameFetchContext via ResourceFetcher. Especially, didReceiveResponse() contains a lot of back calls to the ResourceLoader. The logic should just be implemented inside the ResourceLoader. defersLoading() is also removed since it's used only by the unit tests and can be replaced by invocation of public method context(). Renamed unary didFail() to handleError() as it's not a WebURLLoaderImpl implementation and therefore it's confusing that it has the "did" prefix. R=yhirano@chromium.org,japhet@chromium.org,tsepez@chromium.org,kinuko@chromium.org BUG=669383 Committed: https://crrev.com/eaa629122ad7934f66a6e75b228ce710e71053ff Cr-Commit-Position: refs/heads/master@{#438088}

Patch Set 1 #

Patch Set 2 : a #

Patch Set 3 : a #

Patch Set 4 : a #

Patch Set 5 : a #

Patch Set 6 : a #

Patch Set 7 : a #

Patch Set 8 : a #

Patch Set 9 : Fixed a bug in resource timing population #

Total comments: 14

Patch Set 10 : Rough rebase #

Patch Set 11 : Addressed #27, #28, #29 #

Patch Set 12 : Rename areSameOrigin to areSameSchemeHostPort #

Patch Set 13 : Rebase #

Patch Set 14 : Fix build #

Patch Set 15 : Fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+332 lines, -335 lines) Patch
M third_party/WebKit/Source/core/fetch/FetchContext.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -0 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 3 chunks +8 lines, -26 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 12 chunks +66 lines, -249 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 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceLoader.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +16 lines, -11 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 chunks +222 lines, -43 lines 0 comments Download
M third_party/WebKit/Source/core/loader/resource/FontResourceTest.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/platform/weborigin/SecurityOrigin.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/weborigin/SecurityOrigin.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -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 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 70 (41 generated)
tyoshino (SeeGerritForStatus)
4 years ago (2016-11-28 05:46:22 UTC) #8
tyoshino (SeeGerritForStatus)
I discussed the design with yhirano offline. I agreed with yhirano's point that if we ...
4 years ago (2016-11-29 09:56:55 UTC) #15
kinuko
I'm a bit uncertain about these changes... in the existing code ResourceFetcher is responsible for ...
4 years ago (2016-12-01 04:09:22 UTC) #16
tyoshino (SeeGerritForStatus)
On 2016/12/01 04:09:22, kinuko wrote: > I'm a bit uncertain about these changes... in the ...
4 years ago (2016-12-01 06:19:09 UTC) #17
tyoshino (SeeGerritForStatus)
Split the removal of acceptDataFromThreadedReceiver into https://codereview.chromium.org/2539353002/
4 years ago (2016-12-01 06:25:49 UTC) #18
kinuko
On 2016/12/01 06:19:09, tyoshino wrote: > On 2016/12/01 04:09:22, kinuko wrote: > > I'm a ...
4 years ago (2016-12-01 11:04:53 UTC) #23
tyoshino (SeeGerritForStatus)
On 2016/12/01 11:04:53, kinuko wrote: > Am, sorry... [1] -> https://codereview.chromium.org/1975373002 Thank you. I see... ...
4 years ago (2016-12-01 11:12:28 UTC) #24
tyoshino (SeeGerritForStatus)
On 2016/12/01 11:12:28, tyoshino wrote: > On 2016/12/01 11:04:53, kinuko wrote: > > Am, sorry... ...
4 years ago (2016-12-02 10:49:40 UTC) #26
Nate Chapin
I think there are 2 logically consistent ways to organize this code. * ResourceLoader does ...
4 years ago (2016-12-07 19:13:01 UTC) #27
kinuko
Cool that now we're settling :) https://codereview.chromium.org/2533683002/diff/160001/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp File third_party/WebKit/Source/core/fetch/ResourceLoader.cpp (right): https://codereview.chromium.org/2533683002/diff/160001/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp#newcode371 third_party/WebKit/Source/core/fetch/ResourceLoader.cpp:371: encodedDataLength); This still ...
4 years ago (2016-12-09 02:03:19 UTC) #28
yhirano
lgtm https://codereview.chromium.org/2533683002/diff/160001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2533683002/diff/160001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode194 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:194: static void populateRedirectResourceTimingOnFinish(ResourceTimingInfo* info, [optional] I prefer placing ...
4 years ago (2016-12-12 06:32:04 UTC) #29
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/2533683002/diff/160001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2533683002/diff/160001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode194 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:194: static void populateRedirectResourceTimingOnFinish(ResourceTimingInfo* info, On 2016/12/12 06:32:04, yhirano wrote: ...
4 years ago (2016-12-12 11:10:55 UTC) #31
tyoshino (SeeGerritForStatus)
On 2016/12/07 19:13:01, Nate Chapin (slow until Jan 3) wrote: > I think there are ...
4 years ago (2016-12-12 11:14:33 UTC) #32
tyoshino (SeeGerritForStatus)
+tsepez please review platform/weborigin/
4 years ago (2016-12-12 11:17:21 UTC) #36
Tom Sepez
Mike or Joel -- how does this play with the suborigin work you've been doing ...
4 years ago (2016-12-12 16:35:08 UTC) #40
tyoshino (SeeGerritForStatus)
On 2016/12/12 16:35:08, Tom Sepez wrote: > Mike or Joel -- how does this play ...
4 years ago (2016-12-12 16:44:07 UTC) #41
Tom Sepez
On 2016/12/12 16:44:07, tyoshino wrote: > On 2016/12/12 16:35:08, Tom Sepez wrote: > > Mike ...
4 years ago (2016-12-12 16:46:25 UTC) #42
tyoshino (SeeGerritForStatus)
On 2016/12/12 16:44:07, tyoshino wrote: > On 2016/12/12 16:35:08, Tom Sepez wrote: > > Mike ...
4 years ago (2016-12-12 16:47:42 UTC) #43
tyoshino (SeeGerritForStatus)
On 2016/12/12 16:46:25, Tom Sepez wrote: > On 2016/12/12 16:44:07, tyoshino wrote: > > On ...
4 years ago (2016-12-12 16:48:27 UTC) #44
tyoshino (SeeGerritForStatus)
On 2016/12/12 16:48:27, tyoshino wrote: > On 2016/12/12 16:46:25, Tom Sepez wrote: > > On ...
4 years ago (2016-12-12 16:50:42 UTC) #45
Tom Sepez
> I see. Thanks. In other words, I think calling isSameSchemeHostPort from your code is ...
4 years ago (2016-12-12 16:51:47 UTC) #46
tyoshino (SeeGerritForStatus)
On 2016/12/12 16:51:47, Tom Sepez wrote: > > I see. Thanks. > > In other ...
4 years ago (2016-12-12 16:55:08 UTC) #47
tyoshino (SeeGerritForStatus)
On 2016/12/12 16:55:08, tyoshino wrote: > On 2016/12/12 16:51:47, Tom Sepez wrote: > > > ...
4 years ago (2016-12-12 16:57:43 UTC) #48
Tom Sepez
lgtm
4 years ago (2016-12-12 18:11:56 UTC) #52
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/2533683002/240001
4 years ago (2016-12-13 05:08:29 UTC) #57
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/2533683002/260001
4 years ago (2016-12-13 05:09:59 UTC) #61
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/2533683002/280001
4 years ago (2016-12-13 05:15:16 UTC) #65
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years ago (2016-12-13 07:07:41 UTC) #68
commit-bot: I haz the power
4 years ago (2016-12-13 07:11:01 UTC) #70
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/eaa629122ad7934f66a6e75b228ce710e71053ff
Cr-Commit-Position: refs/heads/master@{#438088}

Powered by Google App Engine
This is Rietveld 408576698