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

Issue 3029025: Download code cleanup: (Closed)

Created:
10 years, 5 months ago by Paweł Hajdan Jr.
Modified:
9 years, 7 months ago
CC:
chromium-reviews, brettw-cc_chromium.org, Paul Godavari, darin-cc_chromium.org, ben+cc_chromium.org, John Grabowski, pam+watch_chromium.org
Visibility:
Public.

Description

Download code cleanup: - make the code more object-oriented, make the object expose less accessors - make some parts of code look more obvious, use existing helpers - make the public interfaces slightly better (less ctor parameters) - make some names slightly better TEST=unit_tests, browser_tests, ui_tests BUG=48913 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=53808

Patch Set 1 #

Patch Set 2 : rebase'n'trybots #

Total comments: 2

Patch Set 3 : rebase'n'final #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -203 lines) Patch
M chrome/browser/cocoa/download_item_controller.mm View 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/download/download_file.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/download/download_file_manager.cc View 5 chunks +9 lines, -16 lines 0 comments Download
M chrome/browser/download/download_item.h View 1 2 5 chunks +33 lines, -26 lines 0 comments Download
M chrome/browser/download/download_item.cc View 1 2 9 chunks +101 lines, -47 lines 0 comments Download
M chrome/browser/download/download_manager.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_manager.cc View 7 chunks +18 lines, -37 lines 0 comments Download
M chrome/browser/download/download_shelf.cc View 3 chunks +8 lines, -11 lines 0 comments Download
M chrome/browser/download/download_util.h View 1 2 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/download/download_util.cc View 2 chunks +0 lines, -21 lines 0 comments Download
M chrome/browser/download/save_package.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/gtk/download_item_gtk.cc View 2 chunks +2 lines, -10 lines 0 comments Download
M chrome/browser/renderer_host/download_resource_handler.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/download_resource_handler.cc View 6 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/views/download_item_view.cc View 2 chunks +2 lines, -6 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Paweł Hajdan Jr.
All feedback welcome. The goal is to make this code clear, so feel free to ...
10 years, 5 months ago (2010-07-23 23:45:44 UTC) #1
Paweł Hajdan Jr.
One more comment: the method names and comments are quite poor. It seems difficult to ...
10 years, 5 months ago (2010-07-24 00:23:56 UTC) #2
Paweł Hajdan Jr.
ping
10 years, 5 months ago (2010-07-26 21:37:24 UTC) #3
darin (slow to review)
10 years, 5 months ago (2010-07-27 17:59:47 UTC) #4
LGTM

http://codereview.chromium.org/3029025/diff/4001/5004
File chrome/browser/download/download_item.cc (right):

http://codereview.chromium.org/3029025/diff/4001/5004#newcode182
chrome/browser/download/download_item.cc:182: // If we've received more data
than we were expecting (bad server info?), revert
nit: 80 char limit

http://codereview.chromium.org/3029025/diff/4001/5005
File chrome/browser/download/download_item.h (right):

http://codereview.chromium.org/3029025/diff/4001/5005#newcode83
chrome/browser/download/download_item.h:83: // Public API
this is sort of an odd comment to have in the "public:" section of the class
declaration :)

Powered by Google App Engine
This is Rietveld 408576698