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

Issue 1265413002: Introduce FetchFormDataConsumerHandle. (Closed)

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

Description

Introduce FetchFormDataConsumerHandle. In order to handle fetch() Request data more correctly, this CL introduces FetchFormDataConsumerHandle which is made from FormData (including String and ArrayBuffer) and provides a means to drain the data as a FormData. This CL also modifies drainAsBlobDataHandle contract and implementation. BUG=457484 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200701

Patch Set 1 : #

Total comments: 6

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : Add (const void*, size_t) creation function #

Total comments: 24

Patch Set 5 : #

Patch Set 6 : #

Total comments: 29

Patch Set 7 : #

Total comments: 6

Patch Set 8 : #

Total comments: 2

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+890 lines, -16 lines) Patch
M Source/modules/fetch/FetchBlobDataConsumerHandle.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/fetch/FetchBlobDataConsumerHandle.cpp View 1 2 3 4 3 chunks +13 lines, -8 lines 0 comments Download
M Source/modules/fetch/FetchBlobDataConsumerHandleTest.cpp View 1 2 3 4 5 6 2 chunks +81 lines, -0 lines 0 comments Download
M Source/modules/fetch/FetchDataConsumerHandle.h View 1 2 3 4 2 chunks +24 lines, -8 lines 0 comments Download
A Source/modules/fetch/FetchFormDataConsumerHandle.h View 1 2 3 4 1 chunk +63 lines, -0 lines 0 comments Download
A Source/modules/fetch/FetchFormDataConsumerHandle.cpp View 1 2 3 4 5 6 7 8 1 chunk +322 lines, -0 lines 0 comments Download
A Source/modules/fetch/FetchFormDataConsumerHandleTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +382 lines, -0 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (5 generated)
yhirano
5 years, 4 months ago (2015-08-10 12:24:43 UTC) #5
hiroshige
https://codereview.chromium.org/1265413002/diff/60001/Source/modules/fetch/FetchDataConsumerHandle.h File Source/modules/fetch/FetchDataConsumerHandle.h (right): https://codereview.chromium.org/1265413002/diff/60001/Source/modules/fetch/FetchDataConsumerHandle.h#newcode48 Source/modules/fetch/FetchDataConsumerHandle.h:48: // - The reader is running on a suitable ...
5 years, 4 months ago (2015-08-10 13:27:03 UTC) #6
yhirano
https://codereview.chromium.org/1265413002/diff/60001/Source/modules/fetch/FetchDataConsumerHandle.h File Source/modules/fetch/FetchDataConsumerHandle.h (right): https://codereview.chromium.org/1265413002/diff/60001/Source/modules/fetch/FetchDataConsumerHandle.h#newcode48 Source/modules/fetch/FetchDataConsumerHandle.h:48: // - The reader is running on a suitable ...
5 years, 4 months ago (2015-08-11 06:08:43 UTC) #7
hiroshige
Probably there is a minor thread-safe issue (that I expect doesn't affect most of the ...
5 years, 4 months ago (2015-08-11 09:35:01 UTC) #8
hiroshige
https://codereview.chromium.org/1265413002/diff/120001/Source/modules/fetch/FetchFormDataConsumerHandle.cpp File Source/modules/fetch/FetchFormDataConsumerHandle.cpp (right): https://codereview.chromium.org/1265413002/diff/120001/Source/modules/fetch/FetchFormDataConsumerHandle.cpp#newcode224 Source/modules/fetch/FetchFormDataConsumerHandle.cpp:224: blobData->appendFileSystemURL(element.m_fileSystemURL, element.m_fileStart, element.m_fileLength, element.m_expectedFileModificationTime); This is not thread-safe, because ...
5 years, 4 months ago (2015-08-11 10:19:04 UTC) #9
yhirano
https://codereview.chromium.org/1265413002/diff/120001/Source/modules/fetch/FetchDataConsumerHandle.h File Source/modules/fetch/FetchDataConsumerHandle.h (right): https://codereview.chromium.org/1265413002/diff/120001/Source/modules/fetch/FetchDataConsumerHandle.h#newcode39 Source/modules/fetch/FetchDataConsumerHandle.h:39: // - Subsequent calls to read() / beginRead() return ...
5 years, 4 months ago (2015-08-11 11:36:01 UTC) #10
hiroshige
https://codereview.chromium.org/1265413002/diff/160001/Source/modules/fetch/FetchBlobDataConsumerHandleTest.cpp File Source/modules/fetch/FetchBlobDataConsumerHandleTest.cpp (right): https://codereview.chromium.org/1265413002/diff/160001/Source/modules/fetch/FetchBlobDataConsumerHandleTest.cpp#newcode369 Source/modules/fetch/FetchBlobDataConsumerHandleTest.cpp:369: EXPECT_TRUE(formData->hasOneRef()); isSafeToSendToAnotherThread() would be better. https://codereview.chromium.org/1265413002/diff/160001/Source/modules/fetch/FetchBlobDataConsumerHandleTest.cpp#newcode378 Source/modules/fetch/FetchBlobDataConsumerHandleTest.cpp:378: } Can ...
5 years, 4 months ago (2015-08-12 06:44:48 UTC) #11
yhirano
https://codereview.chromium.org/1265413002/diff/160001/Source/modules/fetch/FetchBlobDataConsumerHandleTest.cpp File Source/modules/fetch/FetchBlobDataConsumerHandleTest.cpp (right): https://codereview.chromium.org/1265413002/diff/160001/Source/modules/fetch/FetchBlobDataConsumerHandleTest.cpp#newcode369 Source/modules/fetch/FetchBlobDataConsumerHandleTest.cpp:369: EXPECT_TRUE(formData->hasOneRef()); On 2015/08/12 06:44:48, hiroshige wrote: > isSafeToSendToAnotherThread() would ...
5 years, 4 months ago (2015-08-12 07:43:43 UTC) #12
hiroshige
https://codereview.chromium.org/1265413002/diff/160001/Source/modules/fetch/FetchFormDataConsumerHandle.cpp File Source/modules/fetch/FetchFormDataConsumerHandle.cpp (right): https://codereview.chromium.org/1265413002/diff/160001/Source/modules/fetch/FetchFormDataConsumerHandle.cpp#newcode131 Source/modules/fetch/FetchFormDataConsumerHandle.cpp:131: On 2015/08/12 07:43:42, yhirano wrote: > On 2015/08/12 06:44:48, ...
5 years, 4 months ago (2015-08-13 06:44:31 UTC) #13
hiroshige
https://codereview.chromium.org/1265413002/diff/160001/Source/modules/fetch/FetchFormDataConsumerHandle.cpp File Source/modules/fetch/FetchFormDataConsumerHandle.cpp (right): https://codereview.chromium.org/1265413002/diff/160001/Source/modules/fetch/FetchFormDataConsumerHandle.cpp#newcode131 Source/modules/fetch/FetchFormDataConsumerHandle.cpp:131: On 2015/08/13 06:44:31, hiroshige wrote: > On 2015/08/12 07:43:42, ...
5 years, 4 months ago (2015-08-13 07:03:51 UTC) #14
yhirano
https://codereview.chromium.org/1265413002/diff/160001/Source/modules/fetch/FetchFormDataConsumerHandle.cpp File Source/modules/fetch/FetchFormDataConsumerHandle.cpp (right): https://codereview.chromium.org/1265413002/diff/160001/Source/modules/fetch/FetchFormDataConsumerHandle.cpp#newcode131 Source/modules/fetch/FetchFormDataConsumerHandle.cpp:131: On 2015/08/13 07:03:50, hiroshige (slow) wrote: > On 2015/08/13 ...
5 years, 4 months ago (2015-08-13 15:17:56 UTC) #15
hiroshige
https://codereview.chromium.org/1265413002/diff/160001/Source/modules/fetch/FetchFormDataConsumerHandle.cpp File Source/modules/fetch/FetchFormDataConsumerHandle.cpp (right): https://codereview.chromium.org/1265413002/diff/160001/Source/modules/fetch/FetchFormDataConsumerHandle.cpp#newcode131 Source/modules/fetch/FetchFormDataConsumerHandle.cpp:131: On 2015/08/13 15:17:56, yhirano wrote: > On 2015/08/13 07:03:50, ...
5 years, 4 months ago (2015-08-13 16:14:37 UTC) #16
yhirano
https://codereview.chromium.org/1265413002/diff/180001/Source/modules/fetch/FetchFormDataConsumerHandleTest.cpp File Source/modules/fetch/FetchFormDataConsumerHandleTest.cpp (right): https://codereview.chromium.org/1265413002/diff/180001/Source/modules/fetch/FetchFormDataConsumerHandleTest.cpp#newcode97 Source/modules/fetch/FetchFormDataConsumerHandleTest.cpp:97: void verifyFormData(FormData* data) On 2015/08/13 07:03:51, hiroshige (ooo zombie) ...
5 years, 4 months ago (2015-08-17 04:47:09 UTC) #17
hiroshige
https://codereview.chromium.org/1265413002/diff/160001/Source/modules/fetch/FetchFormDataConsumerHandle.cpp File Source/modules/fetch/FetchFormDataConsumerHandle.cpp (right): https://codereview.chromium.org/1265413002/diff/160001/Source/modules/fetch/FetchFormDataConsumerHandle.cpp#newcode204 Source/modules/fetch/FetchFormDataConsumerHandle.cpp:204: RefPtr<BlobDataHandle> handle = m_reader->drainAsBlobDataHandle(); Please pass |policy| to m_reader->drainAsBlobDataHandle(). ...
5 years, 4 months ago (2015-08-17 10:08:18 UTC) #18
yhirano
https://codereview.chromium.org/1265413002/diff/160001/Source/modules/fetch/FetchFormDataConsumerHandle.cpp File Source/modules/fetch/FetchFormDataConsumerHandle.cpp (right): https://codereview.chromium.org/1265413002/diff/160001/Source/modules/fetch/FetchFormDataConsumerHandle.cpp#newcode204 Source/modules/fetch/FetchFormDataConsumerHandle.cpp:204: RefPtr<BlobDataHandle> handle = m_reader->drainAsBlobDataHandle(); On 2015/08/17 10:08:17, hiroshige (ooo ...
5 years, 4 months ago (2015-08-18 02:21:22 UTC) #19
hiroshige
lgtm.
5 years, 4 months ago (2015-08-18 03:26:48 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1265413002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1265413002/220001
5 years, 4 months ago (2015-08-18 03:39:07 UTC) #22
commit-bot: I haz the power
5 years, 4 months ago (2015-08-18 05:17:24 UTC) #23
Message was sent while issue was closed.
Committed patchset #9 (id:220001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=200701

Powered by Google App Engine
This is Rietveld 408576698