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

Issue 1004623007: Streams Implementation Update: async read (Closed)

Created:
5 years, 9 months ago by yhirano
Modified:
5 years, 9 months ago
CC:
blink-reviews, vivekg, arv+blink, Inactive, vivekg_samsung
Base URL:
https://chromium.googlesource.com/chromium/blink.git@stream-reader-read
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Streams Implementation Update: async read This CL is one of Streams Implementation Update series. This CL does: - Make ReadableStreamReader.read asynchronous. - Remove .state, .ready and .isActive from ReadableStreamReader. - Remove .closed from ReadableStream. BUG=393911 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192220

Patch Set 1 #

Patch Set 2 : #

Total comments: 10

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 14

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+596 lines, -1024 lines) Patch
M LayoutTests/http/tests/fetch/script-tests/fetch-body-mixin.js View 1 2 3 4 5 6 7 8 9 2 chunks +25 lines, -50 lines 0 comments Download
M LayoutTests/http/tests/fetch/script-tests/stream-reader.js View 1 2 3 4 5 6 7 8 9 3 chunks +15 lines, -49 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/test-helpers.js View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/xmlhttprequest/resources/response-stream.js View 1 2 2 chunks +11 lines, -13 lines 0 comments Download
M LayoutTests/http/tests/xmlhttprequest/resources/response-stream-abort.js View 3 chunks +4 lines, -7 lines 0 comments Download
M LayoutTests/http/tests/xmlhttprequest/resources/response-stream-orphaned-promise.js View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/xmlhttprequest/response-stream-cancel.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M Source/core/streams/ReadableStream.h View 1 2 3 4 5 6 7 5 chunks +6 lines, -17 lines 0 comments Download
M Source/core/streams/ReadableStream.cpp View 1 2 3 4 5 6 7 8 chunks +33 lines, -168 lines 0 comments Download
M Source/core/streams/ReadableStream.idl View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M Source/core/streams/ReadableStreamImpl.h View 1 2 3 4 5 6 7 8 9 10 6 chunks +54 lines, -10 lines 0 comments Download
M Source/core/streams/ReadableStreamReader.h View 3 chunks +4 lines, -12 lines 0 comments Download
M Source/core/streams/ReadableStreamReader.cpp View 1 2 3 4 5 6 7 4 chunks +48 lines, -118 lines 0 comments Download
M Source/core/streams/ReadableStreamReader.idl View 1 2 3 4 2 chunks +4 lines, -14 lines 0 comments Download
M Source/core/streams/ReadableStreamReaderTest.cpp View 1 2 7 chunks +303 lines, -186 lines 0 comments Download
M Source/core/streams/ReadableStreamTest.cpp View 1 2 3 4 5 6 7 8 18 chunks +79 lines, -363 lines 0 comments Download

Messages

