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

Issue 2287323002: Implement BlobBytesConsumer (Closed)

Created:
4 years, 3 months ago by yhirano
Modified:
4 years, 2 months ago
Reviewers:
hiroshige, haraken
CC:
chromium-reviews, blink-reviews, haraken
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement BlobBytesConsumer This CL implements BlobBytesConsumer which will replace FetchBlobDataConsumerHandle. BUG=610195 Committed: https://crrev.com/e3820506d765ca446b48fa84618581933d43c084 Cr-Commit-Position: refs/heads/master@{#421170}

Patch Set 1 : fix #

Patch Set 2 : fix #

Patch Set 3 : fix #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 : fix #

Patch Set 7 : rebase #

Patch Set 8 : fix #

Total comments: 12

Patch Set 9 : fix #

Total comments: 8

Patch Set 10 : fix #

Patch Set 11 : fix #

Patch Set 12 : fix #

Patch Set 13 : fix #

Total comments: 4

Patch Set 14 : fix #

Total comments: 8

Patch Set 15 : fix #

Patch Set 16 : rebase #

Patch Set 17 : fix #

Total comments: 10

Patch Set 18 : fix #

Patch Set 19 : fix #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+938 lines, -4 lines) Patch
M third_party/WebKit/Source/modules/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +86 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +314 lines, -0 lines 2 comments Download
A third_party/WebKit/Source/modules/fetch/BlobBytesConsumerTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +532 lines, -0 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 12 13 14 15 2 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 105 (82 generated)
yhirano
4 years, 3 months ago (2016-08-30 05:54:20 UTC) #16
yhirano
hiroshige@, can you take a look?
4 years, 3 months ago (2016-09-13 03:25:25 UTC) #43
hiroshige
https://codereview.chromium.org/2287323002/diff/180001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp File third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp (right): https://codereview.chromium.org/2287323002/diff/180001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp#newcode53 third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp:53: SecurityOrigin* origin = getExecutionContext()->getSecurityOrigin(); SecurityOrigin is RefCounted and thus ...
4 years, 3 months ago (2016-09-13 03:57:23 UTC) #44
yhirano
https://codereview.chromium.org/2287323002/diff/180001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp File third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp (right): https://codereview.chromium.org/2287323002/diff/180001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp#newcode53 third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp:53: SecurityOrigin* origin = getExecutionContext()->getSecurityOrigin(); On 2016/09/13 03:57:23, hiroshige wrote: ...
4 years, 3 months ago (2016-09-13 05:13:51 UTC) #47
hiroshige
We have bunch of booleans and pointers that can be null or non-null: m_blobDataHandle m_body ...
4 years, 3 months ago (2016-09-13 08:35:44 UTC) #50
yhirano
https://codereview.chromium.org/2287323002/diff/200001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp File third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp (right): https://codereview.chromium.org/2287323002/diff/200001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp#newcode265 third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp:265: didFailInternal(); On 2016/09/13 08:35:44, hiroshige wrote: > nit: Can ...
4 years, 3 months ago (2016-09-14 07:33:25 UTC) #55
yhirano
> Can we simplify the state control e.g. by turning booleans to a single state ...
4 years, 3 months ago (2016-09-14 07:35:01 UTC) #56
hiroshige
https://codereview.chromium.org/2287323002/diff/200001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp File third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp (right): https://codereview.chromium.org/2287323002/diff/200001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp#newcode75 third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp:75: if (m_hasSeenEndOfData && m_hasFinishedLoading) { This if statement is ...
4 years, 3 months ago (2016-09-15 05:54:51 UTC) #65
yhirano
https://codereview.chromium.org/2287323002/diff/200001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp File third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp (right): https://codereview.chromium.org/2287323002/diff/200001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp#newcode75 third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp:75: if (m_hasSeenEndOfData && m_hasFinishedLoading) { On 2016/09/15 05:54:51, hiroshige ...
4 years, 3 months ago (2016-09-15 08:13:32 UTC) #68
hiroshige
Manually saving m_client also looks good. Can we always call error()/close() when setting state to ...
4 years, 3 months ago (2016-09-15 09:04:34 UTC) #69
yhirano
https://codereview.chromium.org/2287323002/diff/300001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp File third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp (right): https://codereview.chromium.org/2287323002/diff/300001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp#newcode53 third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp:53: m_state = PublicState::Errored; On 2016/09/15 09:04:34, hiroshige wrote: > ...
4 years, 3 months ago (2016-09-15 09:11:22 UTC) #72
yhirano
I rebased this CL on https://codereview.chromium.org/2351643004. PTAL.
4 years, 3 months ago (2016-09-21 02:13:42 UTC) #77
yhirano
On 2016/09/21 02:13:42, yhirano wrote: > I rebased this CL on https://codereview.chromium.org/2351643004. PTAL. ping
4 years, 2 months ago (2016-09-27 05:42:54 UTC) #84
hiroshige
lgtm. https://codereview.chromium.org/2287323002/diff/360001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp File third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp (right): https://codereview.chromium.org/2287323002/diff/360001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp#newcode28 third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp:28: if (m_loader) { nit: Could you add a ...
4 years, 2 months ago (2016-09-27 07:26:24 UTC) #85
yhirano
https://codereview.chromium.org/2287323002/diff/360001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp File third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp (right): https://codereview.chromium.org/2287323002/diff/360001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp#newcode28 third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp:28: if (m_loader) { On 2016/09/27 07:26:23, hiroshige wrote: > ...
4 years, 2 months ago (2016-09-27 07:30:06 UTC) #88
yhirano
+haraken@ for modules/BUILD.gn.
4 years, 2 months ago (2016-09-27 07:30:48 UTC) #90
hiroshige
One additional comment: https://codereview.chromium.org/2287323002/diff/360001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumerTest.cpp File third_party/WebKit/Source/modules/fetch/BlobBytesConsumerTest.cpp (right): https://codereview.chromium.org/2287323002/diff/360001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumerTest.cpp#newcode404 third_party/WebKit/Source/modules/fetch/BlobBytesConsumerTest.cpp:404: EXPECT_EQ(12345u, result->size()); Could you check |EXPECT_FALSE(loader->isStarted());| ...
4 years, 2 months ago (2016-09-27 07:31:36 UTC) #91
yhirano
https://codereview.chromium.org/2287323002/diff/360001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumerTest.cpp File third_party/WebKit/Source/modules/fetch/BlobBytesConsumerTest.cpp (right): https://codereview.chromium.org/2287323002/diff/360001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumerTest.cpp#newcode404 third_party/WebKit/Source/modules/fetch/BlobBytesConsumerTest.cpp:404: EXPECT_EQ(12345u, result->size()); On 2016/09/27 07:31:35, hiroshige wrote: > Could ...
4 years, 2 months ago (2016-09-27 07:47:06 UTC) #94
haraken
LGTM https://codereview.chromium.org/2287323002/diff/400001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp File third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp (right): https://codereview.chromium.org/2287323002/diff/400001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp#newcode140 third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp:140: void BlobBytesConsumer::clearClient() Where is this used?
4 years, 2 months ago (2016-09-27 08:36:20 UTC) #95
yhirano
https://codereview.chromium.org/2287323002/diff/400001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp File third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp (right): https://codereview.chromium.org/2287323002/diff/400001/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp#newcode140 third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp:140: void BlobBytesConsumer::clearClient() On 2016/09/27 08:36:20, haraken wrote: > > ...
4 years, 2 months ago (2016-09-27 09:12:50 UTC) #98
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/2287323002/400001
4 years, 2 months ago (2016-09-27 11:30:27 UTC) #101
commit-bot: I haz the power
Committed patchset #19 (id:400001)
4 years, 2 months ago (2016-09-27 11:35:25 UTC) #103
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 11:37:13 UTC) #105
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/e3820506d765ca446b48fa84618581933d43c084
Cr-Commit-Position: refs/heads/master@{#421170}

Powered by Google App Engine
This is Rietveld 408576698