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

Issue 2747203002: Make prepareRequest() a separate callback of FetchContext (Closed)

Created:
3 years, 9 months ago by kinuko
Modified:
3 years, 9 months ago
CC:
chromium-reviews, Yoav Weiss, tyoshino+watch_chromium.org, loading-reviews_chromium.org, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, kinuko+watch, Nate Chapin
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make prepareRequest() a separate callback of FetchContext - Split prepareRequest() from dispatchWillSendRequest() and willStartLoading() - Move AppCache hook code into prepareRequest(), which looks more relevant - Rename willStartLoading() to recordLoadingActivity() and makes it take const request This still doesn't make dispatchWillSendRequest() take const ResourceRequest& (see crbug.com/632580), but (I think) makes things slightly more consistent & moves fetching logic out of context into fetcher abstraction implementors like ResourceFetcher. BUG=695279, 632580 Review-Url: https://codereview.chromium.org/2747203002 Cr-Commit-Position: refs/heads/master@{#459016} Committed: https://chromium.googlesource.com/chromium/src/+/059d59531760005f8bfa5a03eab31fb9e3203ff5

Patch Set 1 #

Patch Set 2 : . #

Total comments: 5

Patch Set 3 : addressed comments #

Messages

Total messages: 39 (31 generated)
kinuko
I think this is slightly more consistent, what do you think? https://codereview.chromium.org/2747203002/diff/40001/third_party/WebKit/Source/platform/loader/fetch/FetchContext.h File third_party/WebKit/Source/platform/loader/fetch/FetchContext.h (right): ...
3 years, 9 months ago (2017-03-15 04:49:19 UTC) #22
kinuko
Friendly ping. This is similar to Nate's https://codereview.chromium.org/2203613003/ but doesn't make willSendRequest take const-ref yet ...
3 years, 9 months ago (2017-03-22 14:08:39 UTC) #23
Nate Chapin
lgtm https://codereview.chromium.org/2747203002/diff/40001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/2747203002/diff/40001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode451 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:451: // This is an initial requests, not for ...
3 years, 9 months ago (2017-03-22 19:12:59 UTC) #24
kinuko
Thanks! https://codereview.chromium.org/2747203002/diff/40001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/2747203002/diff/40001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode451 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:451: // This is an initial requests, not for ...
3 years, 9 months ago (2017-03-23 05:12:17 UTC) #25
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/2747203002/60001
3 years, 9 months ago (2017-03-23 05:17:35 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/304389)
3 years, 9 months ago (2017-03-23 05:33:02 UTC) #30
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/2747203002/60001
3 years, 9 months ago (2017-03-23 07:35:02 UTC) #36
commit-bot: I haz the power
3 years, 9 months ago (2017-03-23 07:43:36 UTC) #39
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/059d59531760005f8bfa5a03eab3...

Powered by Google App Engine
This is Rietveld 408576698