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

Issue 2466843002: Cancel the request when URLLoader is gone (Closed)

Created:
4 years, 1 month ago by yhirano
Modified:
4 years, 1 month ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, loading-reviews_chromium.org, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cancel the request when URLLoader is gone With this CL, resource loading will be canceled when mojom::URLLoaderAssociatedPtr is destroyed. BUG=603396 Committed: https://crrev.com/5939370208c57d841e0b2cb3e12ae28d0d6cad1b Cr-Commit-Position: refs/heads/master@{#432375}

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : fix #

Total comments: 10

Patch Set 4 : fix #

Total comments: 8

Patch Set 5 : fix #

Patch Set 6 : rebase #

Patch Set 7 : fix #

Patch Set 8 : fix #

Patch Set 9 : fix #

Patch Set 10 : rebase #

Patch Set 11 : fix #

Total comments: 2

Patch Set 12 : decouple part of changes, reparent #

Patch Set 13 : fix #

Patch Set 14 : fix #

Patch Set 15 : fix #

Total comments: 2

Patch Set 16 : fix #

Total comments: 2

Patch Set 17 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -31 lines) Patch
M content/browser/loader/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/mojo_async_resource_handler.h View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -1 line 0 comments Download
M content/browser/loader/mojo_async_resource_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +11 lines, -4 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +20 lines, -19 lines 0 comments Download
M content/browser/loader/url_loader_factory_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +31 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_fetch_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +12 lines, -2 lines 0 comments Download
M content/common/url_loader.mojom View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 114 (77 generated)
yhirano
4 years, 1 month ago (2016-11-01 07:13:28 UTC) #11
mmenke
[+rdsmith, +csharrison]: Any thoughts on the cancellation question? Callbacks on cancellation have gotten us into ...
4 years, 1 month ago (2016-11-01 13:52:32 UTC) #15
yhirano
https://codereview.chromium.org/2466843002/diff/40001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2466843002/diff/40001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2440 content/browser/loader/resource_dispatcher_host_impl.cc:2440: void ResourceDispatcherHostImpl::CancelRequestFromRenderer( On 2016/11/01 13:52:32, mmenke (Busy Nov 2-3) ...
4 years, 1 month ago (2016-11-01 14:24:25 UTC) #16
mmenke
https://codereview.chromium.org/2466843002/diff/40001/content/browser/loader/url_loader_factory_impl_unittest.cc File content/browser/loader/url_loader_factory_impl_unittest.cc (right): https://codereview.chromium.org/2466843002/diff/40001/content/browser/loader/url_loader_factory_impl_unittest.cc#newcode287 content/browser/loader/url_loader_factory_impl_unittest.cc:287: client.RunUntilComplete(); On 2016/11/01 14:24:25, yhirano wrote: > On 2016/11/01 ...
4 years, 1 month ago (2016-11-01 14:27:54 UTC) #17
mmenke
https://codereview.chromium.org/2466843002/diff/40001/content/browser/loader/url_loader_factory_impl_unittest.cc File content/browser/loader/url_loader_factory_impl_unittest.cc (right): https://codereview.chromium.org/2466843002/diff/40001/content/browser/loader/url_loader_factory_impl_unittest.cc#newcode287 content/browser/loader/url_loader_factory_impl_unittest.cc:287: client.RunUntilComplete(); On 2016/11/01 14:27:54, mmenke (Busy Nov 2-3) wrote: ...
4 years, 1 month ago (2016-11-01 14:30:05 UTC) #18
yhirano
https://codereview.chromium.org/2466843002/diff/40001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2466843002/diff/40001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2439 content/browser/loader/resource_dispatcher_host_impl.cc:2439: // CancelRequest methods in this file, which also tear ...
4 years, 1 month ago (2016-11-02 06:02:56 UTC) #23
mmenke
I like this approach. May not have time to review this today.
4 years, 1 month ago (2016-11-02 14:21:06 UTC) #24
mmenke
https://codereview.chromium.org/2466843002/diff/60001/content/browser/loader/mojo_async_resource_handler.cc File content/browser/loader/mojo_async_resource_handler.cc (right): https://codereview.chromium.org/2466843002/diff/60001/content/browser/loader/mojo_async_resource_handler.cc#newcode116 content/browser/loader/mojo_async_resource_handler.cc:116: // after |this| destruction. nit: "after |this| is destroyed." ...
4 years, 1 month ago (2016-11-03 18:17:41 UTC) #25
Randy Smith (Not in Mondays)
On 2016/11/01 13:52:32, mmenke wrote: > [+rdsmith, +csharrison]: Any thoughts on the cancellation question? Callbacks ...
4 years, 1 month ago (2016-11-04 19:59:39 UTC) #30
mmenke
On 2016/11/04 19:59:39, Randy Smith - Not in Mondays wrote: > On 2016/11/01 13:52:32, mmenke ...
4 years, 1 month ago (2016-11-04 20:06:12 UTC) #31
Charlie Harrison
On 2016/11/04 20:06:12, mmenke wrote: > On 2016/11/04 19:59:39, Randy Smith - Not in Mondays ...
4 years, 1 month ago (2016-11-04 20:35:37 UTC) #32
yhirano
https://codereview.chromium.org/2466843002/diff/60001/content/browser/loader/mojo_async_resource_handler.cc File content/browser/loader/mojo_async_resource_handler.cc (right): https://codereview.chromium.org/2466843002/diff/60001/content/browser/loader/mojo_async_resource_handler.cc#newcode116 content/browser/loader/mojo_async_resource_handler.cc:116: // after |this| destruction. On 2016/11/03 18:17:41, mmenke wrote: ...
4 years, 1 month ago (2016-11-08 11:52:23 UTC) #53
mmenke
https://codereview.chromium.org/2466843002/diff/200001/content/browser/loader/mojo_async_resource_handler_unittest.cc File content/browser/loader/mojo_async_resource_handler_unittest.cc (right): https://codereview.chromium.org/2466843002/diff/200001/content/browser/loader/mojo_async_resource_handler_unittest.cc#newcode267 content/browser/loader/mojo_async_resource_handler_unittest.cc:267: class TestURLLoaderFactory final : public mojom::URLLoaderFactory { Could you ...
4 years, 1 month ago (2016-11-08 15:14:21 UTC) #54
mmenke
On 2016/11/08 15:14:21, mmenke wrote: > https://codereview.chromium.org/2466843002/diff/200001/content/browser/loader/mojo_async_resource_handler_unittest.cc > File content/browser/loader/mojo_async_resource_handler_unittest.cc (right): > > https://codereview.chromium.org/2466843002/diff/200001/content/browser/loader/mojo_async_resource_handler_unittest.cc#newcode267 > ...
4 years, 1 month ago (2016-11-08 15:15:37 UTC) #55
yhirano
https://codereview.chromium.org/2466843002/diff/200001/content/browser/loader/mojo_async_resource_handler_unittest.cc File content/browser/loader/mojo_async_resource_handler_unittest.cc (right): https://codereview.chromium.org/2466843002/diff/200001/content/browser/loader/mojo_async_resource_handler_unittest.cc#newcode267 content/browser/loader/mojo_async_resource_handler_unittest.cc:267: class TestURLLoaderFactory final : public mojom::URLLoaderFactory { On 2016/11/08 ...
4 years, 1 month ago (2016-11-09 03:38:07 UTC) #60
yhirano
+horo@ for content/browser/service_worker. +dcheng@ for content/common/url_loader.mojom.
4 years, 1 month ago (2016-11-09 03:45:40 UTC) #64
horo
On 2016/11/09 03:45:40, yhirano wrote: > +horo@ for content/browser/service_worker. > +dcheng@ for content/common/url_loader.mojom. lgtm. This ...
4 years, 1 month ago (2016-11-09 05:29:21 UTC) #67
yhirano
On 2016/11/09 05:29:21, horo wrote: > On 2016/11/09 03:45:40, yhirano wrote: > > +horo@ for ...
4 years, 1 month ago (2016-11-09 05:31:05 UTC) #68
dcheng
mojo lgtm
4 years, 1 month ago (2016-11-09 06:34:25 UTC) #69
yhirano
Horo-san: Sorry for bothering you again, it turns out we need one more error handler ...
4 years, 1 month ago (2016-11-09 07:48:29 UTC) #76
horo
https://codereview.chromium.org/2466843002/diff/220002/content/browser/service_worker/service_worker_fetch_dispatcher.cc File content/browser/service_worker/service_worker_fetch_dispatcher.cc (right): https://codereview.chromium.org/2466843002/diff/220002/content/browser/service_worker/service_worker_fetch_dispatcher.cc#newcode60 content/browser/service_worker/service_worker_fetch_dispatcher.cc:60: void Cancel() { loader_ = nullptr; } Please add ...
4 years, 1 month ago (2016-11-09 10:02:08 UTC) #79
yhirano
https://codereview.chromium.org/2466843002/diff/220002/content/browser/service_worker/service_worker_fetch_dispatcher.cc File content/browser/service_worker/service_worker_fetch_dispatcher.cc (right): https://codereview.chromium.org/2466843002/diff/220002/content/browser/service_worker/service_worker_fetch_dispatcher.cc#newcode60 content/browser/service_worker/service_worker_fetch_dispatcher.cc:60: void Cancel() { loader_ = nullptr; } On 2016/11/09 ...
4 years, 1 month ago (2016-11-11 04:22:22 UTC) #84
horo
On 2016/11/11 04:22:22, yhirano wrote: > https://codereview.chromium.org/2466843002/diff/220002/content/browser/service_worker/service_worker_fetch_dispatcher.cc > File content/browser/service_worker/service_worker_fetch_dispatcher.cc (right): > > https://codereview.chromium.org/2466843002/diff/220002/content/browser/service_worker/service_worker_fetch_dispatcher.cc#newcode60 > ...
4 years, 1 month ago (2016-11-11 04:46:12 UTC) #85
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/2466843002/290001
4 years, 1 month ago (2016-11-12 09:11:40 UTC) #88
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/302989)
4 years, 1 month ago (2016-11-12 09:18:32 UTC) #90
yhirano
+avi@ for OWNER review.
4 years, 1 month ago (2016-11-14 01:37:22 UTC) #92
Avi (use Gerrit)
This is a DEPS question. John's out; Scott, is this DEPS change OK?
4 years, 1 month ago (2016-11-14 01:52:34 UTC) #94
scottmg
On 2016/11/14 01:52:34, Avi wrote: > This is a DEPS question. John's out; Scott, is ...
4 years, 1 month ago (2016-11-14 18:08:34 UTC) #95
yhirano
avi@: friendly ping
4 years, 1 month ago (2016-11-16 02:16:25 UTC) #96
kinuko
rs/lgtm in case it helps https://codereview.chromium.org/2466843002/diff/290001/content/browser/loader/resource_dispatcher_host_impl.h File content/browser/loader/resource_dispatcher_host_impl.h (right): https://codereview.chromium.org/2466843002/diff/290001/content/browser/loader/resource_dispatcher_host_impl.h#newcode347 content/browser/loader/resource_dispatcher_host_impl.h:347: // methods in this ...
4 years, 1 month ago (2016-11-16 03:00:34 UTC) #98
yhirano
Thank you. https://codereview.chromium.org/2466843002/diff/290001/content/browser/loader/resource_dispatcher_host_impl.h File content/browser/loader/resource_dispatcher_host_impl.h (right): https://codereview.chromium.org/2466843002/diff/290001/content/browser/loader/resource_dispatcher_host_impl.h#newcode347 content/browser/loader/resource_dispatcher_host_impl.h:347: // methods in this file, which also ...
4 years, 1 month ago (2016-11-16 03:13:10 UTC) #101
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/2466843002/310001
4 years, 1 month ago (2016-11-16 03:13:53 UTC) #105
Avi (use Gerrit)
Apologies. LGTM
4 years, 1 month ago (2016-11-16 03:57:37 UTC) #106
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/336262)
4 years, 1 month ago (2016-11-16 04:10:13 UTC) #108
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/2466843002/310001
4 years, 1 month ago (2016-11-16 04:30:18 UTC) #110
commit-bot: I haz the power
Committed patchset #17 (id:310001)
4 years, 1 month ago (2016-11-16 06:11:22 UTC) #112
commit-bot: I haz the power
4 years, 1 month ago (2016-11-16 06:13:00 UTC) #114
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/5939370208c57d841e0b2cb3e12ae28d0d6cad1b
Cr-Commit-Position: refs/heads/master@{#432375}

Powered by Google App Engine
This is Rietveld 408576698