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

Issue 2897063002: Network service: Implement URLLoader chaining for interceptors (Closed)

Created:
3 years, 7 months ago by kinuko
Modified:
3 years, 6 months ago
Reviewers:
michaeln, ananta, jam, falken, scottmg
CC:
chromium-reviews, loading-reviews_chromium.org, jam, darin-cc_chromium.org, Randy Smith (Not in Mondays), mmenke, falken
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Network service: Implement URLLoader chaining for interceptors BUG=724322 Review-Url: https://codereview.chromium.org/2897063002 Cr-Commit-Position: refs/heads/master@{#475314} Committed: https://chromium.googlesource.com/chromium/src/+/697329710bb599e46ae7dc72dfc5f88c4abc4545

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 20

Patch Set 4 : MaybeCreateLoaderFactory #

Total comments: 15

Patch Set 5 : . #

Total comments: 6

Patch Set 6 : documentation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+429 lines, -167 lines) Patch
M content/browser/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/navigation_url_loader_network_service.h View 1 chunk +5 lines, -1 line 0 comments Download
M content/browser/loader/navigation_url_loader_network_service.cc View 1 2 3 4 5 6 chunks +170 lines, -94 lines 0 comments Download
A content/browser/loader/url_loader_request_handler.h View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler.h View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler.cc View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_request_handler.h View 1 2 3 4 chunks +11 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_request_handler.cc View 1 2 3 7 chunks +60 lines, -35 lines 0 comments Download
A content/browser/service_worker/service_worker_response_type.h View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_url_job_wrapper.h View 1 2 3 3 chunks +21 lines, -8 lines 0 comments Download
M content/browser/service_worker/service_worker_url_job_wrapper.cc View 1 2 3 6 chunks +39 lines, -18 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.h View 1 2 2 chunks +2 lines, -7 lines 0 comments Download

Messages

