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

Issue 2919313004: Get rid of URLLoaderFactory in browser-side case (Closed)

Created:
3 years, 6 months ago by kinuko
Modified:
3 years, 6 months ago
Reviewers:
michaeln, jam, yzshen1, yhirano
CC:
chromium-reviews, asanka, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, kinuko+watch, jsbell+serviceworker_chromium.org, tzik, abarth-chromium, darin-cc_chromium.org, loading-reviews_chromium.org, blink-worker-reviews_chromium.org, nhiroki, rdsmith+watch_chromium.org, michaeln, shimazu+serviceworker_chromium.org, serviceworker-reviews, Aaron Boodman, kinuko+serviceworker, horo+watch_chromium.org, darin (slow to review), mmenke
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Get rid of URLLoaderFactory in browser-side case BUG=729503 Review-Url: https://codereview.chromium.org/2919313004 Cr-Commit-Position: refs/heads/master@{#477568} Committed: https://chromium.googlesource.com/chromium/src/+/d8b13e21c0c676d7f8e075236948983d09b42bbe

Patch Set 1 #

Patch Set 2 : . #

Total comments: 5

Patch Set 3 : . #

Total comments: 5

Patch Set 4 : . #

Total comments: 1

Messages

Total messages: 42 (22 generated)
kinuko
https://codereview.chromium.org/2919313004/diff/20001/content/common/url_loader.mojom File content/common/url_loader.mojom (right): https://codereview.chromium.org/2919313004/diff/20001/content/common/url_loader.mojom#newcode40 content/common/url_loader.mojom:40: Start(associated URLLoader& loader, URLLoaderClient client); Having a method like ...
3 years, 6 months ago (2017-06-05 09:44:23 UTC) #7
jam
https://codereview.chromium.org/2919313004/diff/20001/content/browser/loader/url_loader_request_handler.h File content/browser/loader/url_loader_request_handler.h (right): https://codereview.chromium.org/2919313004/diff/20001/content/browser/loader/url_loader_request_handler.h#newcode33 content/browser/loader/url_loader_request_handler.h:33: virtual void MaybeCreateLoader(const ResourceRequest& resource_request, I'm probably missing something, ...
3 years, 6 months ago (2017-06-05 19:39:24 UTC) #10
michaeln
https://codereview.chromium.org/2919313004/diff/20001/content/browser/loader/url_loader_request_handler.h File content/browser/loader/url_loader_request_handler.h (right): https://codereview.chromium.org/2919313004/diff/20001/content/browser/loader/url_loader_request_handler.h#newcode33 content/browser/loader/url_loader_request_handler.h:33: virtual void MaybeCreateLoader(const ResourceRequest& resource_request, On 2017/06/05 19:39:24, jam ...
3 years, 6 months ago (2017-06-05 21:52:39 UTC) #12
jam
https://codereview.chromium.org/2919313004/diff/20001/content/browser/loader/url_loader_request_handler.h File content/browser/loader/url_loader_request_handler.h (right): https://codereview.chromium.org/2919313004/diff/20001/content/browser/loader/url_loader_request_handler.h#newcode33 content/browser/loader/url_loader_request_handler.h:33: virtual void MaybeCreateLoader(const ResourceRequest& resource_request, On 2017/06/05 21:52:39, michaeln ...
3 years, 6 months ago (2017-06-06 00:07:45 UTC) #13
jam
https://codereview.chromium.org/2919313004/diff/20001/content/browser/loader/url_loader_request_handler.h File content/browser/loader/url_loader_request_handler.h (right): https://codereview.chromium.org/2919313004/diff/20001/content/browser/loader/url_loader_request_handler.h#newcode33 content/browser/loader/url_loader_request_handler.h:33: virtual void MaybeCreateLoader(const ResourceRequest& resource_request, On 2017/06/05 19:39:24, jam ...
3 years, 6 months ago (2017-06-06 00:55:40 UTC) #14
kinuko
On 2017/06/06 00:55:40, jam wrote: > https://codereview.chromium.org/2919313004/diff/20001/content/browser/loader/url_loader_request_handler.h > File content/browser/loader/url_loader_request_handler.h (right): > > https://codereview.chromium.org/2919313004/diff/20001/content/browser/loader/url_loader_request_handler.h#newcode33 > ...
3 years, 6 months ago (2017-06-06 01:15:48 UTC) #15
kinuko
Got rid of additional mojo method, and simply replaced the LoaderFactory with an abstract callback. ...
3 years, 6 months ago (2017-06-06 08:02:11 UTC) #22
jam
lgtm
3 years, 6 months ago (2017-06-06 17:18:53 UTC) #25
jam
https://codereview.chromium.org/2919313004/diff/60001/content/browser/loader/url_loader_request_handler.h File content/browser/loader/url_loader_request_handler.h (right): https://codereview.chromium.org/2919313004/diff/60001/content/browser/loader/url_loader_request_handler.h#newcode19 content/browser/loader/url_loader_request_handler.h:19: base::OnceCallback<void(mojom::URLLoaderAssociatedRequest request, actually, can this now be URLLoaderRequest instead ...
3 years, 6 months ago (2017-06-06 17:45:32 UTC) #26
kinuko
On 2017/06/06 17:45:32, jam wrote: > https://codereview.chromium.org/2919313004/diff/60001/content/browser/loader/url_loader_request_handler.h > File content/browser/loader/url_loader_request_handler.h (right): > > https://codereview.chromium.org/2919313004/diff/60001/content/browser/loader/url_loader_request_handler.h#newcode19 > ...
3 years, 6 months ago (2017-06-06 23:11:59 UTC) #27
jam
On 2017/06/06 23:11:59, kinuko wrote: > On 2017/06/06 17:45:32, jam wrote: > > > https://codereview.chromium.org/2919313004/diff/60001/content/browser/loader/url_loader_request_handler.h ...
3 years, 6 months ago (2017-06-07 01:26:18 UTC) #28
yhirano
lgtm https://codereview.chromium.org/2919313004/diff/60001/content/browser/loader/url_loader_request_handler.h File content/browser/loader/url_loader_request_handler.h (right): https://codereview.chromium.org/2919313004/diff/60001/content/browser/loader/url_loader_request_handler.h#newcode31 content/browser/loader/url_loader_request_handler.h:31: // Calls non-null |callback| if this handler can ...
3 years, 6 months ago (2017-06-07 01:35:10 UTC) #29
michaeln
https://codereview.chromium.org/2919313004/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/2919313004/diff/60001/content/browser/loader/navigation_url_loader_network_service.cc#newcode147 content/browser/loader/navigation_url_loader_network_service.cc:147: void MaybeStartLoader(StartLoaderCallback start_loader_callback) { it's turtles all the way ...
3 years, 6 months ago (2017-06-07 02:28:22 UTC) #30
kinuko
(Rebasing, inline response only yet) https://codereview.chromium.org/2919313004/diff/60001/content/browser/loader/url_loader_request_handler.h File content/browser/loader/url_loader_request_handler.h (right): https://codereview.chromium.org/2919313004/diff/60001/content/browser/loader/url_loader_request_handler.h#newcode19 content/browser/loader/url_loader_request_handler.h:19: base::OnceCallback<void(mojom::URLLoaderAssociatedRequest request, On 2017/06/06 ...
3 years, 6 months ago (2017-06-07 03:41:26 UTC) #31
kinuko
On 2017/06/07 02:28:22, michaeln wrote: > it's turtles all the way down! _ .-./*) _/___\/ ...
3 years, 6 months ago (2017-06-07 03:44:00 UTC) #32
kinuko
Updated except for associated part, landing this for now.
3 years, 6 months ago (2017-06-07 05:20:19 UTC) #33
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/2919313004/80001
3 years, 6 months ago (2017-06-07 05:20:37 UTC) #36
commit-bot: I haz the power
Committed patchset #4 (id:80001) as https://chromium.googlesource.com/chromium/src/+/d8b13e21c0c676d7f8e075236948983d09b42bbe
3 years, 6 months ago (2017-06-07 06:59:43 UTC) #39
yzshen1
https://codereview.chromium.org/2919313004/diff/80001/content/browser/loader/navigation_url_loader_network_service.cc File content/browser/loader/navigation_url_loader_network_service.cc (right): https://codereview.chromium.org/2919313004/diff/80001/content/browser/loader/navigation_url_loader_network_service.cc#newcode153 content/browser/loader/navigation_url_loader_network_service.cc:153: .Run(std::move(url_loader_request_), I noticed that this still uses associated URLLoader. ...
3 years, 6 months ago (2017-06-07 23:28:25 UTC) #41
kinuko
3 years, 6 months ago (2017-06-07 23:45:51 UTC) #42
Message was sent while issue was closed.
On 2017/06/07 23:28:25, yzshen1 wrote:
>
https://codereview.chromium.org/2919313004/diff/80001/content/browser/loader/...
> File content/browser/loader/navigation_url_loader_network_service.cc (right):
> 
>
https://codereview.chromium.org/2919313004/diff/80001/content/browser/loader/...
> content/browser/loader/navigation_url_loader_network_service.cc:153:
> .Run(std::move(url_loader_request_),
> I noticed that this still uses associated URLLoader. Because it is not passed
> over a message pipe (i.e., a non-associated interface or an already-associated
> interface), it is in a pending-association state -- it doesn't know on which
> message pipe to send messages. In this state, calling the associated URLLoader
> interface will crash.
> 
> We will need to use something like mojo::MakeIsolatedRequest() to create a
> dedicated message pipe for this associated interface. One annoying thing is
that
> the corresponding URLLoaderAssociatedPtr belongs to
> NavigationURLLoaderNetworkService and in use now. So
mojo::MakeIsolatedRequest()
> doesn't fit.
> 
> I should be able to fix this with my browser-side SB check CL. Alternatively,
> the problem will go away if we switch to non-associated URLLoader.

Hi Yuzhu, I have a patch that tries to work around this
https://codereview.chromium.org/2931623002/, would that work?  I'm adding you as
a reviewer to the change (I'm not super familiar with how associated pipe
works).

Powered by Google App Engine
This is Rietveld 408576698