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

Issue 2229313002: Make FetchDataLoader accept BytesConsumer (Closed)

Created:
4 years, 4 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@remove-c++-rs
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make FetchDataLoader accept BytesConsumer This CL makes FetchDataLoader accept a BytesConsumer instead of FetchDataConsumerHandle. This CL removes many statements clearing pointers, because - As onStateChange will not be called after the consumer is closed or errored, clearing |m_client| is not necessary. - Unlike FetchDataConsumerHandle::Reader, BytesConsumer doesn't rely on the destructor. Instead, we need to cancel it appropriately. - Clearing |m_decoder| is not necessary and they will be destructed when the loader is destructed. BUG=610195 Committed: https://crrev.com/6963b6b43faef1611ba0c380c3de7aa4ec22a1ed Cr-Commit-Position: refs/heads/master@{#412447}

Patch Set 1 : fix #

Patch Set 2 : fix #

Patch Set 3 : fix #

Total comments: 8

Patch Set 4 : fix #

Total comments: 2

Patch Set 5 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -258 lines) Patch
M third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp View 1 2 3 4 7 chunks +7 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/BytesConsumer.h View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchDataLoader.h View 1 2 chunks +7 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp View 1 2 3 3 chunks +129 lines, -214 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchDataLoaderTest.cpp View 21 chunks +39 lines, -20 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 46 (36 generated)
yhirano
4 years, 4 months ago (2016-08-10 11:20:03 UTC) #16
hiroshige
Unit tests are failing.
4 years, 4 months ago (2016-08-12 06:02:31 UTC) #21
yhirano
On 2016/08/12 06:02:31, hiroshige wrote: > Unit tests are failing. Sorry, fixed.
4 years, 4 months ago (2016-08-12 07:44:11 UTC) #24
hiroshige
(From offline discussion) This CL makes FetchDataLoader not to clear when done/errored/cancelled: - |m_client| because ...
4 years, 4 months ago (2016-08-12 08:21:17 UTC) #27
yhirano
Updated the CL description. https://codereview.chromium.org/2229313002/diff/100001/third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp File third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp (left): https://codereview.chromium.org/2229313002/diff/100001/third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp#oldcode352 third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp:352: // process. On 2016/08/12 08:21:17, ...
4 years, 4 months ago (2016-08-12 12:36:55 UTC) #31
hiroshige
lgtm. https://codereview.chromium.org/2229313002/diff/120001/third_party/WebKit/Source/modules/fetch/BytesConsumer.h File third_party/WebKit/Source/modules/fetch/BytesConsumer.h (right): https://codereview.chromium.org/2229313002/diff/120001/third_party/WebKit/Source/modules/fetch/BytesConsumer.h#newcode62 third_party/WebKit/Source/modules/fetch/BytesConsumer.h:62: // function cannot be called when the state ...
4 years, 4 months ago (2016-08-15 07:09:57 UTC) #34
yhirano
https://codereview.chromium.org/2229313002/diff/120001/third_party/WebKit/Source/modules/fetch/BytesConsumer.h File third_party/WebKit/Source/modules/fetch/BytesConsumer.h (right): https://codereview.chromium.org/2229313002/diff/120001/third_party/WebKit/Source/modules/fetch/BytesConsumer.h#newcode62 third_party/WebKit/Source/modules/fetch/BytesConsumer.h:62: // function cannot be called when the state is ...
4 years, 4 months ago (2016-08-16 09:02:21 UTC) #37
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/2229313002/140001
4 years, 4 months ago (2016-08-17 04:11:59 UTC) #42
commit-bot: I haz the power
Committed patchset #5 (id:140001)
4 years, 4 months ago (2016-08-17 04:15:12 UTC) #44
commit-bot: I haz the power
4 years, 4 months ago (2016-08-17 04:16:31 UTC) #46
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6963b6b43faef1611ba0c380c3de7aa4ec22a1ed
Cr-Commit-Position: refs/heads/master@{#412447}

Powered by Google App Engine
This is Rietveld 408576698