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

Issue 6357017: Add support for chunked encoding in ChromeFrame for POST requests. This fixes... (Closed)

Created:
9 years, 11 months ago by ananta
Modified:
9 years, 6 months ago
Reviewers:
amit, eroman
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, amit
Visibility:
Public.

Description

Add support for chunked encoding in ChromeFrame for POST requests. This fixes the URLRequestTestHTTP.TestPostChunkedDataBeforeStart net test failure in ChromeFrame. To support chunked encoding we need to marshal the corresponding information in the net::UploadData object to ensure that this object gets reconstructed correctly on the other side (CF). Disabled the URLRequestTestHTTP.TestPostChunkedDataAfterStart for ChromeFrame as this test modifies the UploadData object after it has been marshaled over to CF which we don't support in ChromeFrame. BUG=none TEST=Covered by existing net tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72723

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Total comments: 4

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -48 lines) Patch
M chrome/common/common_param_traits.cc View 1 2 3 3 chunks +76 lines, -35 lines 0 comments Download
M chrome_frame/plugin_url_request.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M chrome_frame/plugin_url_request.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome_frame/test/net/fake_external_tab.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome_frame/urlmon_upload_data_stream.cc View 1 2 3 3 chunks +2 lines, -5 lines 0 comments Download
M chrome_frame/urlmon_url_request.cc View 1 2 3 2 chunks +10 lines, -6 lines 0 comments Download
M net/base/upload_data.h View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M net/base/upload_data.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
ananta
9 years, 11 months ago (2011-01-26 03:30:35 UTC) #1
eroman
LGTM on the src/net/* changes. http://codereview.chromium.org/6357017/diff/10001/net/base/upload_data.h File net/base/upload_data.h (right): http://codereview.chromium.org/6357017/diff/10001/net/base/upload_data.h#newcode52 net/base/upload_data.h:52: // marshaling. nit: I ...
9 years, 11 months ago (2011-01-26 03:42:29 UTC) #2
ananta
http://codereview.chromium.org/6357017/diff/10001/net/base/upload_data.h File net/base/upload_data.h (right): http://codereview.chromium.org/6357017/diff/10001/net/base/upload_data.h#newcode52 net/base/upload_data.h:52: // marshaling. On 2011/01/26 03:42:29, eroman wrote: > nit: ...
9 years, 11 months ago (2011-01-26 03:46:09 UTC) #3
amit
lgtm http://codereview.chromium.org/6357017/diff/1009/chrome/common/common_param_traits.cc File chrome/common/common_param_traits.cc (right): http://codereview.chromium.org/6357017/diff/1009/chrome/common/common_param_traits.cc#newcode353 chrome/common/common_param_traits.cc:353: if (p.type() == net::UploadData::TYPE_BYTES || nit: It will ...
9 years, 11 months ago (2011-01-26 21:42:24 UTC) #4
ananta
9 years, 11 months ago (2011-01-26 22:19:58 UTC) #5
http://codereview.chromium.org/6357017/diff/1009/chrome/common/common_param_t...
File chrome/common/common_param_traits.cc (right):

http://codereview.chromium.org/6357017/diff/1009/chrome/common/common_param_t...
chrome/common/common_param_traits.cc:353: if (p.type() ==
net::UploadData::TYPE_BYTES ||
On 2011/01/26 21:42:24, amit wrote:
> nit: It will be more readable to handle TYPE_CHUNK case in a separate 'if' or
> even better in a switch/case since there are more of the if/else cases now.

Done.

http://codereview.chromium.org/6357017/diff/1009/chrome_frame/urlmon_upload_d...
File chrome_frame/urlmon_upload_data_stream.cc (right):

http://codereview.chromium.org/6357017/diff/1009/chrome_frame/urlmon_upload_d...
chrome_frame/urlmon_upload_data_stream.cc:31:
static_cast<uint64>(request_body_stream_->buf_len()));
On 2011/01/26 21:42:24, amit wrote:
> if bug_len is ULONG you can remove both 'static_cast's
Leaving this as is as per our discussion.

Powered by Google App Engine
This is Rietveld 408576698