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

Issue 809663003: net: Add SetUploadStream method to URLFetcher. (Closed)

Created:
6 years ago by hirono
Modified:
5 years, 11 months ago
Reviewers:
mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

net: Add SetUploadStream method to URLFetcher. Currently URLFetcher can only take data bytes or file path. The CL adds a method to URLFetcher for taking UploadDataStream, which can consist of multiple elements. BUG=442652 TEST=URLFetcherPostStreamTest.Basic Committed: https://crrev.com/92da739316361e17f59ef9f04b7aeabf8630bff1 Cr-Commit-Position: refs/heads/master@{#312412}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Patch Set 6 : Fix retrying. #

Total comments: 14

Patch Set 7 : Add retry test. #

Patch Set 8 : #

Total comments: 4

Patch Set 9 : Address comments and fix tests #

Total comments: 4

Patch Set 10 : Fix a compiler error #

Total comments: 4

Patch Set 11 : Fixed. #

Total comments: 4

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -12 lines) Patch
M net/tools/testserver/testserver.py View 1 2 3 4 5 6 1 chunk +6 lines, -1 line 0 comments Download
M net/url_request/test_url_fetcher_factory.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M net/url_request/test_url_fetcher_factory.cc View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M net/url_request/url_fetcher.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +15 lines, -0 lines 0 comments Download
M net/url_request/url_fetcher_core.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +8 lines, -0 lines 0 comments Download
M net/url_request/url_fetcher_core.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +29 lines, -9 lines 0 comments Download
M net/url_request/url_fetcher_impl.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M net/url_request/url_fetcher_impl.cc View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M net/url_request/url_fetcher_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +78 lines, -2 lines 0 comments Download

Messages

