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

Issue 1181573003: Set error on WebDataConsumerHandle while loading body. (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@use-ipc-data-consumer
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set error on WebDataConsumerHandle while loading body. This CL makes the associated WebDataConsumerHandle errored when the loading fails or it is canceled. This CL also: - makes closing notification asynchronous. - implements some more error checks, especially for two-phase read sessions. - removes the deprecated implementation for the old API. BUG=480746 Committed: https://crrev.com/9fb5ecf62351a235b723c15c65343c895e8e7640 Cr-Commit-Position: refs/heads/master@{#335477}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : rebase #

Total comments: 14

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Patch Set 8 : rebase #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -81 lines) Patch
M content/child/shared_memory_data_consumer_handle.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -10 lines 0 comments Download
M content/child/shared_memory_data_consumer_handle.cc View 1 2 3 4 5 6 7 11 chunks +79 lines, -62 lines 0 comments Download
M content/child/shared_memory_data_consumer_handle_unittest.cc View 1 2 3 4 5 6 7 8 6 chunks +133 lines, -5 lines 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 3 4 5 6 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (9 generated)
yhirano
5 years, 6 months ago (2015-06-11 11:51:18 UTC) #5
yhirano
This CL depends on https://codereview.chromium.org/1164493008/.
5 years, 6 months ago (2015-06-11 11:51:47 UTC) #6
hiroshige
As discussed offline, Notify() might call didGetReadable() synchronously and this might cause reentrant to didGetReadable(). ...
5 years, 6 months ago (2015-06-18 07:01:21 UTC) #7
hiroshige
As discussed offline, Notify() might call didGetReadable() synchronously and this might cause reentrant to didGetReadable(). ...
5 years, 6 months ago (2015-06-18 07:01:21 UTC) #8
yhirano
PS4 removes deprecated implementations. https://codereview.chromium.org/1181573003/diff/100001/content/child/shared_memory_data_consumer_handle.cc File content/child/shared_memory_data_consumer_handle.cc (right): https://codereview.chromium.org/1181573003/diff/100001/content/child/shared_memory_data_consumer_handle.cc#newcode242 content/child/shared_memory_data_consumer_handle.cc:242: // Otherwise, clear the data. ...
5 years, 6 months ago (2015-06-18 08:13:33 UTC) #11
yhirano
https://codereview.chromium.org/1181573003/diff/100001/content/child/shared_memory_data_consumer_handle.cc File content/child/shared_memory_data_consumer_handle.cc (right): https://codereview.chromium.org/1181573003/diff/100001/content/child/shared_memory_data_consumer_handle.cc#newcode329 content/child/shared_memory_data_consumer_handle.cc:329: return UnexpectedError; > I added early-clear when closed / ...
5 years, 6 months ago (2015-06-18 08:14:51 UTC) #12
hiroshige
lgtm with a optional comment. https://codereview.chromium.org/1181573003/diff/100001/content/child/shared_memory_data_consumer_handle.cc File content/child/shared_memory_data_consumer_handle.cc (right): https://codereview.chromium.org/1181573003/diff/100001/content/child/shared_memory_data_consumer_handle.cc#newcode329 content/child/shared_memory_data_consumer_handle.cc:329: return UnexpectedError; On 2015/06/18 ...
5 years, 6 months ago (2015-06-18 08:35:11 UTC) #13
yhirano
https://codereview.chromium.org/1181573003/diff/100001/content/child/shared_memory_data_consumer_handle_unittest.cc File content/child/shared_memory_data_consumer_handle_unittest.cc (right): https://codereview.chromium.org/1181573003/diff/100001/content/child/shared_memory_data_consumer_handle_unittest.cc#newcode676 content/child/shared_memory_data_consumer_handle_unittest.cc:676: reader->endRead(size); On 2015/06/18 08:35:11, hiroshige wrote: > On 2015/06/18 ...
5 years, 6 months ago (2015-06-18 08:40:55 UTC) #14
yhirano
Could you review https://codereview.chromium.org/1181973005/ as this CL is blocked by it?
5 years, 6 months ago (2015-06-18 08:41:45 UTC) #15
yhirano
+kinuko for OWNER reivew.
5 years, 6 months ago (2015-06-18 08:42:04 UTC) #17
hiroshige
https://codereview.chromium.org/1181573003/diff/180001/content/child/shared_memory_data_consumer_handle_unittest.cc File content/child/shared_memory_data_consumer_handle_unittest.cc (right): https://codereview.chromium.org/1181573003/diff/180001/content/child/shared_memory_data_consumer_handle_unittest.cc#newcode682 content/child/shared_memory_data_consumer_handle_unittest.cc:682: EXPECT_EQ(kUnexpectedError, reader->beginRead(&pointer, kNon, &size)); nit: s/kNon/kNone/?
5 years, 6 months ago (2015-06-18 08:42:24 UTC) #18
yhirano
https://codereview.chromium.org/1181573003/diff/180001/content/child/shared_memory_data_consumer_handle_unittest.cc File content/child/shared_memory_data_consumer_handle_unittest.cc (right): https://codereview.chromium.org/1181573003/diff/180001/content/child/shared_memory_data_consumer_handle_unittest.cc#newcode682 content/child/shared_memory_data_consumer_handle_unittest.cc:682: EXPECT_EQ(kUnexpectedError, reader->beginRead(&pointer, kNon, &size)); On 2015/06/18 08:42:24, hiroshige wrote: ...
5 years, 6 months ago (2015-06-18 09:12:37 UTC) #19
kinuko
lgtm (sorry for slow stamping) https://codereview.chromium.org/1181573003/diff/190001/content/child/shared_memory_data_consumer_handle.h File content/child/shared_memory_data_consumer_handle.h (right): https://codereview.chromium.org/1181573003/diff/190001/content/child/shared_memory_data_consumer_handle.h#newcode32 content/child/shared_memory_data_consumer_handle.h:32: // Note: We assume ...
5 years, 6 months ago (2015-06-22 06:39:28 UTC) #20
yhirano
https://codereview.chromium.org/1181573003/diff/190001/content/child/shared_memory_data_consumer_handle.h File content/child/shared_memory_data_consumer_handle.h (right): https://codereview.chromium.org/1181573003/diff/190001/content/child/shared_memory_data_consumer_handle.h#newcode32 content/child/shared_memory_data_consumer_handle.h:32: // Note: We assume |AddData| is not called in ...
5 years, 6 months ago (2015-06-22 07:08:13 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1181573003/250001
5 years, 6 months ago (2015-06-22 07:42:03 UTC) #24
commit-bot: I haz the power
Committed patchset #9 (id:250001)
5 years, 6 months ago (2015-06-22 08:39:07 UTC) #25
commit-bot: I haz the power
5 years, 6 months ago (2015-06-22 08:39:52 UTC) #26
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/9fb5ecf62351a235b723c15c65343c895e8e7640
Cr-Commit-Position: refs/heads/master@{#335477}

Powered by Google App Engine
This is Rietveld 408576698