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

Issue 14578004: Support range uploading of a file. (Closed)

Created:
7 years, 7 months ago by hidehiko
Modified:
7 years, 7 months ago
Reviewers:
mattm, hashimoto, mmenke, kinaba
CC:
chromium-reviews, cbentzel+watch_chromium.org
Visibility:
Public.

Description

Support range uploading of a file. URLFetcher currently supports uploading std::string or a whole file. With this CL, URLFetcher also supports a part of file, which will be used to upload a file from Drive file system. BUG=234178 TEST=Ran unit_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=197878

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : Rebase #

Patch Set 4 : Address review comments. #

Total comments: 3

Patch Set 5 : #

Total comments: 5

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Patch Set 9 : Fix compile error on Win, Mac and Android. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -8 lines) Patch
M chrome/browser/safe_browsing/two_phase_uploader.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M net/url_request/test_url_fetcher_factory.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M net/url_request/test_url_fetcher_factory.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M net/url_request/url_fetcher.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M net/url_request/url_fetcher_core.h View 2 chunks +6 lines, -0 lines 0 comments Download
M net/url_request/url_fetcher_core.cc View 3 chunks +11 lines, -1 line 0 comments Download
M net/url_request/url_fetcher_impl.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M net/url_request/url_fetcher_impl.cc View 1 2 3 1 chunk +7 lines, -1 line 0 comments Download
M net/url_request/url_fetcher_impl_unittest.cc View 1 2 3 4 5 6 7 8 6 chunks +31 lines, -6 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
hidehiko
Hello Matt, could you kindly review this CL? I'm working on google_apis code, and would ...
7 years, 7 months ago (2013-04-30 10:23:03 UTC) #1
hashimoto
https://codereview.chromium.org/14578004/diff/1/net/url_request/url_fetcher.h File net/url_request/url_fetcher.h (right): https://codereview.chromium.org/14578004/diff/1/net/url_request/url_fetcher.h#newcode151 net/url_request/url_fetcher.h:151: uint64 range_length, Instead of adding a new method, can ...
7 years, 7 months ago (2013-04-30 10:27:36 UTC) #2
hidehiko
Thank you for your review, and sorry, my local env was somehow broken. Fixed compile ...
7 years, 7 months ago (2013-04-30 11:30:14 UTC) #3
hashimoto
https://codereview.chromium.org/14578004/diff/1/net/url_request/url_fetcher.h File net/url_request/url_fetcher.h (right): https://codereview.chromium.org/14578004/diff/1/net/url_request/url_fetcher.h#newcode151 net/url_request/url_fetcher.h:151: uint64 range_length, On 2013/04/30 11:30:14, hidehiko wrote: > On ...
7 years, 7 months ago (2013-05-01 06:39:21 UTC) #4
hidehiko
Thank you for your review, Ryo. PTAL? Matt (mmenke@), could you review for files under ...
7 years, 7 months ago (2013-05-01 13:51:49 UTC) #5
mmenke
Just nits https://codereview.chromium.org/14578004/diff/13003/net/url_request/url_fetcher_impl_unittest.cc File net/url_request/url_fetcher_impl_unittest.cc (right): https://codereview.chromium.org/14578004/diff/13003/net/url_request/url_fetcher_impl_unittest.cc#newcode585 net/url_request/url_fetcher_impl_unittest.cc:585: range_length_ = 100; I think it's a ...
7 years, 7 months ago (2013-05-01 15:37:01 UTC) #6
hidehiko
Thank you for your review. PTAL? https://chromiumcodereview.appspot.com/14578004/diff/13003/net/url_request/url_fetcher_impl_unittest.cc File net/url_request/url_fetcher_impl_unittest.cc (right): https://chromiumcodereview.appspot.com/14578004/diff/13003/net/url_request/url_fetcher_impl_unittest.cc#newcode585 net/url_request/url_fetcher_impl_unittest.cc:585: range_length_ = 100; ...
7 years, 7 months ago (2013-05-01 17:38:12 UTC) #7
mmenke
https://codereview.chromium.org/14578004/diff/18002/net/url_request/url_fetcher_impl_unittest.cc File net/url_request/url_fetcher_impl_unittest.cc (right): https://codereview.chromium.org/14578004/diff/18002/net/url_request/url_fetcher_impl_unittest.cc#newcode247 net/url_request/url_fetcher_impl_unittest.cc:247: const base::FilePath& path() { return path_; } nit: "... ...
7 years, 7 months ago (2013-05-01 18:10:22 UTC) #8
hidehiko
Thank you for your review. Could you take another look? https://chromiumcodereview.appspot.com/14578004/diff/18002/net/url_request/url_fetcher_impl_unittest.cc File net/url_request/url_fetcher_impl_unittest.cc (right): https://chromiumcodereview.appspot.com/14578004/diff/18002/net/url_request/url_fetcher_impl_unittest.cc#newcode247 ...
7 years, 7 months ago (2013-05-01 18:30:04 UTC) #9
mmenke
LGTM! https://chromiumcodereview.appspot.com/14578004/diff/18002/net/url_request/url_fetcher_impl_unittest.cc File net/url_request/url_fetcher_impl_unittest.cc (right): https://chromiumcodereview.appspot.com/14578004/diff/18002/net/url_request/url_fetcher_impl_unittest.cc#newcode1090 net/url_request/url_fetcher_impl_unittest.cc:1090: uint64 range_length = base::RandGenerator(size - range_offset); On 2013/05/01 ...
7 years, 7 months ago (2013-05-01 18:34:48 UTC) #10
mattm
two_phase_uploader lgtm https://codereview.chromium.org/14578004/diff/28001/net/url_request/url_fetcher.h File net/url_request/url_fetcher.h (right): https://codereview.chromium.org/14578004/diff/28001/net/url_request/url_fetcher.h#newcode139 net/url_request/url_fetcher.h:139: // to be uploaded. To upload while ...
7 years, 7 months ago (2013-05-01 19:52:35 UTC) #11
kinaba
lgtm
7 years, 7 months ago (2013-05-01 23:55:31 UTC) #12
hidehiko
Thank you for your review! https://codereview.chromium.org/14578004/diff/28001/net/url_request/url_fetcher.h File net/url_request/url_fetcher.h (right): https://codereview.chromium.org/14578004/diff/28001/net/url_request/url_fetcher.h#newcode139 net/url_request/url_fetcher.h:139: // to be uploaded. ...
7 years, 7 months ago (2013-05-02 00:59:50 UTC) #13
hashimoto
lgtm https://codereview.chromium.org/14578004/diff/28002/net/url_request/url_fetcher.h File net/url_request/url_fetcher.h (right): https://codereview.chromium.org/14578004/diff/28002/net/url_request/url_fetcher.h#newcode138 net/url_request/url_fetcher.h:138: // |range_offset| and |range_length| specifies the range of ...
7 years, 7 months ago (2013-05-02 04:45:35 UTC) #14
hidehiko
Thank you all for your review. Sending to CQ. https://codereview.chromium.org/14578004/diff/28002/net/url_request/url_fetcher.h File net/url_request/url_fetcher.h (right): https://codereview.chromium.org/14578004/diff/28002/net/url_request/url_fetcher.h#newcode138 net/url_request/url_fetcher.h:138: ...
7 years, 7 months ago (2013-05-02 05:26:06 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/14578004/24002
7 years, 7 months ago (2013-05-02 05:26:23 UTC) #16
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-02 05:49:02 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/14578004/24002
7 years, 7 months ago (2013-05-02 05:49:37 UTC) #18
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-02 05:51:14 UTC) #19
hidehiko
Oops, my code wasn't portable... Fixed and sending to CQ again.
7 years, 7 months ago (2013-05-02 06:20:51 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/14578004/54001
7 years, 7 months ago (2013-05-02 06:21:12 UTC) #21
commit-bot: I haz the power
7 years, 7 months ago (2013-05-02 09:42:09 UTC) #22
Message was sent while issue was closed.
Change committed as 197878

Powered by Google App Engine
This is Rietveld 408576698