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

Issue 11640007: Make the UI an observer of downloads. (Closed)

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

Description

Make the UI an observer of downloads. This relieves content/browser/download from knowing who/when to notify regarding a new download. BUG=147753 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186458

Patch Set 1 : #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : Use DownloadItemModel. Address Nits. #

Total comments: 9

Patch Set 4 : Add unit tests #

Patch Set 5 : Address comments and add a unit test #

Patch Set 6 : Merge with 176164 + Android fixes #

Patch Set 7 : Revive CL at r184714 and proper handling of SavePackage #

Patch Set 8 : Merge with r186187 #

Patch Set 9 : Fix android build #

Patch Set 10 : Fix Android clang build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+582 lines, -249 lines) Patch
M android_webview/native/aw_web_contents_delegate.h View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M android_webview/native/aw_web_contents_delegate.cc View 1 2 3 4 5 6 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/android/chrome_web_contents_delegate_android.h View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/android/chrome_web_contents_delegate_android.cc View 1 2 3 4 5 6 1 chunk +3 lines, -7 lines 0 comments Download
M chrome/browser/download/all_download_item_notifier.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 4 5 6 7 3 chunks +0 lines, -22 lines 0 comments Download
M chrome/browser/download/download_item_model.h View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/download/download_item_model.cc View 1 2 3 4 5 6 7 4 chunks +21 lines, -1 line 0 comments Download
M chrome/browser/download/download_service.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/download/download_service.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
A chrome/browser/download/download_ui_controller.h View 1 2 3 4 5 6 1 chunk +61 lines, -0 lines 0 comments Download
A chrome/browser/download/download_ui_controller.cc View 1 2 3 4 5 6 7 8 9 1 chunk +153 lines, -0 lines 0 comments Download
A chrome/browser/download/download_ui_controller_unittest.cc View 1 2 3 4 5 6 7 1 chunk +183 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_host.h View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 2 chunks +21 lines, -26 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/android/download_controller_android_impl.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/android/download_controller_android_impl.cc View 1 2 3 4 5 6 7 3 chunks +9 lines, -6 lines 0 comments Download
M content/browser/download/download_item_factory.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/download/download_item_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 1 2 3 4 5 6 7 4 chunks +10 lines, -37 lines 0 comments Download
M content/browser/download/download_item_impl_delegate.h View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/download/download_item_impl_delegate.cc View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/download/download_item_impl_unittest.cc View 1 2 3 4 5 6 6 chunks +0 lines, -8 lines 0 comments Download
M content/browser/download/download_manager_impl.h View 1 2 3 4 5 6 3 chunks +2 lines, -1 line 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 2 3 4 5 6 5 chunks +55 lines, -69 lines 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 1 2 3 4 5 6 4 chunks +2 lines, -16 lines 0 comments Download
M content/browser/download/save_package.cc View 1 2 3 4 5 6 7 2 chunks +28 lines, -0 lines 0 comments Download
M content/public/browser/android/download_controller_android.h View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M content/public/browser/download_manager_delegate.h View 1 2 3 4 5 6 1 chunk +0 lines, -5 lines 0 comments Download
M content/public/browser/download_manager_delegate.cc View 1 2 3 4 5 6 1 chunk +0 lines, -5 lines 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
asanka
rdsmith: Can you take a look at {chrome,content}/browser/download ? In particular, the download_ui_controller.* implementation? I ...
8 years ago (2012-12-20 18:46:11 UTC) #1
benjhayden
drive-by https://codereview.chromium.org/11640007/diff/7001/chrome/browser/download/download_ui_controller.cc File chrome/browser/download/download_ui_controller.cc (right): https://codereview.chromium.org/11640007/diff/7001/chrome/browser/download/download_ui_controller.cc#newcode104 chrome/browser/download/download_ui_controller.cc:104: // GET downloads are delegated to and Android ...
8 years ago (2012-12-20 21:09:14 UTC) #2
asanka
Ben: Thanks for the drive-by! Randy: I changed the DownloadUIController to use the DownloadItemModel for ...
8 years ago (2012-12-20 22:41:19 UTC) #3
Randy Smith (Not in Mondays)
Wow, this is much less painful than I feared. https://codereview.chromium.org/11640007/diff/8031/chrome/browser/download/download_ui_controller.cc File chrome/browser/download/download_ui_controller.cc (right): https://codereview.chromium.org/11640007/diff/8031/chrome/browser/download/download_ui_controller.cc#newcode56 chrome/browser/download/download_ui_controller.cc:56: ...
8 years ago (2012-12-20 23:09:25 UTC) #4
asanka
https://codereview.chromium.org/11640007/diff/8031/chrome/browser/download/download_ui_controller.cc File chrome/browser/download/download_ui_controller.cc (right): https://codereview.chromium.org/11640007/diff/8031/chrome/browser/download/download_ui_controller.cc#newcode56 chrome/browser/download/download_ui_controller.cc:56: // complete. On 2012/12/20 23:09:25, rdsmith wrote: > What's ...
8 years ago (2012-12-20 23:56:19 UTC) #5
Randy Smith (Not in Mondays)
LGTM (up to you what to do with the comment below). I'd like someone with ...
7 years, 12 months ago (2012-12-25 23:05:54 UTC) #6
asanka
I'll wait until I get back to do further review rounds and land. https://codereview.chromium.org/11640007/diff/8031/chrome/browser/download/download_ui_controller.cc File ...
7 years, 11 months ago (2013-01-10 22:12:13 UTC) #7
asanka
Could you take a look? sky: chrome/browser/ui/ chrome/browser/prerender/ torne: android_webview/ benwells: chrome/browser/extensions/ rdsmith: (done) content/browser/download/ ...
7 years, 10 months ago (2013-02-27 00:52:48 UTC) #8
nilesh
> nileshagrawal: > content/public/browser/android/ > content/browser/android/ > chrome/browser/android/ LGTM
7 years, 10 months ago (2013-02-27 01:44:34 UTC) #9
Jói
LGTM for content/public.
7 years, 9 months ago (2013-02-27 09:45:36 UTC) #10
Torne
android_webview/ LGTM
7 years, 9 months ago (2013-02-27 10:01:18 UTC) #11
sky
LGTM
7 years, 9 months ago (2013-02-27 15:28:43 UTC) #12
asanka
Thanks everyone! benwells: Ping? sky: If you haven't already, would you mind taking a look ...
7 years, 9 months ago (2013-03-01 00:10:06 UTC) #13
sky
SLGTM
7 years, 9 months ago (2013-03-01 00:42:11 UTC) #14
Randy Smith (Not in Mondays)
LGTM. (I continue to be frustrated by how we use GetWebContents(), and would like to ...
7 years, 9 months ago (2013-03-01 16:56:02 UTC) #15
benwells
lgtm
7 years, 9 months ago (2013-03-05 00:18:36 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asanka@chromium.org/11640007/66001
7 years, 9 months ago (2013-03-06 16:11:23 UTC) #17
commit-bot: I haz the power
7 years, 9 months ago (2013-03-06 17:43:04 UTC) #18
Message was sent while issue was closed.
Change committed as 186458

Powered by Google App Engine
This is Rietveld 408576698