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

Issue 10913179: net: Make UploadDataStream::Init() asynchronous. (Closed)

Created:
8 years, 3 months ago by hashimoto
Modified:
8 years, 3 months ago
CC:
chromium-reviews, satorux1, kinuko
Visibility:
Public.

Description

net: Make UploadDataStream::Init() asynchronous. Rename the existing synchronous version to InitSync() and add a new asynchronous version, Init(). However, the new asynchronous version is not used yet. The existing code is changed to use the synchronous version. BUG=72001 TEST=net_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157344

Patch Set 1 : _ #

Total comments: 14

Patch Set 2 : rebase #

Patch Set 3 : Add tests, InitSync() implementation is now optional, fixed Win build. #

Total comments: 8

Patch Set 4 : rebase and add a TODO to upload_data_stream.h #

Patch Set 5 : review fix #

Total comments: 2

Patch Set 6 : changed argument order #

Unified diffs Side-by-side diffs Delta from patch set Stats (+390 lines, -85 lines) Patch
M chrome_frame/urlmon_upload_data_stream.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/upload_bytes_element_reader.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/base/upload_bytes_element_reader.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M net/base/upload_data_stream.h View 1 2 3 4 5 4 chunks +29 lines, -1 line 0 comments Download
M net/base/upload_data_stream.cc View 1 2 3 4 5 3 chunks +69 lines, -8 lines 0 comments Download
M net/base/upload_data_stream_unittest.cc View 1 2 3 4 12 chunks +145 lines, -9 lines 0 comments Download
M net/base/upload_element_reader.h View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M net/base/upload_element_reader.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M net/base/upload_file_element_reader.h View 1 3 chunks +9 lines, -0 lines 0 comments Download
M net/base/upload_file_element_reader.cc View 1 2 3 4 5 chunks +101 lines, -47 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_stream_parser_unittest.cc View 6 chunks +6 lines, -6 lines 0 comments Download
M net/spdy/spdy_http_stream_spdy2_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_http_stream_spdy3_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M net/spdy/spdy_network_transaction_spdy2_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_network_transaction_spdy3_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
hashimoto
willchan, Could you review this change? This change depends on http://codereview.chromium.org/10868064/ ("net: Move data reading ...
8 years, 3 months ago (2012-09-10 21:26:22 UTC) #1
willchan no longer on Chromium
http://codereview.chromium.org/10913179/diff/2015/net/base/upload_data_stream.cc File net/base/upload_data_stream.cc (right): http://codereview.chromium.org/10913179/diff/2015/net/base/upload_data_stream.cc#newcode131 net/base/upload_data_stream.cc:131: int index, indentation is off http://codereview.chromium.org/10913179/diff/2015/net/base/upload_data_stream.cc#newcode132 net/base/upload_data_stream.cc:132: int last_result) ...
8 years, 3 months ago (2012-09-11 19:32:40 UTC) #2
hashimoto
http://codereview.chromium.org/10913179/diff/2015/net/base/upload_data_stream.cc File net/base/upload_data_stream.cc (right): http://codereview.chromium.org/10913179/diff/2015/net/base/upload_data_stream.cc#newcode131 net/base/upload_data_stream.cc:131: int index, On 2012/09/11 19:32:40, willchan wrote: > indentation ...
8 years, 3 months ago (2012-09-11 22:51:31 UTC) #3
willchan no longer on Chromium
http://codereview.chromium.org/10913179/diff/5003/net/base/upload_data_stream_unittest.cc File net/base/upload_data_stream_unittest.cc (right): http://codereview.chromium.org/10913179/diff/5003/net/base/upload_data_stream_unittest.cc#newcode255 net/base/upload_data_stream_unittest.cc:255: scoped_ptr<UploadDataStream> stream(new UploadDataStream(upload_data_)); Does this need to be allocated ...
8 years, 3 months ago (2012-09-12 21:09:50 UTC) #4
hashimoto
http://codereview.chromium.org/10913179/diff/5003/net/base/upload_data_stream_unittest.cc File net/base/upload_data_stream_unittest.cc (right): http://codereview.chromium.org/10913179/diff/5003/net/base/upload_data_stream_unittest.cc#newcode255 net/base/upload_data_stream_unittest.cc:255: scoped_ptr<UploadDataStream> stream(new UploadDataStream(upload_data_)); On 2012/09/12 21:09:50, willchan wrote: > ...
8 years, 3 months ago (2012-09-12 21:48:18 UTC) #5
hashimoto
ping? On 2012/09/12 21:48:18, hashimoto wrote: > http://codereview.chromium.org/10913179/diff/5003/net/base/upload_data_stream_unittest.cc > File net/base/upload_data_stream_unittest.cc (right): > > http://codereview.chromium.org/10913179/diff/5003/net/base/upload_data_stream_unittest.cc#newcode255 ...
8 years, 3 months ago (2012-09-17 14:02:15 UTC) #6
willchan no longer on Chromium
lgtm http://codereview.chromium.org/10913179/diff/6010/net/base/upload_data_stream.h File net/base/upload_data_stream.h (right): http://codereview.chromium.org/10913179/diff/6010/net/base/upload_data_stream.h#newcode92 net/base/upload_data_stream.h:92: void InitInternal(const CompletionCallback& callback, nit: it's more common ...
8 years, 3 months ago (2012-09-17 17:34:43 UTC) #7
hashimoto
http://codereview.chromium.org/10913179/diff/6010/net/base/upload_data_stream.h File net/base/upload_data_stream.h (right): http://codereview.chromium.org/10913179/diff/6010/net/base/upload_data_stream.h#newcode92 net/base/upload_data_stream.h:92: void InitInternal(const CompletionCallback& callback, On 2012/09/17 17:34:43, willchan wrote: ...
8 years, 3 months ago (2012-09-18 11:07:33 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/10913179/18001
8 years, 3 months ago (2012-09-18 11:07:51 UTC) #9
commit-bot: I haz the power
8 years, 3 months ago (2012-09-18 14:01:55 UTC) #10
Change committed as 157344

Powered by Google App Engine
This is Rietveld 408576698