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

Issue 1899873006: Make Response::body return v8-extra based stream behind flag (Closed)

Created:
4 years, 8 months ago by yhirano
Modified:
4 years, 8 months ago
Reviewers:
tyoshino (SeeGerritForStatus), haraken, Yuki, blink-reviews-bindings, horo
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, tzik, serviceworker-reviews, nhiroki, blink-reviews-bindings_chromium.org, falken, kinuko+serviceworker, blink-reviews, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@notify-locked-released
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make Response::body return v8-extra based stream behind flag This CL makes Response::body return a v8-extra based ReadableStream when ResponseBodyWithV8ExtraStream is enabled. This CL also deprecates Response.v8ExtraStreamBody(). BUG=596832 Committed: https://crrev.com/4d1201da5903586ded0a446d670aa502af359c1a Cr-Commit-Position: refs/heads/master@{#389063} Committed: https://crrev.com/053e4d396a034a48fb6d00525b249e9fdd6ac70e Cr-Commit-Position: refs/heads/master@{#390031}

Patch Set 1 : #

Total comments: 8

Patch Set 2 : #

Total comments: 10

Patch Set 3 : #

Total comments: 10

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+340 lines, -485 lines) Patch
D third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/v8-extra-body.js View 1 chunk +0 lines, -24 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/fetch/serviceworker/v8-extra-body.html View 1 chunk +0 lines, -21 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/fetch/serviceworker/v8-extra-body-base-https-other-https.html View 1 chunk +0 lines, -21 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/fetch/window/v8-extra-body.html View 1 chunk +0 lines, -30 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/fetch/window/v8-extra-body-base-https-other-https.html View 1 chunk +0 lines, -30 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/fetch/workers/v8-extra-body.html View 1 chunk +0 lines, -20 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/fetch/workers/v8-extra-body-base-https-other-https.html View 1 chunk +0 lines, -20 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8HiddenValue.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/streams/UnderlyingSourceBase.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/streams/UnderlyingSourceBase.cpp View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/cachestorage/Cache.cpp View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/cachestorage/CacheStorage.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/cachestorage/CacheTest.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Body.h View 1 2 3 4 5 4 chunks +4 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Body.cpp View 1 2 3 4 5 6 7 8 8 chunks +11 lines, -84 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h View 1 2 3 4 5 6 2 chunks +28 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp View 1 2 3 4 5 6 7 8 7 chunks +145 lines, -40 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp View 1 2 3 4 18 chunks +27 lines, -27 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchManager.cpp View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchRequestData.h View 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchRequestData.cpp View 1 2 3 4 5 6 7 8 4 chunks +10 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchResponseData.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchResponseData.cpp View 5 chunks +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/fetch/Request.h View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Request.cpp View 1 2 3 4 5 6 7 8 6 chunks +24 lines, -31 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Request.idl View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/fetch/RequestTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/fetch/Response.h View 1 2 3 4 5 2 chunks +3 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Response.cpp View 1 2 3 4 5 6 7 8 10 chunks +18 lines, -28 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Response.idl View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/ResponseTest.cpp View 1 2 3 4 5 6 7 8 9 chunks +23 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/RespondWithObserver.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 53 (23 generated)
yhirano
+blink-reviews-bindings for BodyStreamBuffer.cpp and V8HiddenValue.h
4 years, 8 months ago (2016-04-20 09:05:56 UTC) #9
Yuki
lgtm https://codereview.chromium.org/1899873006/diff/80001/third_party/WebKit/Source/modules/fetch/Body.cpp File third_party/WebKit/Source/modules/fetch/Body.cpp (right): https://codereview.chromium.org/1899873006/diff/80001/third_party/WebKit/Source/modules/fetch/Body.cpp#newcode10 third_party/WebKit/Source/modules/fetch/Body.cpp:10: #include "bindings/core/v8/V8HiddenValue.h" Why do you need to include ...
4 years, 8 months ago (2016-04-20 12:15:27 UTC) #11
yhirano
https://codereview.chromium.org/1899873006/diff/80001/third_party/WebKit/Source/modules/fetch/Body.cpp File third_party/WebKit/Source/modules/fetch/Body.cpp (right): https://codereview.chromium.org/1899873006/diff/80001/third_party/WebKit/Source/modules/fetch/Body.cpp#newcode10 third_party/WebKit/Source/modules/fetch/Body.cpp:10: #include "bindings/core/v8/V8HiddenValue.h" On 2016/04/20 12:15:26, Yuki wrote: > Why ...
4 years, 8 months ago (2016-04-21 03:41:42 UTC) #12
Yuki
lgtm
4 years, 8 months ago (2016-04-21 03:57:00 UTC) #13
haraken
https://codereview.chromium.org/1899873006/diff/100001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp File third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp (right): https://codereview.chromium.org/1899873006/diff/100001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp#newcode171 third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp:171: loader->start(handle.get(), new LoaderClient(m_scriptState->getExecutionContext(), this, client)); Don't you need: if ...
4 years, 8 months ago (2016-04-21 04:36:28 UTC) #15
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/1899873006/diff/100001/third_party/WebKit/Source/modules/fetch/Request.cpp File third_party/WebKit/Source/modules/fetch/Request.cpp (right): https://codereview.chromium.org/1899873006/diff/100001/third_party/WebKit/Source/modules/fetch/Request.cpp#newcode431 third_party/WebKit/Source/modules/fetch/Request.cpp:431: m_headers->setGuard(Headers::RequestGuard); this will be invoked again in Request(ScriptState, FetchRequestData*)? ...
4 years, 8 months ago (2016-04-21 07:46:24 UTC) #16
yhirano
https://codereview.chromium.org/1899873006/diff/100001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp File third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp (right): https://codereview.chromium.org/1899873006/diff/100001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp#newcode171 third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp:171: loader->start(handle.get(), new LoaderClient(m_scriptState->getExecutionContext(), this, client)); On 2016/04/21 04:36:28, haraken ...
4 years, 8 months ago (2016-04-21 08:14:23 UTC) #17
haraken
LGTM
4 years, 8 months ago (2016-04-21 08:26:08 UTC) #18
yhirano
+horo@ for modules/serviceworkers, modules/cachestorage and web/ServiceWorkerGlobalScopeProxy.cpp.
4 years, 8 months ago (2016-04-21 08:27:54 UTC) #20
horo
On 2016/04/21 08:27:54, yhirano wrote: > +horo@ for modules/serviceworkers, modules/cachestorage and > web/ServiceWorkerGlobalScopeProxy.cpp. lgtm
4 years, 8 months ago (2016-04-22 02:02:19 UTC) #21
tyoshino (SeeGerritForStatus)
lgtm https://codereview.chromium.org/1899873006/diff/120001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp File third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp (left): https://codereview.chromium.org/1899873006/diff/120001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp#oldcode125 third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp:125: m_reader = nullptr; is it ok to kill ...
4 years, 8 months ago (2016-04-22 07:53:01 UTC) #22
yhirano
https://codereview.chromium.org/1899873006/diff/120001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp File third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp (left): https://codereview.chromium.org/1899873006/diff/120001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp#oldcode125 third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp:125: m_reader = nullptr; On 2016/04/22 07:53:01, tyoshino wrote: > ...
4 years, 8 months ago (2016-04-22 08:04:43 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899873006/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899873006/160001
4 years, 8 months ago (2016-04-22 09:23:34 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:160001)
4 years, 8 months ago (2016-04-22 09:32:39 UTC) #28
kjellander_chromium
A revert of this CL (patchset #5 id:160001) has been created in https://codereview.chromium.org/1906403002/ by kjellander@chromium.org. ...
4 years, 8 months ago (2016-04-22 12:15:58 UTC) #29
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/4d1201da5903586ded0a446d670aa502af359c1a Cr-Commit-Position: refs/heads/master@{#389063}
4 years, 8 months ago (2016-04-22 19:45:47 UTC) #31
yhirano
reopen
4 years, 8 months ago (2016-04-25 02:27:03 UTC) #33
yhirano
BodyStreamBuffer's hasPendingActivity returns true when ReadableStream is readable and its reader is active. Hence it ...
4 years, 8 months ago (2016-04-25 03:09:51 UTC) #34
Yuki
On 2016/04/25 03:09:51, yhirano wrote: > BodyStreamBuffer's hasPendingActivity returns true when ReadableStream is > readable ...
4 years, 8 months ago (2016-04-25 06:51:03 UTC) #35
yhirano
On 2016/04/25 06:51:03, Yuki wrote: > On 2016/04/25 03:09:51, yhirano wrote: > > BodyStreamBuffer's hasPendingActivity ...
4 years, 8 months ago (2016-04-25 06:53:07 UTC) #36
Yuki
I'm okay. Differ to the experts. LGTM.
4 years, 8 months ago (2016-04-25 07:02:07 UTC) #37
haraken
> Additionally, I make hasPendingActivity return false when ActiveDOMObejcts are stopped in this CL How ...
4 years, 8 months ago (2016-04-25 08:19:27 UTC) #38
yhirano
On 2016/04/25 08:19:27, haraken wrote: > > Additionally, I make hasPendingActivity return false when ActiveDOMObejcts ...
4 years, 8 months ago (2016-04-25 08:24:38 UTC) #39
haraken
On 2016/04/25 08:24:38, yhirano wrote: > On 2016/04/25 08:19:27, haraken wrote: > > > Additionally, ...
4 years, 8 months ago (2016-04-25 08:27:03 UTC) #40
tyoshino (SeeGerritForStatus)
lgtm
4 years, 8 months ago (2016-04-27 07:05:54 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899873006/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899873006/220001
4 years, 8 months ago (2016-04-27 07:59:41 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/25695) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 8 months ago (2016-04-27 08:02:11 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899873006/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899873006/240001
4 years, 8 months ago (2016-04-27 08:28:01 UTC) #49
commit-bot: I haz the power
Committed patchset #9 (id:240001)
4 years, 8 months ago (2016-04-27 09:32:58 UTC) #51
commit-bot: I haz the power
4 years, 8 months ago (2016-04-27 09:34:30 UTC) #53
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/053e4d396a034a48fb6d00525b249e9fdd6ac70e
Cr-Commit-Position: refs/heads/master@{#390031}

Powered by Google App Engine
This is Rietveld 408576698