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

Issue 2269953004: Implment BytesConsumer::tee (Closed)

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

Description

Implment BytesConsumer::tee This CL implements BytesConsumer::tee function which will replace DataConsumerTee::create. This CL also introduces BytesConsumerTestUtil::ReplayingBytesConsumer which is equivalent to DataConsumerHandleTestUtil::ReplayingHandle. BUG=610195 Committed: https://crrev.com/0cc0e2b584b5da0884a7b9ef244a1d94ec5e6600 Cr-Commit-Position: refs/heads/master@{#418217}

Patch Set 1 : fix #

Patch Set 2 : fix #

Patch Set 3 : rebase #

Patch Set 4 : fix #

Total comments: 10

Patch Set 5 : fix #

Patch Set 6 : fix #

Patch Set 7 : fix #

Patch Set 8 : fix #

Total comments: 12

Patch Set 9 : fix #

Patch Set 10 : fix #

Patch Set 11 : fix #

Total comments: 64

Patch Set 12 : fix #

Patch Set 13 : fix #

Patch Set 14 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1240 lines, -49 lines) Patch
M third_party/WebKit/Source/modules/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/fetch/BytesConsumer.h View 1 2 3 4 5 6 7 8 4 chunks +16 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +321 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/BytesConsumerForDataConsumerHandle.h View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/fetch/BytesConsumerForDataConsumerHandle.cpp View 1 2 3 4 5 6 7 8 9 7 chunks +53 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/BytesConsumerForDataConsumerHandleTest.cpp View 1 2 3 4 5 6 7 8 9 19 chunks +27 lines, -18 lines 0 comments Download
A third_party/WebKit/Source/modules/fetch/BytesConsumerTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +434 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.h View 1 chunk +131 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +236 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchDataLoaderTest.cpp View 1 2 3 4 5 6 7 8 9 12 chunks +12 lines, -12 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 81 (62 generated)
yhirano
4 years, 4 months ago (2016-08-24 08:19:00 UTC) #11
hiroshige
https://codereview.chromium.org/2269953004/diff/80001/third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp File third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp (right): https://codereview.chromium.org/2269953004/diff/80001/third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp#newcode137 third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp:137: if (m_chunks.isEmpty()) { How about turning this if statement ...
4 years, 3 months ago (2016-08-30 07:42:47 UTC) #23
hiroshige
https://codereview.chromium.org/2269953004/diff/80001/third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp File third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp (right): https://codereview.chromium.org/2269953004/diff/80001/third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp#newcode158 third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp:158: DCHECK(!m_chunks.isEmpty()); This DCHECK means clearChunks() and thus onStateChange() cannot ...
4 years, 3 months ago (2016-08-30 07:47:38 UTC) #24
yhirano
I changed my mind after the offline discussion. We don't allow Done with non-zero size. ...
4 years, 3 months ago (2016-09-02 11:17:19 UTC) #35
yhirano
hiroshige: ping
4 years, 3 months ago (2016-09-07 01:06:14 UTC) #38
hiroshige
https://codereview.chromium.org/2269953004/diff/160001/third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp File third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp (right): https://codereview.chromium.org/2269953004/diff/160001/third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp#newcode144 third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp:144: Bytes* bytes = m_chunks[0]; We use "bytes" and "chunks" ...
4 years, 3 months ago (2016-09-07 09:17:48 UTC) #43
hiroshige
https://codereview.chromium.org/2269953004/diff/160001/third_party/WebKit/Source/modules/fetch/BytesConsumer.h File third_party/WebKit/Source/modules/fetch/BytesConsumer.h (right): https://codereview.chromium.org/2269953004/diff/160001/third_party/WebKit/Source/modules/fetch/BytesConsumer.h#newcode104 third_party/WebKit/Source/modules/fetch/BytesConsumer.h:104: virtual Result endRead(size_t readSize) = 0; Can we add ...
4 years, 3 months ago (2016-09-07 09:26:50 UTC) #44
yhirano
https://codereview.chromium.org/2269953004/diff/160001/third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp File third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp (right): https://codereview.chromium.org/2269953004/diff/160001/third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp#newcode144 third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp:144: Bytes* bytes = m_chunks[0]; On 2016/09/07 09:17:47, hiroshige wrote: ...
4 years, 3 months ago (2016-09-07 10:51:34 UTC) #49
hiroshige
https://codereview.chromium.org/2269953004/diff/220001/third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp File third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp (right): https://codereview.chromium.org/2269953004/diff/220001/third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp#newcode70 third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp:70: DCHECK_EQ(Result::Ok, result); nit: how about using switch() and |case ...
4 years, 3 months ago (2016-09-08 08:25:55 UTC) #56
yhirano
https://codereview.chromium.org/2269953004/diff/220001/third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp File third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp (right): https://codereview.chromium.org/2269953004/diff/220001/third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp#newcode70 third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp:70: DCHECK_EQ(Result::Ok, result); On 2016/09/08 08:25:54, hiroshige wrote: > nit: ...
4 years, 3 months ago (2016-09-08 09:41:35 UTC) #61
hiroshige
lgtm. https://codereview.chromium.org/2269953004/diff/220001/third_party/WebKit/Source/modules/fetch/BytesConsumerTest.cpp File third_party/WebKit/Source/modules/fetch/BytesConsumerTest.cpp (right): https://codereview.chromium.org/2269953004/diff/220001/third_party/WebKit/Source/modules/fetch/BytesConsumerTest.cpp#newcode261 third_party/WebKit/Source/modules/fetch/BytesConsumerTest.cpp:261: On 2016/09/08 09:41:34, yhirano wrote: > On 2016/09/08 ...
4 years, 3 months ago (2016-09-09 06:37:30 UTC) #64
yhirano
https://codereview.chromium.org/2269953004/diff/220001/third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.cpp File third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.cpp (right): https://codereview.chromium.org/2269953004/diff/220001/third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.cpp#newcode159 third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.cpp:159: char buffer[3]; On 2016/09/09 06:37:30, hiroshige wrote: > On ...
4 years, 3 months ago (2016-09-09 07:07:47 UTC) #67
yhirano
+haraken for modules/BUILD.gn
4 years, 3 months ago (2016-09-09 07:08:11 UTC) #69
yhirano
haraken@, can you take a look at modules/BUILD.gn?
4 years, 3 months ago (2016-09-13 07:31:02 UTC) #72
haraken
On 2016/09/13 07:31:02, yhirano (slow) wrote: > haraken@, can you take a look at modules/BUILD.gn? ...
4 years, 3 months ago (2016-09-13 07:47:29 UTC) #73
haraken
On 2016/09/13 07:31:02, yhirano (slow) wrote: > haraken@, can you take a look at modules/BUILD.gn? ...
4 years, 3 months ago (2016-09-13 07:47:29 UTC) #74
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2269953004/280001
4 years, 3 months ago (2016-09-13 07:49:17 UTC) #77
commit-bot: I haz the power
Committed patchset #14 (id:280001)
4 years, 3 months ago (2016-09-13 11:03:47 UTC) #79
commit-bot: I haz the power
4 years, 3 months ago (2016-09-13 11:07:40 UTC) #81
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/0cc0e2b584b5da0884a7b9ef244a1d94ec5e6600
Cr-Commit-Position: refs/heads/master@{#418217}

Powered by Google App Engine
This is Rietveld 408576698