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

Issue 1233573002: [Fetch API] Remove DrainingBuffer. (Closed)

Created:
5 years, 5 months ago by yhirano
Modified:
5 years, 4 months ago
CC:
blink-reviews, falken, horo+watch_chromium.org, jsbell+serviceworker_chromium.org, kinuko+serviceworker, michaeln, nhiroki, serviceworker-reviews, tzik
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[Fetch API] Remove DrainingBuffer. This is a Fetch API related refactoring CL. Its main focus is to remove "draining buffer". Instead, BodyStreamBuffer has lock / unlock methods. A user can call |lock| to get its underlying handle and call |unlock| to release the handle. Now |body| property is held in FetchRequestData and FetchResponseData whereas previously it was held in Body implementation. This change simplifies the property update (e.g. clone) and removes several functions such as |refreshBody|. BUG=480746 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199808

Patch Set 1 : #

Patch Set 2 : #

Total comments: 10

Patch Set 3 : #

Total comments: 24

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+719 lines, -902 lines) Patch
M Source/core/streams/ReadableByteStreamReader.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/streams/UnderlyingSource.h View 1 chunk +2 lines, -1 line 0 comments Download
M Source/modules/cachestorage/Cache.cpp View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
M Source/modules/fetch/Body.h View 1 2 chunks +14 lines, -61 lines 0 comments Download
M Source/modules/fetch/Body.cpp View 1 2 chunks +100 lines, -374 lines 0 comments Download
M Source/modules/fetch/BodyStreamBuffer.h View 1 2 1 chunk +62 lines, -61 lines 0 comments Download
M Source/modules/fetch/BodyStreamBuffer.cpp View 1 2 1 chunk +157 lines, -97 lines 0 comments Download
M Source/modules/fetch/BodyStreamBufferTest.cpp View 1 2 3 2 chunks +246 lines, -81 lines 0 comments Download
M Source/modules/fetch/FetchManager.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/fetch/FetchRequestData.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/fetch/FetchRequestData.cpp View 1 2 3 4 4 chunks +22 lines, -9 lines 0 comments Download
M Source/modules/fetch/FetchResponseData.cpp View 1 2 3 2 chunks +12 lines, -10 lines 0 comments Download
M Source/modules/fetch/Request.h View 5 chunks +7 lines, -12 lines 0 comments Download
M Source/modules/fetch/Request.cpp View 1 2 3 12 chunks +19 lines, -61 lines 0 comments Download
M Source/modules/fetch/Response.h View 4 chunks +6 lines, -16 lines 0 comments Download
M Source/modules/fetch/Response.cpp View 11 chunks +9 lines, -66 lines 0 comments Download
M Source/modules/fetch/ResponseTest.cpp View 1 2 3 7 chunks +30 lines, -29 lines 0 comments Download
M Source/modules/serviceworkers/RespondWithObserver.cpp View 1 2 3 2 chunks +21 lines, -17 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M public/platform/WebDataConsumerHandle.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 27 (11 generated)
yhirano
5 years, 5 months ago (2015-07-13 04:47:02 UTC) #8
yhirano
ping
5 years, 5 months ago (2015-07-21 05:12:58 UTC) #9
hiroshige
https://codereview.chromium.org/1233573002/diff/140001/Source/modules/fetch/BodyStreamBuffer.h File Source/modules/fetch/BodyStreamBuffer.h (right): https://codereview.chromium.org/1233573002/diff/140001/Source/modules/fetch/BodyStreamBuffer.h#newcode40 Source/modules/fetch/BodyStreamBuffer.h:40: // Note: There is a case that calling |lock| ...
5 years, 5 months ago (2015-07-21 12:14:01 UTC) #10
yhirano
https://codereview.chromium.org/1233573002/diff/140001/Source/modules/fetch/BodyStreamBuffer.h File Source/modules/fetch/BodyStreamBuffer.h (right): https://codereview.chromium.org/1233573002/diff/140001/Source/modules/fetch/BodyStreamBuffer.h#newcode40 Source/modules/fetch/BodyStreamBuffer.h:40: // Note: There is a case that calling |lock| ...
5 years, 5 months ago (2015-07-22 09:42:45 UTC) #11
hiroshige
https://codereview.chromium.org/1233573002/diff/160001/Source/modules/fetch/FetchRequestData.cpp File Source/modules/fetch/FetchRequestData.cpp (right): https://codereview.chromium.org/1233573002/diff/160001/Source/modules/fetch/FetchRequestData.cpp#newcode58 Source/modules/fetch/FetchRequestData.cpp:58: request->m_buffer = new BodyStreamBuffer; same as the FetchResponseData::clone()'s comment. ...
5 years, 5 months ago (2015-07-24 12:47:04 UTC) #12
hiroshige
https://codereview.chromium.org/1233573002/diff/160001/Source/modules/fetch/BodyStreamBufferTest.cpp File Source/modules/fetch/BodyStreamBufferTest.cpp (right): https://codereview.chromium.org/1233573002/diff/160001/Source/modules/fetch/BodyStreamBufferTest.cpp#newcode110 Source/modules/fetch/BodyStreamBufferTest.cpp:110: handle = buffer->lock(executionContext()); nit: Reusing |handle| here is somehow ...
5 years, 5 months ago (2015-07-25 05:27:35 UTC) #13
yhirano
https://codereview.chromium.org/1233573002/diff/160001/Source/modules/fetch/BodyStreamBufferTest.cpp File Source/modules/fetch/BodyStreamBufferTest.cpp (right): https://codereview.chromium.org/1233573002/diff/160001/Source/modules/fetch/BodyStreamBufferTest.cpp#newcode110 Source/modules/fetch/BodyStreamBufferTest.cpp:110: handle = buffer->lock(executionContext()); On 2015/07/25 05:27:35, hiroshige wrote: > ...
5 years, 4 months ago (2015-07-29 08:45:03 UTC) #15
hiroshige
lgtm. Thanks for refactoring! https://codereview.chromium.org/1233573002/diff/200001/Source/modules/fetch/FetchRequestData.cpp File Source/modules/fetch/FetchRequestData.cpp (right): https://codereview.chromium.org/1233573002/diff/200001/Source/modules/fetch/FetchRequestData.cpp#newcode87 Source/modules/fetch/FetchRequestData.cpp:87: return request; optional: pass() and ...
5 years, 4 months ago (2015-07-29 09:23:09 UTC) #16
yhirano
https://codereview.chromium.org/1233573002/diff/200001/Source/modules/fetch/FetchRequestData.cpp File Source/modules/fetch/FetchRequestData.cpp (right): https://codereview.chromium.org/1233573002/diff/200001/Source/modules/fetch/FetchRequestData.cpp#newcode87 Source/modules/fetch/FetchRequestData.cpp:87: return request; On 2015/07/29 09:23:09, hiroshige wrote: > optional: ...
5 years, 4 months ago (2015-07-29 10:52:05 UTC) #17
yhirano
+horo@ for modules/serviceworkers, modules/cachestorage. +tyoshino@ for core/streams. +mkwst@ for public/platform. Thanks,
5 years, 4 months ago (2015-07-29 10:53:58 UTC) #19
horo
> +horo@ for modules/serviceworkers, modules/cachestorage. lgtm
5 years, 4 months ago (2015-07-30 09:53:27 UTC) #20
Mike West
public/ LGTM.
5 years, 4 months ago (2015-07-31 07:17:21 UTC) #21
tyoshino (SeeGerritForStatus)
lgtm
5 years, 4 months ago (2015-07-31 07:26:40 UTC) #22
yhirano
Thanks!
5 years, 4 months ago (2015-07-31 07:29:14 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1233573002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1233573002/220001
5 years, 4 months ago (2015-07-31 07:29:47 UTC) #26
commit-bot: I haz the power
5 years, 4 months ago (2015-07-31 08:54:12 UTC) #27
Message was sent while issue was closed.
Committed patchset #5 (id:220001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=199808

Powered by Google App Engine
This is Rietveld 408576698