Total messages: 27 (10 generated)
yhirano
This CL depends on https://codereview.chromium.org/1001233002/. Currently response.body.getReader()read() returns Promise<ArrayBuffer>. It will be fixed in the ...
5 years, 9 months ago (2015-03-17 06:58:01 UTC) #3
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/1004623007/diff/40001/Source/core/streams/ReadableStreamReader.cpp File Source/core/streams/ReadableStreamReader.cpp (right): https://codereview.chromium.org/1004623007/diff/40001/Source/core/streams/ReadableStreamReader.cpp#newcode48 Source/core/streams/ReadableStreamReader.cpp:48: return closed(scriptState); https://streams.spec.whatwg.org/branch-snapshots/async-read-take-3/ Now it's specified to return a ...
5 years, 9 months ago (2015-03-18 07:10:50 UTC) #5
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/1004623007/diff/40001/Source/core/streams/ReadableStream.cpp File Source/core/streams/ReadableStream.cpp (right): https://codereview.chromium.org/1004623007/diff/40001/Source/core/streams/ReadableStream.cpp#newcode83 Source/core/streams/ReadableStream.cpp:83: resolveAllPendingReadsAsDone(); L83-L86 and L95-L99 are the same. https://codereview.chromium.org/1004623007/diff/40001/Source/core/streams/ReadableStream.cpp#newcode96 Source/core/streams/ReadableStream.cpp:96: ...
5 years, 9 months ago (2015-03-18 07:39:10 UTC) #6
yhirano
https://codereview.chromium.org/1004623007/diff/40001/Source/core/streams/ReadableStream.cpp File Source/core/streams/ReadableStream.cpp (right): https://codereview.chromium.org/1004623007/diff/40001/Source/core/streams/ReadableStream.cpp#newcode83 Source/core/streams/ReadableStream.cpp:83: resolveAllPendingReadsAsDone(); On 2015/03/18 07:39:10, tyoshino wrote: > L83-L86 and ...
5 years, 9 months ago (2015-03-18 08:07:49 UTC) #9
domenic (use chromium.org)
Reviewed IDL, looks like an accurate subset of what we have in the spec :) ...
5 years, 9 months ago (2015-03-18 08:32:17 UTC) #11
yhirano
Thank you for the review! https://codereview.chromium.org/1004623007/diff/140001/Source/core/streams/ReadableStream.idl File Source/core/streams/ReadableStream.idl (right): https://codereview.chromium.org/1004623007/diff/140001/Source/core/streams/ReadableStream.idl#newcode12 Source/core/streams/ReadableStream.idl:12: [CallWith=ScriptState] Promise<any> cancel(any reason); ...
5 years, 9 months ago (2015-03-18 08:36:28 UTC) #12
yhirano
https://codereview.chromium.org/1004623007/diff/40001/Source/core/streams/ReadableStreamReader.cpp File Source/core/streams/ReadableStreamReader.cpp (right): https://codereview.chromium.org/1004623007/diff/40001/Source/core/streams/ReadableStreamReader.cpp#newcode48 Source/core/streams/ReadableStreamReader.cpp:48: return closed(scriptState); On 2015/03/18 08:07:49, yhirano wrote: > On ...
5 years, 9 months ago (2015-03-18 14:03:24 UTC) #13
yhirano
https://codereview.chromium.org/1004623007/diff/40001/Source/core/streams/ReadableStreamReader.cpp File Source/core/streams/ReadableStreamReader.cpp (right): https://codereview.chromium.org/1004623007/diff/40001/Source/core/streams/ReadableStreamReader.cpp#newcode48 Source/core/streams/ReadableStreamReader.cpp:48: return closed(scriptState); On 2015/03/18 14:03:23, yhirano wrote: > On ...
5 years, 9 months ago (2015-03-19 01:36:13 UTC) #14
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/1004623007/diff/220001/Source/core/streams/ReadableStreamReader.cpp File Source/core/streams/ReadableStreamReader.cpp (right): https://codereview.chromium.org/1004623007/diff/220001/Source/core/streams/ReadableStreamReader.cpp#newcode46 Source/core/streams/ReadableStreamReader.cpp:46: return m_stream->cancelInternal(scriptState, reason); don't you only want to skip ...
5 years, 9 months ago (2015-03-19 07:54:52 UTC) #15
yhirano
https://codereview.chromium.org/1004623007/diff/220001/Source/core/streams/ReadableStreamReader.cpp File Source/core/streams/ReadableStreamReader.cpp (right): https://codereview.chromium.org/1004623007/diff/220001/Source/core/streams/ReadableStreamReader.cpp#newcode46 Source/core/streams/ReadableStreamReader.cpp:46: return m_stream->cancelInternal(scriptState, reason); On 2015/03/19 07:54:52, tyoshino wrote: > ...
5 years, 9 months ago (2015-03-19 08:39:02 UTC) #16
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/1004623007/diff/220001/LayoutTests/http/tests/fetch/script-tests/fetch-body-mixin.js File LayoutTests/http/tests/fetch/script-tests/fetch-body-mixin.js (right): https://codereview.chromium.org/1004623007/diff/220001/LayoutTests/http/tests/fetch/script-tests/fetch-body-mixin.js#newcode131 LayoutTests/http/tests/fetch/script-tests/fetch-body-mixin.js:131: return Promise.resolve().then(function() { is this necessary? https://codereview.chromium.org/1004623007/diff/220001/LayoutTests/http/tests/fetch/script-tests/fetch-body-mixin.js#newcode152 LayoutTests/http/tests/fetch/script-tests/fetch-body-mixin.js:152: return ...
5 years, 9 months ago (2015-03-19 09:48:30 UTC) #17
yhirano
https://codereview.chromium.org/1004623007/diff/220001/LayoutTests/http/tests/fetch/script-tests/fetch-body-mixin.js File LayoutTests/http/tests/fetch/script-tests/fetch-body-mixin.js (right): https://codereview.chromium.org/1004623007/diff/220001/LayoutTests/http/tests/fetch/script-tests/fetch-body-mixin.js#newcode131 LayoutTests/http/tests/fetch/script-tests/fetch-body-mixin.js:131: return Promise.resolve().then(function() { On 2015/03/19 09:48:30, tyoshino wrote: > ...
5 years, 9 months ago (2015-03-19 11:00:30 UTC) #18
tyoshino (SeeGerritForStatus)
lgtm https://codereview.chromium.org/1004623007/diff/220001/LayoutTests/http/tests/fetch/script-tests/fetch-body-mixin.js File LayoutTests/http/tests/fetch/script-tests/fetch-body-mixin.js (right): https://codereview.chromium.org/1004623007/diff/220001/LayoutTests/http/tests/fetch/script-tests/fetch-body-mixin.js#newcode131 LayoutTests/http/tests/fetch/script-tests/fetch-body-mixin.js:131: return Promise.resolve().then(function() { On 2015/03/19 11:00:30, yhirano wrote: ...
5 years, 9 months ago (2015-03-19 12:18:09 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1004623007/260001
5 years, 9 months ago (2015-03-19 12:46:49 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_compile_dbg/builds/39827)
5 years, 9 months ago (2015-03-19 13:05:19 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1004623007/280001
5 years, 9 months ago (2015-03-20 00:37:37 UTC) #26
commit-bot: I haz the power
5 years, 9 months ago (2015-03-20 02:08:04 UTC) #27
Message was sent while issue was closed.
Committed patchset #11 (id:280001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192220

Powered by Google App Engine
This is Rietveld 408576698