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

Issue 1186053004: Cancel loading when body stream reader is detached. (Closed)

Created:
5 years, 6 months ago by yhirano
Modified:
5 years, 6 months ago
Reviewers:
hiroshige, kinuko
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@error-ipc-data-consumer
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cancel loading when body stream reader is detached. With this CL, loading with useStreamOnResponse will stop when nobody monitors the reading end (i.e. when the WebDataConsumerHandle and its reader are detached). BUG=480746 Committed: https://crrev.com/a9ffb2129748798f233257b29d51d5df8f607f25 Cr-Commit-Position: refs/heads/master@{#335654}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Patch Set 7 : #

Total comments: 14

Patch Set 8 : #

Total comments: 2

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -10 lines) Patch
M content/child/shared_memory_data_consumer_handle.h View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -1 line 0 comments Download
M content/child/shared_memory_data_consumer_handle.cc View 1 2 3 4 5 6 7 8 12 chunks +59 lines, -5 lines 0 comments Download
M content/child/shared_memory_data_consumer_handle_unittest.cc View 1 2 3 4 5 6 2 chunks +120 lines, -0 lines 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 3 4 5 6 7 3 chunks +39 lines, -4 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
yhirano
This CL depends on https://codereview.chromium.org/1181573003/. We talked about having OnClearHolder, but I found some difficulties ...
5 years, 6 months ago (2015-06-15 09:36:24 UTC) #4
hiroshige
Could you rebase after https://codereview.chromium.org/1181573003/ ?
5 years, 6 months ago (2015-06-22 09:51:19 UTC) #5
yhirano
On 2015/06/22 09:51:19, hiroshige wrote: > Could you rebase after https://codereview.chromium.org/1181573003/ ? Done!
5 years, 6 months ago (2015-06-22 10:18:42 UTC) #6
hiroshige
https://codereview.chromium.org/1186053004/diff/150001/content/child/shared_memory_data_consumer_handle.cc File content/child/shared_memory_data_consumer_handle.cc (right): https://codereview.chromium.org/1186053004/diff/150001/content/child/shared_memory_data_consumer_handle.cc#newcode67 content/child/shared_memory_data_consumer_handle.cc:67: // We post a task even in the writer ...
5 years, 6 months ago (2015-06-22 18:23:16 UTC) #7
yhirano
https://codereview.chromium.org/1186053004/diff/150001/content/child/shared_memory_data_consumer_handle.cc File content/child/shared_memory_data_consumer_handle.cc (right): https://codereview.chromium.org/1186053004/diff/150001/content/child/shared_memory_data_consumer_handle.cc#newcode67 content/child/shared_memory_data_consumer_handle.cc:67: // We post a task even in the writer ...
5 years, 6 months ago (2015-06-23 05:28:38 UTC) #8
hiroshige
lgtm.
5 years, 6 months ago (2015-06-23 05:51:21 UTC) #9
yhirano
+kinuko for OWNER review.
5 years, 6 months ago (2015-06-23 06:06:03 UTC) #11
kinuko
lgtm https://codereview.chromium.org/1186053004/diff/170001/content/child/shared_memory_data_consumer_handle.cc File content/child/shared_memory_data_consumer_handle.cc (right): https://codereview.chromium.org/1186053004/diff/170001/content/child/shared_memory_data_consumer_handle.cc#newcode56 content/child/shared_memory_data_consumer_handle.cc:56: writer_task_runner_(base::MessageLoop::current()->task_runner()), please use base::ThreadTaskRunnerHandle::Get() instead
5 years, 6 months ago (2015-06-23 07:56:10 UTC) #12
yhirano
https://codereview.chromium.org/1186053004/diff/170001/content/child/shared_memory_data_consumer_handle.cc File content/child/shared_memory_data_consumer_handle.cc (right): https://codereview.chromium.org/1186053004/diff/170001/content/child/shared_memory_data_consumer_handle.cc#newcode56 content/child/shared_memory_data_consumer_handle.cc:56: writer_task_runner_(base::MessageLoop::current()->task_runner()), On 2015/06/23 07:56:10, kinuko wrote: > please use ...
5 years, 6 months ago (2015-06-23 08:17:55 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1186053004/190001
5 years, 6 months ago (2015-06-23 08:18:57 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/70871)
5 years, 6 months ago (2015-06-23 09:41:08 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1186053004/190001
5 years, 6 months ago (2015-06-23 09:45:02 UTC) #20
commit-bot: I haz the power
Committed patchset #9 (id:190001)
5 years, 6 months ago (2015-06-23 10:13:36 UTC) #21
commit-bot: I haz the power
5 years, 6 months ago (2015-06-23 10:14:54 UTC) #22
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/a9ffb2129748798f233257b29d51d5df8f607f25
Cr-Commit-Position: refs/heads/master@{#335654}

Powered by Google App Engine
This is Rietveld 408576698