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

Issue 9585009: Add URLFetcher::SaveResponseToFileAtPath (Closed)

Created:
8 years, 9 months ago by hashimoto
Modified:
8 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org, zel, kinaba
Visibility:
Public.

Description

Add URLFetcher::SaveResponseToFileAtPath BUG=chromium-os:26971 TEST=content_unittests --gtest_filter="URLFetcher*" Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=125937

Patch Set 1 : _ #

Patch Set 2 : _ #

Total comments: 15

Patch Set 3 : Rename SaveResponseToFile to SaveResponseToFileAtPath #

Total comments: 4

Patch Set 4 : Fixed nits #

Total comments: 8

Patch Set 5 : Fixed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+294 lines, -62 lines) Patch
M content/common/net/url_fetcher_impl.h View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M content/common/net/url_fetcher_impl.cc View 1 2 3 4 11 chunks +100 lines, -34 lines 0 comments Download
M content/common/net/url_fetcher_impl_unittest.cc View 1 2 3 4 7 chunks +168 lines, -26 lines 0 comments Download
M content/public/common/url_fetcher.h View 1 2 3 2 chunks +13 lines, -1 line 0 comments Download
M content/test/test_url_fetcher_factory.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/test/test_url_fetcher_factory.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
hashimoto
willchan: Could you review this CL as the primary reviewer? skerner: Could you review this ...
8 years, 9 months ago (2012-03-05 14:05:59 UTC) #1
cbentzel
Should this be using DownloadManager::DownloadURL (or ultimately ResourceDispatcherHost::BeginDownload) instead?
8 years, 9 months ago (2012-03-05 14:59:29 UTC) #2
cbentzel
Not the URLFetcher itself - but the ultimate users of SaveResponseToFile. On Mon, Mar 5, ...
8 years, 9 months ago (2012-03-05 15:01:17 UTC) #3
hashimoto
+kuan
8 years, 9 months ago (2012-03-05 16:21:01 UTC) #4
zel
Chris, the "customer" for this change is our gdata library layer. The approach that you ...
8 years, 9 months ago (2012-03-05 17:44:46 UTC) #5
cbentzel
Great - thanks for the response. On Mon, Mar 5, 2012 at 12:44 PM, Zelidrag ...
8 years, 9 months ago (2012-03-05 18:02:00 UTC) #6
Sam Kerner (Chrome)
cbentzel and willchan are more qualified than I am to decide if this should be ...
8 years, 9 months ago (2012-03-06 00:23:05 UTC) #7
kuan
http://codereview.chromium.org/9585009/diff/6009/content/common/net/url_fetcher_impl.h File content/common/net/url_fetcher_impl.h (right): http://codereview.chromium.org/9585009/diff/6009/content/common/net/url_fetcher_impl.h#newcode60 content/common/net/url_fetcher_impl.h:60: scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) OVERRIDE; can u add stop_caching boolean as ...
8 years, 9 months ago (2012-03-06 02:01:31 UTC) #8
willchan no longer on Chromium
http://codereview.chromium.org/9585009/diff/6009/content/common/net/url_fetcher_impl.cc File content/common/net/url_fetcher_impl.cc (right): http://codereview.chromium.org/9585009/diff/6009/content/common/net/url_fetcher_impl.cc#newcode357 content/common/net/url_fetcher_impl.cc:357: base::PLATFORM_FILE_CREATE_ALWAYS | base::PLATFORM_FILE_WRITE, Just doublechecking...is this what we want? ...
8 years, 9 months ago (2012-03-06 02:33:03 UTC) #9
hashimoto
http://codereview.chromium.org/9585009/diff/6009/content/common/net/url_fetcher_impl.cc File content/common/net/url_fetcher_impl.cc (right): http://codereview.chromium.org/9585009/diff/6009/content/common/net/url_fetcher_impl.cc#newcode357 content/common/net/url_fetcher_impl.cc:357: base::PLATFORM_FILE_CREATE_ALWAYS | base::PLATFORM_FILE_WRITE, On 2012/03/06 02:33:04, willchan wrote: > ...
8 years, 9 months ago (2012-03-06 10:16:01 UTC) #10
kuan
On 2012/03/06 02:33:03, willchan wrote: > http://codereview.chromium.org/9585009/diff/6009/content/common/net/url_fetcher_impl.cc > File content/common/net/url_fetcher_impl.cc (right): > > http://codereview.chromium.org/9585009/diff/6009/content/common/net/url_fetcher_impl.cc#newcode357 > ...
8 years, 9 months ago (2012-03-06 14:55:19 UTC) #11
Sam Kerner (Chrome)
Two nits, otherwise it looks good. Because this code has had some gnarly bugs, I ...
8 years, 9 months ago (2012-03-06 19:44:31 UTC) #12
hashimoto
http://codereview.chromium.org/9585009/diff/15001/content/common/net/url_fetcher_impl.cc File content/common/net/url_fetcher_impl.cc (right): http://codereview.chromium.org/9585009/diff/15001/content/common/net/url_fetcher_impl.cc#newcode401 content/common/net/url_fetcher_impl.cc:401: const bool created = true; On 2012/03/06 19:44:31, Sam ...
8 years, 9 months ago (2012-03-07 04:39:21 UTC) #13
hashimoto
wtc, could you review this change as a content/public owner?
8 years, 9 months ago (2012-03-07 08:45:12 UTC) #14
satorux1
wtc isn't in content/public/OWNERS. let me add jam.
8 years, 9 months ago (2012-03-07 18:13:08 UTC) #15
satorux1
adding jam for content/public changes.
8 years, 9 months ago (2012-03-07 18:13:44 UTC) #16
jam
On 2012/03/07 18:13:44, satorux1 wrote: > adding jam for content/public changes. I'll defer to wtc ...
8 years, 9 months ago (2012-03-07 20:13:34 UTC) #17
hashimoto
On 2012/03/07 20:13:34, John Abd-El-Malek wrote: > On 2012/03/07 18:13:44, satorux1 wrote: > > adding ...
8 years, 9 months ago (2012-03-08 10:47:55 UTC) #18
willchan no longer on Chromium
Only have a few nits. http://codereview.chromium.org/9585009/diff/19005/content/common/net/url_fetcher_impl.cc File content/common/net/url_fetcher_impl.cc (right): http://codereview.chromium.org/9585009/diff/19005/content/common/net/url_fetcher_impl.cc#newcode368 content/common/net/url_fetcher_impl.cc:368: bool created) { Is ...
8 years, 9 months ago (2012-03-08 16:38:38 UTC) #19
hashimoto
http://codereview.chromium.org/9585009/diff/19005/content/common/net/url_fetcher_impl.cc File content/common/net/url_fetcher_impl.cc (right): http://codereview.chromium.org/9585009/diff/19005/content/common/net/url_fetcher_impl.cc#newcode368 content/common/net/url_fetcher_impl.cc:368: bool created) { On 2012/03/08 16:38:39, willchan wrote: > ...
8 years, 9 months ago (2012-03-09 03:22:52 UTC) #20
satorux1
Will, could you take another look? This patch is blocking some gdata related tasks. If ...
8 years, 9 months ago (2012-03-09 18:29:21 UTC) #21
willchan no longer on Chromium
Apologies, will take a look now. Was out all yesterday in meetings. On Fri, Mar ...
8 years, 9 months ago (2012-03-09 18:30:28 UTC) #22
willchan no longer on Chromium
lgtm
8 years, 9 months ago (2012-03-09 18:31:21 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/9585009/31001
8 years, 9 months ago (2012-03-09 18:44:07 UTC) #24
commit-bot: I haz the power
Try job failure for 9585009-31001 (retry) on android for steps "Compile, build". It's a second ...
8 years, 9 months ago (2012-03-09 19:33:03 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/9585009/31001
8 years, 9 months ago (2012-03-09 20:31:19 UTC) #26
commit-bot: I haz the power
8 years, 9 months ago (2012-03-09 23:25:45 UTC) #27
Change committed as 125937

Powered by Google App Engine
This is Rietveld 408576698