Total messages: 38 (18 generated)
kinuko
Hi, this is still a bit rough, but has the basic bits I wanted to ...
3 years, 7 months ago (2017-05-25 10:34:25 UTC) #4
scottmg
Yeah, this looks great. :) It's nice that much of the SW code request handler ...
3 years, 7 months ago (2017-05-25 15:12:24 UTC) #5
jam
(just looked in loader directory) https://codereview.chromium.org/2897063002/diff/60001/content/browser/loader/navigation_url_loader_network_service.cc File content/browser/loader/navigation_url_loader_network_service.cc (right): https://codereview.chromium.org/2897063002/diff/60001/content/browser/loader/navigation_url_loader_network_service.cc#newcode153 content/browser/loader/navigation_url_loader_network_service.cc:153: base::debug::StackTrace trace; nit: is ...
3 years, 7 months ago (2017-05-25 16:06:37 UTC) #6
michaeln
https://codereview.chromium.org/2897063002/diff/60001/content/browser/loader/navigation_url_loader_network_service.cc File content/browser/loader/navigation_url_loader_network_service.cc (right): https://codereview.chromium.org/2897063002/diff/60001/content/browser/loader/navigation_url_loader_network_service.cc#newcode94 content/browser/loader/navigation_url_loader_network_service.cc:94: // or be intercepted, so we just let it ...
3 years, 7 months ago (2017-05-26 01:28:31 UTC) #7
michaeln
https://codereview.chromium.org/2897063002/diff/60001/content/browser/loader/url_loader_request_handler.h File content/browser/loader/url_loader_request_handler.h (right): https://codereview.chromium.org/2897063002/diff/60001/content/browser/loader/url_loader_request_handler.h#newcode32 content/browser/loader/url_loader_request_handler.h:32: virtual void Start(const ResourceRequest& resource_request, Also, the hand wavvy ...
3 years, 7 months ago (2017-05-26 01:43:21 UTC) #8
kinuko
Thanks! Inline responses only, will update patch later too https://codereview.chromium.org/2897063002/diff/60001/content/browser/loader/navigation_url_loader_network_service.cc File content/browser/loader/navigation_url_loader_network_service.cc (right): https://codereview.chromium.org/2897063002/diff/60001/content/browser/loader/navigation_url_loader_network_service.cc#newcode153 content/browser/loader/navigation_url_loader_network_service.cc:153: ...
3 years, 7 months ago (2017-05-26 02:34:21 UTC) #9
kinuko
https://codereview.chromium.org/2897063002/diff/60001/content/browser/loader/navigation_url_loader_network_service.cc File content/browser/loader/navigation_url_loader_network_service.cc (right): https://codereview.chromium.org/2897063002/diff/60001/content/browser/loader/navigation_url_loader_network_service.cc#newcode140 content/browser/loader/navigation_url_loader_network_service.cc:140: // This could be called multiple times. On 2017/05/25 ...
3 years, 7 months ago (2017-05-26 14:30:05 UTC) #12
jam
lgtm, thanks this looks great.
3 years, 7 months ago (2017-05-26 14:49:55 UTC) #16
michaeln
lgtm! i have a couple small comments to consider but this looks great https://codereview.chromium.org/2897063002/diff/100001/content/browser/loader/navigation_url_loader_network_service.cc File ...
3 years, 7 months ago (2017-05-26 17:42:27 UTC) #19
scottmg
https://codereview.chromium.org/2897063002/diff/100001/content/browser/loader/navigation_url_loader_network_service.cc File content/browser/loader/navigation_url_loader_network_service.cc (right): https://codereview.chromium.org/2897063002/diff/100001/content/browser/loader/navigation_url_loader_network_service.cc#newcode66 content/browser/loader/navigation_url_loader_network_service.cc:66: resource_context_(resource_context) {} Don't forget to initialize fallback_factory_(nullptr) here, otherwise ...
3 years, 7 months ago (2017-05-26 20:19:27 UTC) #20
michaeln
https://codereview.chromium.org/2897063002/diff/60001/content/browser/loader/url_loader_request_handler.h File content/browser/loader/url_loader_request_handler.h (right): https://codereview.chromium.org/2897063002/diff/60001/content/browser/loader/url_loader_request_handler.h#newcode18 content/browser/loader/url_loader_request_handler.h:18: class URLLoaderRequestHandler { > I think we probably need ...
3 years, 7 months ago (2017-05-26 21:36:26 UTC) #21
scottmg
I reimplemented the browser-side loading path (the factory and its urlloader) here: https://codereview.chromium.org/2906163002/ One thing ...
3 years, 7 months ago (2017-05-27 00:46:18 UTC) #22
kinuko
Thanks! https://codereview.chromium.org/2897063002/diff/100001/content/browser/loader/navigation_url_loader_network_service.cc File content/browser/loader/navigation_url_loader_network_service.cc (right): https://codereview.chromium.org/2897063002/diff/100001/content/browser/loader/navigation_url_loader_network_service.cc#newcode66 content/browser/loader/navigation_url_loader_network_service.cc:66: resource_context_(resource_context) {} On 2017/05/26 20:19:27, scottmg wrote: > ...
3 years, 6 months ago (2017-05-29 06:12:24 UTC) #23
kinuko
On 2017/05/27 00:46:18, scottmg wrote: > I reimplemented the browser-side loading path (the factory and ...
3 years, 6 months ago (2017-05-29 06:15:45 UTC) #24
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/2897063002/120001
3 years, 6 months ago (2017-05-29 06:16:06 UTC) #27
falken
Just some nits. https://codereview.chromium.org/2897063002/diff/120001/content/browser/loader/navigation_url_loader_network_service.cc File content/browser/loader/navigation_url_loader_network_service.cc (right): https://codereview.chromium.org/2897063002/diff/120001/content/browser/loader/navigation_url_loader_network_service.cc#newcode9 content/browser/loader/navigation_url_loader_network_service.cc:9: #include "base/debug/stack_trace.h" nit: rm this? https://codereview.chromium.org/2897063002/diff/120001/content/browser/loader/navigation_url_loader_network_service.cc#newcode60 ...
3 years, 6 months ago (2017-05-29 06:51:12 UTC) #29
kinuko
Thanks! https://codereview.chromium.org/2897063002/diff/120001/content/browser/loader/navigation_url_loader_network_service.cc File content/browser/loader/navigation_url_loader_network_service.cc (right): https://codereview.chromium.org/2897063002/diff/120001/content/browser/loader/navigation_url_loader_network_service.cc#newcode9 content/browser/loader/navigation_url_loader_network_service.cc:9: #include "base/debug/stack_trace.h" On 2017/05/29 06:51:12, falken wrote: > ...
3 years, 6 months ago (2017-05-29 07:05:58 UTC) #31
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/2897063002/140001
3 years, 6 months ago (2017-05-29 07:06:19 UTC) #34
falken
(ah, forgot to say lgtm too)
3 years, 6 months ago (2017-05-29 07:11:31 UTC) #35
commit-bot: I haz the power
3 years, 6 months ago (2017-05-29 08:50:24 UTC) #38
Message was sent while issue was closed.
Committed patchset #6 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/697329710bb599e46ae7dc72dfc5...

Powered by Google App Engine
This is Rietveld 408576698