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

Issue 10263019: DownloadManagerDelegate::ShouldCompleteDownload(callback) (Closed)

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

Description

DownloadManagerDelegate::ShouldCompleteDownload(callback) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137949

Patch Set 1 #

Total comments: 10

Patch Set 2 : comments #

Total comments: 2

Patch Set 3 : " #

Total comments: 15

Patch Set 4 : comments #

Patch Set 5 : kill DI::MaybeCompleteDownload() #

Total comments: 2

Patch Set 6 : complete_callback is the droids you're looking for. #

Total comments: 4

Patch Set 7 : " #

Total comments: 2

Patch Set 8 : ... #

Patch Set 9 : merge #

Total comments: 6

Patch Set 10 : comment #

Patch Set 11 : merge #

Total comments: 2

Patch Set 12 : rewrite #

Patch Set 13 : cleanup #

Total comments: 8

Patch Set 14 : comments #

Patch Set 15 : fix cros #

Patch Set 16 : include logging.h #

Patch Set 17 : GetUploadedBytes #

Patch Set 18 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -96 lines) Patch
M chrome/browser/chromeos/gdata/gdata_download_observer.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_download_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +19 lines, -23 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +69 lines, -27 lines 0 comments Download
A chrome/browser/download/download_completion_blocker.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/browser/download/download_completion_blocker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/download/download_item_impl.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/download/download_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +15 lines, -4 lines 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 1 2 3 4 5 3 chunks +11 lines, -4 lines 0 comments Download
M content/browser/download/save_package.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -19 lines 0 comments Download
M content/public/browser/download_item.h View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M content/public/browser/download_manager_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -8 lines 0 comments Download
M content/public/browser/download_manager_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 23 (0 generated)
benjhayden
Still need to dig into SafeBrowsing, but PTAL for everything else.
8 years, 7 months ago (2012-05-01 15:30:20 UTC) #1
asanka
http://codereview.chromium.org/10263019/diff/1/chrome/browser/chromeos/gdata/gdata_download_observer.cc File chrome/browser/chromeos/gdata/gdata_download_observer.cc (right): http://codereview.chromium.org/10263019/diff/1/chrome/browser/chromeos/gdata/gdata_download_observer.cc#newcode43 chrome/browser/chromeos/gdata/gdata_download_observer.cc:43: void MarkAsComplete() { Nit: Perhaps rename to something like ...
8 years, 7 months ago (2012-05-01 15:54:09 UTC) #2
benjhayden
PTAL http://codereview.chromium.org/10263019/diff/1/chrome/browser/chromeos/gdata/gdata_download_observer.cc File chrome/browser/chromeos/gdata/gdata_download_observer.cc (right): http://codereview.chromium.org/10263019/diff/1/chrome/browser/chromeos/gdata/gdata_download_observer.cc#newcode43 chrome/browser/chromeos/gdata/gdata_download_observer.cc:43: void MarkAsComplete() { On 2012/05/01 15:54:10, asanka wrote: ...
8 years, 7 months ago (2012-05-01 18:02:52 UTC) #3
Randy Smith (Not in Mondays)
Did you look at whether or not we can make DM::MaybeCompleteDownload private/remove it from the ...
8 years, 7 months ago (2012-05-01 18:21:49 UTC) #4
benjhayden
There is no DM::MaybeCompleteDownload, but there is DownloadItem::MaybeCompleteDownload, and I could kill it so I ...
8 years, 7 months ago (2012-05-01 19:00:30 UTC) #5
achuithb
http://codereview.chromium.org/10263019/diff/2006/chrome/browser/chromeos/gdata/gdata_download_observer.cc File chrome/browser/chromeos/gdata/gdata_download_observer.cc (right): http://codereview.chromium.org/10263019/diff/2006/chrome/browser/chromeos/gdata/gdata_download_observer.cc#newcode58 chrome/browser/chromeos/gdata/gdata_download_observer.cc:58: base::Closure complete_cb_; I would prefer this be complete_callback_. We ...
8 years, 7 months ago (2012-05-01 19:45:21 UTC) #6
benjhayden
PTAL http://codereview.chromium.org/10263019/diff/2006/chrome/browser/chromeos/gdata/gdata_download_observer.cc File chrome/browser/chromeos/gdata/gdata_download_observer.cc (right): http://codereview.chromium.org/10263019/diff/2006/chrome/browser/chromeos/gdata/gdata_download_observer.cc#newcode58 chrome/browser/chromeos/gdata/gdata_download_observer.cc:58: base::Closure complete_cb_; On 2012/05/01 19:45:21, achuith.bhandarkar wrote: > ...
8 years, 7 months ago (2012-05-01 20:12:39 UTC) #7
Randy Smith (Not in Mondays)
http://codereview.chromium.org/10263019/diff/6003/chrome/browser/chromeos/gdata/gdata_download_observer.cc File chrome/browser/chromeos/gdata/gdata_download_observer.cc (right): http://codereview.chromium.org/10263019/diff/6003/chrome/browser/chromeos/gdata/gdata_download_observer.cc#newcode156 chrome/browser/chromeos/gdata/gdata_download_observer.cc:156: if (!maybe_complete_download.is_null()) On 2012/05/01 19:00:30, benjhayden_chromium wrote: > On ...
8 years, 7 months ago (2012-05-02 18:14:07 UTC) #8
benjhayden
PTAL http://codereview.chromium.org/10263019/diff/6003/chrome/browser/chromeos/gdata/gdata_download_observer.cc File chrome/browser/chromeos/gdata/gdata_download_observer.cc (right): http://codereview.chromium.org/10263019/diff/6003/chrome/browser/chromeos/gdata/gdata_download_observer.cc#newcode156 chrome/browser/chromeos/gdata/gdata_download_observer.cc:156: if (!maybe_complete_download.is_null()) On 2012/05/02 18:14:07, rdsmith wrote: > ...
8 years, 7 months ago (2012-05-03 19:21:14 UTC) #9
Randy Smith (Not in Mondays)
http://codereview.chromium.org/10263019/diff/3006/content/public/browser/download_manager_delegate.h File content/public/browser/download_manager_delegate.h (right): http://codereview.chromium.org/10263019/diff/3006/content/public/browser/download_manager_delegate.h#newcode66 content/public/browser/download_manager_delegate.h:66: // will not be run. On 2012/05/03 19:21:14, benjhayden_chromium ...
8 years, 7 months ago (2012-05-03 19:50:46 UTC) #10
benjhayden
http://codereview.chromium.org/10263019/diff/3006/content/public/browser/download_manager_delegate.h File content/public/browser/download_manager_delegate.h (right): http://codereview.chromium.org/10263019/diff/3006/content/public/browser/download_manager_delegate.h#newcode66 content/public/browser/download_manager_delegate.h:66: // will not be run. On 2012/05/03 19:50:46, rdsmith ...
8 years, 7 months ago (2012-05-04 17:02:53 UTC) #11
Randy Smith (Not in Mondays)
On 2012/05/04 17:02:53, benjhayden_chromium wrote: > That's how DM wants to use it now, but ...
8 years, 7 months ago (2012-05-07 01:05:26 UTC) #12
benjhayden
PTAL. Merged with the MHTML/SavePackage CL so you can see how SavePackage will use this ...
8 years, 7 months ago (2012-05-08 22:44:21 UTC) #13
Randy Smith (Not in Mondays)
I think I'll say: WDYT? (This is very close--I think the only sticking point might ...
8 years, 7 months ago (2012-05-09 00:50:56 UTC) #14
benjhayden
merge
8 years, 7 months ago (2012-05-14 15:21:53 UTC) #15
benjhayden
PTAL http://codereview.chromium.org/10263019/diff/42001/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): http://codereview.chromium.org/10263019/diff/42001/chrome/browser/download/chrome_download_manager_delegate.cc#newcode85 chrome/browser/download/chrome_download_manager_delegate.cc:85: // The verdict that we got from calling ...
8 years, 7 months ago (2012-05-14 15:35:04 UTC) #16
Randy Smith (Not in Mondays)
Summary of offline conversation: I'm suggesting a rewrite that'll combine all the safe browsing and ...
8 years, 7 months ago (2012-05-14 18:30:31 UTC) #17
benjhayden
PTAL http://codereview.chromium.org/10263019/diff/53001/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): http://codereview.chromium.org/10263019/diff/53001/chrome/browser/download/chrome_download_manager_delegate.cc#newcode283 chrome/browser/download/chrome_download_manager_delegate.cc:283: return true; On 2012/05/14 18:30:31, rdsmith wrote: > ...
8 years, 7 months ago (2012-05-15 21:25:27 UTC) #18
Randy Smith (Not in Mondays)
I like it. With nits below (suggestion up to you) LGTM. http://codereview.chromium.org/10263019/diff/42003/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): ...
8 years, 7 months ago (2012-05-16 19:04:53 UTC) #19
asanka
http://codereview.chromium.org/10263019/diff/42003/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): http://codereview.chromium.org/10263019/diff/42003/chrome/browser/download/chrome_download_manager_delegate.cc#newcode279 chrome/browser/download/chrome_download_manager_delegate.cc:279: item, user_complete_callback))) Is the DownloadItem* guaranteed to outlive the ...
8 years, 7 months ago (2012-05-16 19:26:32 UTC) #20
benjhayden
PTAL http://codereview.chromium.org/10263019/diff/42003/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): http://codereview.chromium.org/10263019/diff/42003/chrome/browser/download/chrome_download_manager_delegate.cc#newcode279 chrome/browser/download/chrome_download_manager_delegate.cc:279: item, user_complete_callback))) On 2012/05/16 19:26:32, asanka wrote: > ...
8 years, 7 months ago (2012-05-16 19:42:29 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benjhayden@chromium.org/10263019/53005
8 years, 7 months ago (2012-05-18 19:15:51 UTC) #22
commit-bot: I haz the power
8 years, 7 months ago (2012-05-18 20:42:38 UTC) #23
Change committed as 137949

Powered by Google App Engine
This is Rietveld 408576698