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

Issue 8503018: Split DownloadItem into an ABC, an Impl, and a Mock. (Closed)

Created:
9 years, 1 month ago by benjhayden
Modified:
9 years, 1 month ago
CC:
chromium-reviews, jam, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, rdsmith+dwatch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

This split will facilitate testing DownloadQuery and other users of DownloadItems. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110984

Patch Set 1 : " #

Total comments: 10

Patch Set 2 : CamelCase #

Total comments: 8

Patch Set 3 : merge #

Patch Set 4 : merge #

Patch Set 5 : merge #

Patch Set 6 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1028 lines, -1518 lines) Patch
M chrome/browser/automation/automation_provider.cc View 1 2 1 chunk +8 lines, -8 lines 0 comments Download
M chrome/browser/automation/automation_provider_observers.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 11 chunks +15 lines, -15 lines 0 comments Download
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 5 10 chunks +44 lines, -44 lines 0 comments Download
M chrome/browser/download/download_crx_util.cc View 1 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/download/download_extension_api.cc View 1 2 2 chunks +14 lines, -14 lines 0 comments Download
M chrome/browser/download/download_history.cc View 1 3 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/download/download_item_model.cc View 1 4 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/download/download_item_unittest.cc View 1 2 5 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/download/download_manager_unittest.cc View 1 2 14 chunks +24 lines, -24 lines 0 comments Download
M chrome/browser/download/download_shelf_context_menu.cc View 1 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/download/download_test_observer.cc View 1 7 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/download/download_util.cc View 1 2 3 4 5 9 chunks +21 lines, -21 lines 0 comments Download
M chrome/browser/download/save_page_browsertest.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.cc View 1 2 3 4 5 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/download/download_item_cell.mm View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/download/download_item_controller.mm View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/download/download_item_mac.mm View 1 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/download/download_shelf_controller.mm View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/download/download_util_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/custom_drag.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/download/download_item_gtk.cc View 1 2 6 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/gtk/download/download_shelf_gtk.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/download/download_item_view.cc View 1 2 3 4 5 7 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/download/download_shelf_view.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/active_downloads_ui.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/downloads_dom_handler.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/downloads_dom_handler.cc View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M content/browser/download/download_id_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/download/download_item.h View 1 2 4 chunks +96 lines, -274 lines 0 comments Download
M content/browser/download/download_item.cc View 1 2 3 2 chunks +0 lines, -806 lines 0 comments Download
A content/browser/download/download_item_impl.h View 1 2 1 chunk +291 lines, -0 lines 0 comments Download
A + content/browser/download/download_item_impl.cc View 1 2 3 35 chunks +178 lines, -102 lines 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 2 32 chunks +73 lines, -73 lines 0 comments Download
M content/browser/download/drag_download_file.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
A content/browser/download/mock_download_item.h View 1 2 1 chunk +108 lines, -0 lines 0 comments Download
A content/browser/download/mock_download_item.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M content/browser/download/mock_download_manager.cc View 1 2 4 chunks +8 lines, -10 lines 0 comments Download
M content/browser/download/mock_download_manager_delegate.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/save_package.cc View 1 2 3 5 chunks +9 lines, -9 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/shell_download_manager_delegate.cc View 1 2 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
benjhayden
PTAL when you get a chance.
9 years, 1 month ago (2011-11-08 18:44:49 UTC) #1
Randy Smith (Not in Mondays)
LGTM (modulo virtual destructor and comment about methods inherited from DownloadItem--if you disagree with me ...
9 years, 1 month ago (2011-11-09 17:09:57 UTC) #2
cbentzel
This overall looks fine in a mechanical way, barring using CamelCase for the virtuals. However, ...
9 years, 1 month ago (2011-11-09 18:28:29 UTC) #3
Randy Smith (Not in Mondays)
On 2011/11/09 18:28:29, cbentzel wrote: > This overall looks fine in a mechanical way, barring ...
9 years, 1 month ago (2011-11-09 18:39:15 UTC) #4
Randy Smith (Not in Mondays)
As per recent offline email, please make newly virtual getters/setters CamelCase.
9 years, 1 month ago (2011-11-09 18:41:54 UTC) #5
benjhayden
http://codereview.chromium.org/8503018/diff/10/content/browser/download/download_item.h File content/browser/download/download_item.h (left): http://codereview.chromium.org/8503018/diff/10/content/browser/download/download_item.h#oldcode15 content/browser/download/download_item.h:15: // receive state updates. On 2011/11/09 17:09:57, rdsmith wrote: ...
9 years, 1 month ago (2011-11-11 22:31:12 UTC) #6
Randy Smith (Not in Mondays)
On 2011/11/11 22:31:12, b s h wrote: > I'm going to use it in the ...
9 years, 1 month ago (2011-11-11 22:47:56 UTC) #7
cbentzel
LGTM It doesn't look like MockDownloadItem is being used in this CL - but it ...
9 years, 1 month ago (2011-11-16 12:28:44 UTC) #8
benjhayden
Submitting this afternoon if there are no more comments. http://codereview.chromium.org/8503018/diff/17083/chrome/browser/download/download_item_unittest.cc File chrome/browser/download/download_item_unittest.cc (right): http://codereview.chromium.org/8503018/diff/17083/chrome/browser/download/download_item_unittest.cc#newcode256 chrome/browser/download/download_item_unittest.cc:256: ...
9 years, 1 month ago (2011-11-18 18:59:34 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benjhayden@chromium.org/8503018/36001
9 years, 1 month ago (2011-11-18 21:02:04 UTC) #10
commit-bot: I haz the power
Can't apply patch for file chrome/browser/ui/views/download/download_item_view.cc. While running patch -p1 --forward --force; patching file chrome/browser/ui/views/download/download_item_view.cc ...
9 years, 1 month ago (2011-11-18 21:02:28 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benjhayden@chromium.org/8503018/40001
9 years, 1 month ago (2011-11-18 22:12:24 UTC) #12
commit-bot: I haz the power
Try job failure for 8503018-40001 (retry) on win_rel for step "compile" (clobber build). It's a ...
9 years, 1 month ago (2011-11-18 23:04:22 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benjhayden@chromium.org/8503018/43001
9 years, 1 month ago (2011-11-21 18:32:11 UTC) #14
commit-bot: I haz the power
9 years, 1 month ago (2011-11-21 19:54:54 UTC) #15
Change committed as 110984

Powered by Google App Engine
This is Rietveld 408576698