Chromium Code Reviews
Descriptionnet: Make UploadDataStream::Read() asynchronous
Rename existing Read() to ReadSync()
Change type of |buf| from char* to scoped_refptr<IOBuffer> so that async operation is always performed safely
Add an asynchronous implementation, Read()
The newly added Read() is not used yet, all users still use the old version ReadSync()
BUG=72001
TEST=net_unittests
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162343
Patch Set 1 : _ #
Total comments: 10
Patch Set 2 : Run callback if and only if there were async operation performed #Patch Set 3 : rebase #
Total comments: 14
Patch Set 4 : rebase #Patch Set 5 : Revised comments #
Total comments: 10
Patch Set 6 : Add comments about chunk upload behavior #
Total comments: 32
Patch Set 7 : Add comments, fix a bug where IsEOF() does not get true when the buf size equals to data size #
Total comments: 22
Patch Set 8 : Address comments #
Messages
Total messages: 18 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||