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

Issue 2046203003: [Fetch API] Introduce BytesConsumer (Closed)

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

Description

[Fetch API] Introduce BytesConsumer This CL introduces BytesConsumer interface which is expected to replace most of WebDataConsumerHandle subclasses. Unlike WebDataConsumerHandle, BytesConsumer is bound to a thread and an on-heap interface. This CL also implements a bridge class from FetchDataConsumerHandle to BytesConsumer. As it is not yet used, this CL doesn't change the actual behavior. BUG=610195 Committed: https://crrev.com/e14ef20c8ff5251390825f79e83f7db23e28dbf0 Cr-Commit-Position: refs/heads/master@{#408592}

Patch Set 1 : #

Total comments: 10

Patch Set 2 : fix #

Patch Set 3 : fix #

Total comments: 40

Patch Set 4 : done #

Patch Set 5 : fix #

Patch Set 6 : fix #

Patch Set 7 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+802 lines, -0 lines) Patch
A third_party/WebKit/Source/modules/fetch/BytesConsumer.h View 1 2 3 1 chunk +170 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/fetch/BytesConsumer.cpp View 1 chunk +25 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/fetch/BytesConsumerForDataConsumerHandle.h View 1 2 3 1 chunk +61 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/fetch/BytesConsumerForDataConsumerHandle.cpp View 1 2 3 4 5 6 1 chunk +194 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/fetch/BytesConsumerForDataConsumerHandleTest.cpp View 1 2 3 4 1 chunk +347 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (30 generated)
yhirano
4 years, 6 months ago (2016-06-09 08:18:01 UTC) #7
yhirano
ping
4 years, 5 months ago (2016-07-04 07:59:04 UTC) #8
yhirano
On 2016/07/04 07:59:04, yhirano wrote: > ping ping
4 years, 5 months ago (2016-07-07 08:37:53 UTC) #9
hiroshige
https://codereview.chromium.org/2046203003/diff/60001/third_party/WebKit/Source/modules/fetch/BytesConsumer.h File third_party/WebKit/Source/modules/fetch/BytesConsumer.h (right): https://codereview.chromium.org/2046203003/diff/60001/third_party/WebKit/Source/modules/fetch/BytesConsumer.h#newcode55 third_party/WebKit/Source/modules/fetch/BytesConsumer.h:55: class MODULES_EXPORT Client : public GarbageCollectedMixin { Are the ...
4 years, 5 months ago (2016-07-08 05:32:38 UTC) #10
yhirano
As talked offline, I revised the design. https://codereview.chromium.org/2046203003/diff/60001/third_party/WebKit/Source/modules/fetch/BytesConsumer.h File third_party/WebKit/Source/modules/fetch/BytesConsumer.h (right): https://codereview.chromium.org/2046203003/diff/60001/third_party/WebKit/Source/modules/fetch/BytesConsumer.h#newcode55 third_party/WebKit/Source/modules/fetch/BytesConsumer.h:55: class MODULES_EXPORT ...
4 years, 5 months ago (2016-07-12 10:50:57 UTC) #12
yhirano
ping
4 years, 5 months ago (2016-07-19 00:09:03 UTC) #13
yhirano
On 2016/07/19 00:09:03, yhirano wrote: > ping ping
4 years, 5 months ago (2016-07-22 01:54:35 UTC) #14
hiroshige
Sorry for delay. https://codereview.chromium.org/2046203003/diff/120001/third_party/WebKit/Source/modules/fetch/BytesConsumer.h File third_party/WebKit/Source/modules/fetch/BytesConsumer.h (right): https://codereview.chromium.org/2046203003/diff/120001/third_party/WebKit/Source/modules/fetch/BytesConsumer.h#newcode22 third_party/WebKit/Source/modules/fetch/BytesConsumer.h:22: // the state becomes closed or ...
4 years, 4 months ago (2016-07-26 06:48:12 UTC) #15
yhirano
https://codereview.chromium.org/2046203003/diff/120001/third_party/WebKit/Source/modules/fetch/BytesConsumer.h File third_party/WebKit/Source/modules/fetch/BytesConsumer.h (right): https://codereview.chromium.org/2046203003/diff/120001/third_party/WebKit/Source/modules/fetch/BytesConsumer.h#newcode22 third_party/WebKit/Source/modules/fetch/BytesConsumer.h:22: // the state becomes closed or errored, it will ...
4 years, 4 months ago (2016-07-27 13:19:53 UTC) #24
hiroshige
https://codereview.chromium.org/2046203003/diff/120001/third_party/WebKit/Source/modules/fetch/BytesConsumerForDataConsumerHandle.cpp File third_party/WebKit/Source/modules/fetch/BytesConsumerForDataConsumerHandle.cpp (right): https://codereview.chromium.org/2046203003/diff/120001/third_party/WebKit/Source/modules/fetch/BytesConsumerForDataConsumerHandle.cpp#newcode139 third_party/WebKit/Source/modules/fetch/BytesConsumerForDataConsumerHandle.cpp:139: case WebDataConsumerHandle::UnexpectedError: On 2016/07/27 13:19:52, yhirano wrote: > On ...
4 years, 4 months ago (2016-07-28 06:40:12 UTC) #25
yhirano
https://codereview.chromium.org/2046203003/diff/120001/third_party/WebKit/Source/modules/fetch/BytesConsumerForDataConsumerHandle.cpp File third_party/WebKit/Source/modules/fetch/BytesConsumerForDataConsumerHandle.cpp (right): https://codereview.chromium.org/2046203003/diff/120001/third_party/WebKit/Source/modules/fetch/BytesConsumerForDataConsumerHandle.cpp#newcode139 third_party/WebKit/Source/modules/fetch/BytesConsumerForDataConsumerHandle.cpp:139: case WebDataConsumerHandle::UnexpectedError: On 2016/07/28 06:40:12, hiroshige wrote: > On ...
4 years, 4 months ago (2016-07-28 07:32:31 UTC) #32
hiroshige
The code looks good but bots are red.
4 years, 4 months ago (2016-07-28 09:04:13 UTC) #35
yhirano
On 2016/07/28 09:04:13, hiroshige wrote: > The code looks good but bots are red. Fixed.
4 years, 4 months ago (2016-07-28 11:31:28 UTC) #40
hiroshige
LGTM. (It's unfortunate that we need NOTREACHED() after the switch statements though)
4 years, 4 months ago (2016-07-29 06:00:52 UTC) #41
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/2046203003/200001
4 years, 4 months ago (2016-07-29 06:12:47 UTC) #43
commit-bot: I haz the power
Committed patchset #7 (id:200001)
4 years, 4 months ago (2016-07-29 06:53:35 UTC) #45
commit-bot: I haz the power
4 years, 4 months ago (2016-07-29 06:56:08 UTC) #47
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/e14ef20c8ff5251390825f79e83f7db23e28dbf0
Cr-Commit-Position: refs/heads/master@{#408592}

Powered by Google App Engine
This is Rietveld 408576698