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

Issue 11238044: Refactor BaseFile methods to return a DownloadInterruptReason instead of a net::Error. (Closed)

Created:
8 years, 2 months ago by asanka
Modified:
8 years, 2 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, rginda+watch_chromium.org, jam, rdsmith+dwatch_chromium.org
Visibility:
Public.

Description

Refactor BaseFile methods to return a DownloadInterruptReason instead of a net::Error. Also split the implementation into platform specific files. BUG=157245 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=163983

Patch Set 1 : #

Patch Set 2 : #

Total comments: 13

Patch Set 3 : Address comments #

Total comments: 2

Patch Set 4 : Remove SHFILE_TO_REASON macro #

Unified diffs Side-by-side diffs Delta from patch set Stats (+548 lines, -423 lines) Patch
M content/browser/download/base_file.h View 1 2 3 chunks +54 lines, -25 lines 0 comments Download
M content/browser/download/base_file.cc View 1 2 16 chunks +101 lines, -300 lines 0 comments Download
A content/browser/download/base_file_linux.cc View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
A content/browser/download/base_file_mac.cc View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
A content/browser/download/base_file_posix.cc View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
M content/browser/download/base_file_unittest.cc View 28 chunks +92 lines, -74 lines 0 comments Download
A content/browser/download/base_file_win.cc View 1 2 3 1 chunk +189 lines, -0 lines 0 comments Download
M content/browser/download/download_file_impl.cc View 4 chunks +7 lines, -16 lines 0 comments Download
M content/browser/download/download_net_log_parameters.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/download/download_net_log_parameters.cc View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M content/browser/download/save_file.h View 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/download/save_file.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/download/save_file_manager.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/content_browser.gypi View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
asanka
8 years, 2 months ago (2012-10-22 22:23:05 UTC) #1
Randy Smith (Not in Mondays)
http://codereview.chromium.org/11238044/diff/5001/content/browser/download/base_file.cc File content/browser/download/base_file.cc (right): http://codereview.chromium.org/11238044/diff/5001/content/browser/download/base_file.cc#newcode169 content/browser/download/base_file.cc:169: if (new_path != full_path_) { Why reverse the logic? ...
8 years, 2 months ago (2012-10-23 20:18:13 UTC) #2
asanka
https://codereview.chromium.org/11238044/diff/5001/content/browser/download/base_file.cc File content/browser/download/base_file.cc (right): https://codereview.chromium.org/11238044/diff/5001/content/browser/download/base_file.cc#newcode169 content/browser/download/base_file.cc:169: if (new_path != full_path_) { On 2012/10/23 20:18:13, rdsmith ...
8 years, 2 months ago (2012-10-23 21:53:34 UTC) #3
Randy Smith (Not in Mondays)
LGTM. http://codereview.chromium.org/11238044/diff/5001/content/browser/download/base_file.cc File content/browser/download/base_file.cc (right): http://codereview.chromium.org/11238044/diff/5001/content/browser/download/base_file.cc#newcode169 content/browser/download/base_file.cc:169: if (new_path != full_path_) { On 2012/10/23 21:53:34, ...
8 years, 2 months ago (2012-10-24 18:10:29 UTC) #4
asanka
+jam for content/content_browser.gypi changes
8 years, 2 months ago (2012-10-24 20:30:13 UTC) #5
jam
gypi lgtm, but a comment that i happened to see: https://codereview.chromium.org/11238044/diff/8001/content/browser/download/base_file_win.cc File content/browser/download/base_file_win.cc (right): https://codereview.chromium.org/11238044/diff/8001/content/browser/download/base_file_win.cc#newcode30 ...
8 years, 2 months ago (2012-10-24 20:49:00 UTC) #6
asanka
Thanks! http://codereview.chromium.org/11238044/diff/8001/content/browser/download/base_file_win.cc File content/browser/download/base_file_win.cc (right): http://codereview.chromium.org/11238044/diff/8001/content/browser/download/base_file_win.cc#newcode30 content/browser/download/base_file_win.cc:30: #define SHFILE_TO_REASON(symbol, value, mapping) \ On 2012/10/24 20:49:00, ...
8 years, 2 months ago (2012-10-24 21:40:44 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asanka@chromium.org/11238044/23001
8 years, 2 months ago (2012-10-24 22:52:04 UTC) #8
commit-bot: I haz the power
8 years, 2 months ago (2012-10-25 01:23:52 UTC) #9
Change committed as 163983

Powered by Google App Engine
This is Rietveld 408576698