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

Issue 1217943007: Call Client methods synchronously in FetchDataLoader if the first read is Done or error (Closed)

Created:
5 years, 5 months ago by hiroshige
Modified:
5 years, 5 months ago
Reviewers:
yhirano
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Call Client methods synchronously in FetchDataLoader if the first read is Done or error Preparation for https://codereview.chromium.org/1192913007/. Handles like createDoneDataConsumerHandle() or createUnexpectedErrorDataConsumerHandle() can be created temporarily, and the handles and associated FetchDataLoader might be difficult to be kept alive. This CL avoid the problem of keeping alive such handles by completing load for such handles synchronously in start(). BUG=480746

Patch Set 1 #

Patch Set 2 : Fix unittests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -0 lines) Patch
M Source/modules/fetch/FetchDataLoader.h View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/modules/fetch/FetchDataLoader.cpp View 3 chunks +3 lines, -0 lines 0 comments Download
M Source/modules/fetch/FetchDataLoaderTest.cpp View 1 11 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
hiroshige
PTAL.
5 years, 5 months ago (2015-07-01 18:57:01 UTC) #2
yhirano
Can you tell me why you need the synchronous reading? > Handles like createDoneDataConsumerHandle() or ...
5 years, 5 months ago (2015-07-02 06:33:18 UTC) #3
hiroshige
On 2015/07/02 06:33:18, yhirano wrote: > Can you tell me why you need the synchronous ...
5 years, 5 months ago (2015-07-02 08:22:34 UTC) #4
yhirano
On 2015/07/02 08:22:34, hiroshige wrote: > On 2015/07/02 06:33:18, yhirano wrote: > > Can you ...
5 years, 5 months ago (2015-07-03 09:41:42 UTC) #5
hiroshige
> We need to load data from a draining stream using FetchDataLoader. > DrainingBodyStream has ...
5 years, 5 months ago (2015-07-05 06:39:04 UTC) #6
yhirano
On 2015/07/05 06:39:04, hiroshige wrote: > > We need to load data from a draining ...
5 years, 5 months ago (2015-07-06 03:27:29 UTC) #7
hiroshige
5 years, 5 months ago (2015-07-06 04:52:52 UTC) #8
> I like your your fix in https://codereview.chromium.org/1192913007/ better.

OK, then I'll use the fix and close this CL.
Thanks!

Powered by Google App Engine
This is Rietveld 408576698