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

Issue 9452040: net: Move the logic reading upload elements to UploadData::Element. (Closed)

Created:
8 years, 10 months ago by satorux1
Modified:
8 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, kinuko
Visibility:
Public.

Description

net: Move the logic reading upload elements to UploadData::Element. This is yet another clean-up patch to simplify UploadDataStream in preparation for making UploadDataStream::Read asynchronous. Managing the offset and the file stream inside UploadData::Element is cleaner anyway. BUG=72001 TEST=net_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=123677

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebased #

Patch Set 3 : address comments and add ResetOffset #

Patch Set 4 : move resetoffset to init #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -113 lines) Patch
M net/base/upload_data.h View 1 2 3 chunks +34 lines, -5 lines 0 comments Download
M net/base/upload_data.cc View 1 2 5 chunks +76 lines, -9 lines 0 comments Download
M net/base/upload_data_stream.h View 2 chunks +0 lines, -15 lines 0 comments Download
M net/base/upload_data_stream.cc View 1 2 3 4 chunks +8 lines, -84 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
satorux1
8 years, 10 months ago (2012-02-23 22:48:41 UTC) #1
willchan no longer on Chromium
LGTM https://chromiumcodereview.appspot.com/9452040/diff/1/net/base/upload_data.cc File net/base/upload_data.cc (right): https://chromiumcodereview.appspot.com/9452040/diff/1/net/base/upload_data.cc#newcode141 net/base/upload_data.cc:141: int UploadData::Element::ReadFromMemorySync(char* buf, int buf_len) { Can you ...
8 years, 10 months ago (2012-02-24 21:54:40 UTC) #2
satorux1
Turned out URLRequestTestHTTP.Redirect301Tests failed, because UploadData was reused for another UploadDataStream, and offset_ in each ...
8 years, 10 months ago (2012-02-24 22:35:22 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/satorux@chromium.org/9452040/6003
8 years, 10 months ago (2012-02-25 21:46:06 UTC) #4
commit-bot: I haz the power
8 years, 10 months ago (2012-02-25 22:59:22 UTC) #5
Change committed as 123677

Powered by Google App Engine
This is Rietveld 408576698