Total messages: 42 (11 generated)
hirono
PTAL the CL? Thanks!
6 years ago (2014-12-18 01:29:45 UTC) #2
mmenke
https://codereview.chromium.org/809663003/diff/60001/net/url_request/url_fetcher.h File net/url_request/url_fetcher.h (right): https://codereview.chromium.org/809663003/diff/60001/net/url_request/url_fetcher.h#newcode159 net/url_request/url_fetcher.h:159: scoped_ptr<net::UploadDataStream> upload_stream) = 0; Why is this needed? This ...
6 years ago (2014-12-18 15:38:46 UTC) #3
mmenke
On 2014/12/18 15:38:46, mmenke wrote: > https://codereview.chromium.org/809663003/diff/60001/net/url_request/url_fetcher.h > File net/url_request/url_fetcher.h (right): > > https://codereview.chromium.org/809663003/diff/60001/net/url_request/url_fetcher.h#newcode159 > ...
6 years ago (2014-12-18 15:39:37 UTC) #4
hirono
> Why is this needed? This is incompatible with all of the retry stuff, and ...
6 years ago (2014-12-19 01:39:08 UTC) #5
mmenke
On 2014/12/19 01:39:08, hirono wrote: > > Why is this needed? This is incompatible with ...
6 years ago (2014-12-19 02:00:10 UTC) #6
hirono
On 2014/12/19 02:00:10, mmenke (OOO 12-20 to 1-4) wrote: > On 2014/12/19 01:39:08, hirono wrote: ...
6 years ago (2014-12-19 02:09:40 UTC) #7
hirono
On 2014/12/19 02:09:40, hirono wrote: > On 2014/12/19 02:00:10, mmenke (OOO 12-20 to 1-4) wrote: ...
6 years ago (2014-12-22 02:12:25 UTC) #8
hirono
On 2014/12/22 02:12:25, hirono wrote: > On 2014/12/19 02:09:40, hirono wrote: > > On 2014/12/19 ...
5 years, 11 months ago (2015-01-06 00:44:39 UTC) #12
hirono
On 2015/01/06 00:44:39, hirono wrote: > On 2014/12/22 02:12:25, hirono wrote: > > On 2014/12/19 ...
5 years, 11 months ago (2015-01-07 02:08:25 UTC) #13
mmenke
On 2015/01/07 02:08:25, hirono wrote: > On 2015/01/06 00:44:39, hirono wrote: > > On 2014/12/22 ...
5 years, 11 months ago (2015-01-08 15:14:21 UTC) #14
hirono
On 2015/01/08 15:14:21, mmenke wrote: > On 2015/01/07 02:08:25, hirono wrote: > > On 2015/01/06 ...
5 years, 11 months ago (2015-01-09 00:16:03 UTC) #15
mmenke
Sorry again for slowness - a lot of reviews after the break, and I saved ...
5 years, 11 months ago (2015-01-09 17:42:25 UTC) #16
mmenke
On 2015/01/09 17:42:25, mmenke wrote: > Sorry again for slowness - a lot of reviews ...
5 years, 11 months ago (2015-01-09 17:50:07 UTC) #17
mmenke
Another quick comment. https://codereview.chromium.org/809663003/diff/160001/net/url_request/url_fetcher_core.cc File net/url_request/url_fetcher_core.cc (right): https://codereview.chromium.org/809663003/diff/160001/net/url_request/url_fetcher_core.cc#newcode622 net/url_request/url_fetcher_core.cc:622: request_->set_upload(upload_stream_factory_.Run().Pass()); We should DCHECK that we ...
5 years, 11 months ago (2015-01-09 18:13:51 UTC) #18
hirono
Thanks! https://codereview.chromium.org/809663003/diff/160001/net/url_request/url_fetcher.h File net/url_request/url_fetcher.h (right): https://codereview.chromium.org/809663003/diff/160001/net/url_request/url_fetcher.h#newcode96 net/url_request/url_fetcher.h:96: // a On 2015/01/09 17:42:25, mmenke wrote: > ...
5 years, 11 months ago (2015-01-15 08:14:28 UTC) #19
mmenke
Minor comments, but looks like you're also getting test failures now. https://codereview.chromium.org/809663003/diff/200001/net/url_request/url_fetcher.h File net/url_request/url_fetcher.h (right): ...
5 years, 11 months ago (2015-01-15 15:38:55 UTC) #20
hirono
Thanks! https://codereview.chromium.org/809663003/diff/200001/net/url_request/url_fetcher.h File net/url_request/url_fetcher.h (right): https://codereview.chromium.org/809663003/diff/200001/net/url_request/url_fetcher.h#newcode161 net/url_request/url_fetcher.h:161: // value will be set to the length ...
5 years, 11 months ago (2015-01-16 03:55:58 UTC) #23
mmenke
https://codereview.chromium.org/809663003/diff/260001/net/url_request/url_fetcher_core.cc File net/url_request/url_fetcher_core.cc (right): https://codereview.chromium.org/809663003/diff/260001/net/url_request/url_fetcher_core.cc#newcode182 net/url_request/url_fetcher_core.cc:182: upload_content_set_ = true; Why is this still needed? https://codereview.chromium.org/809663003/diff/260001/net/url_request/url_fetcher_core.cc#newcode187 ...
5 years, 11 months ago (2015-01-16 16:47:19 UTC) #24
mmenke
On 2015/01/16 16:47:19, mmenke wrote: > https://codereview.chromium.org/809663003/diff/260001/net/url_request/url_fetcher_core.cc > File net/url_request/url_fetcher_core.cc (right): > > https://codereview.chromium.org/809663003/diff/260001/net/url_request/url_fetcher_core.cc#newcode182 > ...
5 years, 11 months ago (2015-01-16 16:47:54 UTC) #25
mmenke
https://codereview.chromium.org/809663003/diff/280001/net/url_request/url_fetcher_core.cc File net/url_request/url_fetcher_core.cc (right): https://codereview.chromium.org/809663003/diff/280001/net/url_request/url_fetcher_core.cc#newcode971 net/url_request/url_fetcher_core.cc:971: bool URLFetcherCore::CheckIfHasNoUploadData() const { The fact that this has ...
5 years, 11 months ago (2015-01-16 16:53:30 UTC) #26
hirono
Thanks! https://codereview.chromium.org/809663003/diff/260001/net/url_request/url_fetcher_core.cc File net/url_request/url_fetcher_core.cc (right): https://codereview.chromium.org/809663003/diff/260001/net/url_request/url_fetcher_core.cc#newcode182 net/url_request/url_fetcher_core.cc:182: upload_content_set_ = true; On 2015/01/16 16:47:18, mmenke wrote: ...
5 years, 11 months ago (2015-01-19 04:59:36 UTC) #27
mmenke
LGTM https://codereview.chromium.org/809663003/diff/300001/net/url_request/url_fetcher_impl_unittest.cc File net/url_request/url_fetcher_impl_unittest.cc (right): https://codereview.chromium.org/809663003/diff/300001/net/url_request/url_fetcher_impl_unittest.cc#newcode277 net/url_request/url_fetcher_impl_unittest.cc:277: class URLFetcherPostStreamTest : public URLFetcherTest { Maybe URLFetcherSetUploadFactoryTest ...
5 years, 11 months ago (2015-01-20 17:11:27 UTC) #28
mmenke
Oh, and good catch on the fact that the upload body may be empty!
5 years, 11 months ago (2015-01-20 17:12:17 UTC) #29
hirono
Thanks! https://codereview.chromium.org/809663003/diff/300001/net/url_request/url_fetcher_impl_unittest.cc File net/url_request/url_fetcher_impl_unittest.cc (right): https://codereview.chromium.org/809663003/diff/300001/net/url_request/url_fetcher_impl_unittest.cc#newcode277 net/url_request/url_fetcher_impl_unittest.cc:277: class URLFetcherPostStreamTest : public URLFetcherTest { On 2015/01/20 ...
5 years, 11 months ago (2015-01-20 20:34:06 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/809663003/320001
5 years, 11 months ago (2015-01-20 20:34:59 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/112528) win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/96486)
5 years, 11 months ago (2015-01-20 22:07:45 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/809663003/320001
5 years, 11 months ago (2015-01-20 23:04:18 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/112528) win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/96486)
5 years, 11 months ago (2015-01-20 23:05:16 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/809663003/320001
5 years, 11 months ago (2015-01-21 15:51:47 UTC) #40
commit-bot: I haz the power
Committed patchset #12 (id:320001)
5 years, 11 months ago (2015-01-21 20:18:45 UTC) #41
commit-bot: I haz the power
5 years, 11 months ago (2015-01-21 20:20:03 UTC) #42
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/92da739316361e17f59ef9f04b7aeabf8630bff1
Cr-Commit-Position: refs/heads/master@{#312412}

Powered by Google App Engine
This is Rietveld 408576698