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

Issue 6134003: Prototype of chunked transfer encoded POST. (Closed)

Created:
9 years, 11 months ago by Satish
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, pam+watch_chromium.org, Paweł Hajdan Jr., amit
Visibility:
Public.

Description

Prototype of chunked transfer encoded POST. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72471

Patch Set 1 #

Total comments: 20

Patch Set 2 : . #

Total comments: 69

Patch Set 3 : . #

Total comments: 48

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 18

Patch Set 6 : . #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+352 lines, -55 lines) Patch
M chrome/common/net/url_fetcher.h View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/common/net/url_fetcher.cc View 1 2 3 4 5 7 chunks +54 lines, -3 lines 0 comments Download
M chrome_frame/urlmon_upload_data_stream.cc View 1 2 3 4 1 chunk +1 line, -1 line 1 comment Download
M net/base/upload_data.h View 1 2 3 4 5 5 chunks +38 lines, -1 line 0 comments Download
M net/base/upload_data.cc View 1 2 3 7 chunks +36 lines, -2 lines 0 comments Download
M net/base/upload_data_stream.h View 1 2 3 4 5 3 chunks +10 lines, -3 lines 0 comments Download
M net/base/upload_data_stream.cc View 1 2 3 4 5 4 chunks +24 lines, -16 lines 1 comment Download
M net/base/upload_data_stream_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_request_headers.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M net/http/http_request_headers.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M net/http/http_stream_parser.h View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M net/http/http_stream_parser.cc View 1 2 3 4 5 6 chunks +34 lines, -10 lines 0 comments Download
M net/http/http_util.cc View 1 1 chunk +8 lines, -3 lines 0 comments Download
M net/spdy/spdy_http_stream.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/tools/testserver/testserver.py View 1 2 3 4 5 7 chunks +26 lines, -12 lines 0 comments Download
M net/url_request/url_request.h View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 2 chunks +62 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
Satish
9 years, 11 months ago (2011-01-10 19:11:03 UTC) #1
wtc
I removed eroman and willchan as reviewers. After the first round of review, I will ...
9 years, 11 months ago (2011-01-12 02:38:57 UTC) #2
Satish
> 1. It is tempting to move the encoding of the chunks > from UploadData::Element::SetToChunk ...
9 years, 11 months ago (2011-01-13 17:43:27 UTC) #3
Satish
There are no new tests in this CL yet. Once the general design is agreed ...
9 years, 11 months ago (2011-01-13 18:06:15 UTC) #4
wtc
rdsmith: could you review this CL? You work on the download manager, and this change ...
9 years, 11 months ago (2011-01-13 18:07:58 UTC) #5
Randy Smith (Not in Mondays)
On 2011/01/13 18:07:58, wtc wrote: > rdsmith: could you review this CL? You work on ...
9 years, 11 months ago (2011-01-13 21:33:36 UTC) #6
wtc
vandebo, jianli: SVN shows that you are the current experts of the UploadData code. Could ...
9 years, 11 months ago (2011-01-13 23:29:01 UTC) #7
wtc
I only reviewed the files in "net" in this pass. High-level comments/questions: 1. Does your ...
9 years, 11 months ago (2011-01-14 03:09:31 UTC) #8
vandebo (ex-Chrome)
FYI - I'm jury duty, so can only respond in the evenings. I only gave ...
9 years, 11 months ago (2011-01-14 05:53:44 UTC) #9
Satish
Thanks for the quick review. New patch uploaded, replies below: > Sometimes a file will ...
9 years, 11 months ago (2011-01-14 18:09:29 UTC) #10
Satish
I thought again about rewinding the UploadDataStream for TCP RST cases and retrying if a ...
9 years, 11 months ago (2011-01-14 20:24:23 UTC) #11
wtc
Satish: I believe your current approach can support rewinding the UploadDataStream. If so, then the ...
9 years, 11 months ago (2011-01-15 00:54:28 UTC) #12
Satish
> You can certainly try to implement the new approach and see if > it ...
9 years, 11 months ago (2011-01-17 16:41:10 UTC) #13
wtc
On 2011/01/17 16:41:10, Satish wrote: > Also could you please suggest > how to get ...
9 years, 11 months ago (2011-01-18 18:48:58 UTC) #14
vandebo (ex-Chrome)
Basically looks good, just a couple little things. Feel free to ignore anything marked nit. ...
9 years, 11 months ago (2011-01-18 21:51:17 UTC) #15
Satish
http://codereview.chromium.org/6134003/diff/37001/net/base/upload_data_stream.h File net/base/upload_data_stream.h (right): http://codereview.chromium.org/6134003/diff/37001/net/base/upload_data_stream.h#newcode18 net/base/upload_data_stream.h:18: class UploadDataStream : public UploadData::ChunkCallback { On 2011/01/18 21:51:17, ...
9 years, 11 months ago (2011-01-19 16:05:24 UTC) #16
vandebo (ex-Chrome)
http://codereview.chromium.org/6134003/diff/37001/net/base/upload_data_stream.h File net/base/upload_data_stream.h (right): http://codereview.chromium.org/6134003/diff/37001/net/base/upload_data_stream.h#newcode18 net/base/upload_data_stream.h:18: class UploadDataStream : public UploadData::ChunkCallback { On 2011/01/19 16:05:25, ...
9 years, 11 months ago (2011-01-19 17:00:49 UTC) #17
vandebo (ex-Chrome)
http://codereview.chromium.org/6134003/diff/37001/net/base/upload_data_stream.h File net/base/upload_data_stream.h (right): http://codereview.chromium.org/6134003/diff/37001/net/base/upload_data_stream.h#newcode18 net/base/upload_data_stream.h:18: class UploadDataStream : public UploadData::ChunkCallback { On 2011/01/19 17:00:49, ...
9 years, 11 months ago (2011-01-19 19:26:01 UTC) #18
wtc
LGTM. Please do not check this in until you have addressed vandebo's review comments. I ...
9 years, 11 months ago (2011-01-20 00:29:47 UTC) #19
willchan no longer on Chromium
In order to get this working for SPDY, you should look into changing SpdyHttpStream and ...
9 years, 11 months ago (2011-01-20 08:51:03 UTC) #20
Satish
Most comments addressed and latest patch uploaded, a few replies below. http://codereview.chromium.org/6134003/diff/37001/chrome/common/net/url_fetcher.cc File chrome/common/net/url_fetcher.cc (right): ...
9 years, 11 months ago (2011-01-20 18:02:35 UTC) #21
willchan no longer on Chromium
Btw, I was just looking for the SPDY integration mostly. Just happened to note those ...
9 years, 11 months ago (2011-01-20 19:42:36 UTC) #22
vandebo (ex-Chrome)
http://codereview.chromium.org/6134003/diff/37001/net/base/upload_data.cc File net/base/upload_data.cc (right): http://codereview.chromium.org/6134003/diff/37001/net/base/upload_data.cc#newcode156 net/base/upload_data.cc:156: if (!bytes_len) { On 2011/01/20 18:02:36, Satish wrote: > ...
9 years, 11 months ago (2011-01-20 20:48:45 UTC) #23
Satish
Cool, I'll add the boolean to Element. I can also simplify the URLRequest API in ...
9 years, 11 months ago (2011-01-20 20:55:28 UTC) #24
willchan no longer on Chromium
On 2011/01/20 20:55:28, Satish wrote: > Cool, I'll add the boolean to Element. I can ...
9 years, 11 months ago (2011-01-21 01:36:00 UTC) #25
Satish
Latest patch uploaded. I have added a boolean to UploadData::Element to indicate the last chunk ...
9 years, 11 months ago (2011-01-21 16:55:04 UTC) #26
vandebo (ex-Chrome)
LGTM contingent on settling the callback issue with Will and wtc. http://codereview.chromium.org/6134003/diff/37001/net/base/upload_data.h File net/base/upload_data.h (right): ...
9 years, 11 months ago (2011-01-21 18:08:41 UTC) #27
willchan no longer on Chromium
http://codereview.chromium.org/6134003/diff/37001/net/base/upload_data.h File net/base/upload_data.h (right): http://codereview.chromium.org/6134003/diff/37001/net/base/upload_data.h#newcode37 net/base/upload_data.h:37: class ChunkCallback { On 2011/01/21 18:08:41, vandebo wrote: > ...
9 years, 11 months ago (2011-01-21 18:16:19 UTC) #28
wtc
LGTM. Please consider willchan's suggested changes. He is very up-to-date on the new tools in ...
9 years, 11 months ago (2011-01-21 19:35:54 UTC) #29
Satish
Thanks all, I'll add the suggested changes and upload the latest patch on monday (planning ...
9 years, 11 months ago (2011-01-21 20:29:57 UTC) #30
vandebo (ex-Chrome)
http://codereview.chromium.org/6134003/diff/37002/net/url_request/url_request_unittest.cc File net/url_request/url_request_unittest.cc (right): http://codereview.chromium.org/6134003/diff/37002/net/url_request/url_request_unittest.cc#newcode649 net/url_request/url_request_unittest.cc:649: r.AppendChunkToUpload("a", 1); On 2011/01/21 20:29:57, Satish wrote: > On ...
9 years, 11 months ago (2011-01-21 20:47:12 UTC) #31
Satish
Latest patch uploaded. I have addressed all pending comments and added 2 unit tests as ...
9 years, 11 months ago (2011-01-24 19:42:49 UTC) #32
vandebo (ex-Chrome)
LGTM with two comments. No further LG's needed from me. http://codereview.chromium.org/6134003/diff/76001/chrome_frame/urlmon_upload_data_stream.cc File chrome_frame/urlmon_upload_data_stream.cc (right): http://codereview.chromium.org/6134003/diff/76001/chrome_frame/urlmon_upload_data_stream.cc#newcode54 ...
9 years, 11 months ago (2011-01-24 20:16:08 UTC) #33
willchan no longer on Chromium
9 years, 11 months ago (2011-01-24 20:24:34 UTC) #34
I'm fine with landing as is. If I have any issues, I'll raise them in the
follow up changelist.

On Mon, Jan 24, 2011 at 12:16 PM, <vandebo@chromium.org> wrote:

> LGTM with two comments.  No further LG's needed from me.
>
>
>
>
http://codereview.chromium.org/6134003/diff/76001/chrome_frame/urlmon_upload_...
> File chrome_frame/urlmon_upload_data_stream.cc (right):
>
>
>
http://codereview.chromium.org/6134003/diff/76001/chrome_frame/urlmon_upload_...
> chrome_frame/urlmon_upload_data_stream.cc:54:
> request_body_stream_->ConsumeAndFillBuffer(bytes_to_copy_now);
> You missed updating one name.
>
>
>
http://codereview.chromium.org/6134003/diff/76001/net/base/upload_data_stream.cc
> File net/base/upload_data_stream.cc (right):
>
>
>
http://codereview.chromium.org/6134003/diff/76001/net/base/upload_data_stream...
> net/base/upload_data_stream.cc:132: // If this is a chunked transfer
>
> encoded stream, the last element should
> This comment is out of date.  Probably just remove it as the new code is
> self documenting.
>
>
> http://codereview.chromium.org/6134003/
>

Powered by Google App Engine
This is Rietveld 408576698