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

Issue 8351052: Created a DownloadManager interface, for use in unit tests.. (Closed)

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

Description

Created a DownloadManager interface, for use in unit tests.. Bug=None Test=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110499

Patch Set 1 #

Patch Set 2 : Cleaned up coding style. #

Patch Set 3 : More CLANG style error fixes. #

Patch Set 4 : Fixed Mac & Clang issues. #

Total comments: 1

Patch Set 5 : Merged with trunk & renamed the DownloadManager interface class. #

Patch Set 6 : Created a non-inlined destructor for MockDownloadManager. #

Total comments: 5

Patch Set 7 : Moved comment. #

Total comments: 2

Patch Set 8 : Moved DownloadManagerImpl to its own set of files. #

Patch Set 9 : Merged with trunk. #

Patch Set 10 : Fixed include. #

Patch Set 11 : Clean up download items in the MockDownloadManager destructor. #

Patch Set 12 : Fixed typo. #

Total comments: 14

Patch Set 13 : Cleanup per jam's comments. #

Patch Set 14 : Merged with trunk #

Patch Set 15 : Fixed memory leak in MockDownloadManager. #

Patch Set 16 : Merged with trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+772 lines, -1409 lines) Patch
M chrome/browser/app_controller_mac.mm View 1 2 3 4 1 chunk +2 lines, -2 lines 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 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/download/download_service.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/downloads_dom_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +4 lines, -4 lines 0 comments Download
M content/browser/download/download_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +75 lines, -205 lines 0 comments Download
D content/browser/download/download_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1082 lines 0 comments Download
A content/browser/download/download_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +248 lines, -0 lines 0 comments Download
A + content/browser/download/download_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 46 chunks +117 lines, -93 lines 0 comments Download
M content/browser/download/mock_download_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +82 lines, -5 lines 0 comments Download
A content/browser/download/mock_download_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +226 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -1 line 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/shell_browser_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +4 lines, -4 lines 0 comments Download
M content/shell/shell_download_manager_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
ahendrickson
9 years, 1 month ago (2011-11-02 19:50:29 UTC) #1
ahendrickson
Randy, PTAL. I finally got all the CLANG errors fixed.
9 years, 1 month ago (2011-11-04 17:18:31 UTC) #2
jam
drive by: where's the interface? the convention is to have the interfaces be named X, ...
9 years, 1 month ago (2011-11-04 17:39:18 UTC) #3
ahendrickson
Huh. I got the impression from the coding style doc that it was recommended to ...
9 years, 1 month ago (2011-11-04 18:22:32 UTC) #4
Randy Smith (Not in Mondays)
On 2011/11/04 18:22:32, ahendrickson wrote: > Huh. I got the impression from the coding style ...
9 years, 1 month ago (2011-11-04 18:27:23 UTC) #5
ahendrickson
OK, will do. On 2011/11/04 18:27:23, rdsmith wrote: > On 2011/11/04 18:22:32, ahendrickson wrote: > ...
9 years, 1 month ago (2011-11-04 18:29:32 UTC) #6
jam
On 2011/11/04 18:27:23, rdsmith wrote: > On 2011/11/04 18:22:32, ahendrickson wrote: > > Huh. I ...
9 years, 1 month ago (2011-11-04 22:09:02 UTC) #7
ahendrickson
Switched from DownloadManagerInterface/DownloadManager pair to DownloadManager/DownloadManagerImpl.
9 years, 1 month ago (2011-11-07 21:11:57 UTC) #8
Randy Smith (Not in Mondays)
Andy: Basic message is that this approach looks good, and I'm still reviewing (diving down ...
9 years, 1 month ago (2011-11-08 21:53:52 UTC) #9
Randy Smith (Not in Mondays)
Andy: This looks good. Clue me on my one question below and I think you're ...
9 years, 1 month ago (2011-11-08 22:10:50 UTC) #10
ahendrickson
http://codereview.chromium.org/8351052/diff/11015/chrome/browser/download/download_manager_unittest.cc File chrome/browser/download/download_manager_unittest.cc (right): http://codereview.chromium.org/8351052/diff/11015/chrome/browser/download/download_manager_unittest.cc#newcode60 chrome/browser/download/download_manager_unittest.cc:60: download_manager_(new DownloadManagerImpl( On 2011/11/08 22:10:51, rdsmith wrote: > Why ...
9 years, 1 month ago (2011-11-09 17:09:02 UTC) #11
jam
http://codereview.chromium.org/8351052/diff/18001/content/browser/download/download_manager.h File content/browser/download/download_manager.h (right): http://codereview.chromium.org/8351052/diff/18001/content/browser/download/download_manager.h#newcode311 content/browser/download/download_manager.h:311: class CONTENT_EXPORT DownloadManagerImpl this need to go into a ...
9 years, 1 month ago (2011-11-09 17:34:00 UTC) #12
Randy Smith (Not in Mondays)
LGTM. http://codereview.chromium.org/8351052/diff/11015/chrome/browser/download/download_manager_unittest.cc File chrome/browser/download/download_manager_unittest.cc (right): http://codereview.chromium.org/8351052/diff/11015/chrome/browser/download/download_manager_unittest.cc#newcode60 chrome/browser/download/download_manager_unittest.cc:60: download_manager_(new DownloadManagerImpl( On 2011/11/09 17:09:02, ahendrickson wrote: > ...
9 years, 1 month ago (2011-11-09 19:06:33 UTC) #13
ahendrickson
http://codereview.chromium.org/8351052/diff/18001/content/browser/download/download_manager.h File content/browser/download/download_manager.h (right): http://codereview.chromium.org/8351052/diff/18001/content/browser/download/download_manager.h#newcode311 content/browser/download/download_manager.h:311: class CONTENT_EXPORT DownloadManagerImpl On 2011/11/09 17:34:00, John Abd-El-Malek wrote: ...
9 years, 1 month ago (2011-11-09 22:00:59 UTC) #14
ahendrickson
jam, could you PTAL? On 2011/11/09 22:00:59, ahendrickson wrote: > http://codereview.chromium.org/8351052/diff/18001/content/browser/download/download_manager.h > File content/browser/download/download_manager.h (right): ...
9 years, 1 month ago (2011-11-09 23:13:20 UTC) #15
jam
lgtm with nits fixed http://codereview.chromium.org/8351052/diff/23002/content/browser/download/download_manager.h File content/browser/download/download_manager.h (right): http://codereview.chromium.org/8351052/diff/23002/content/browser/download/download_manager.h#newcode35 content/browser/download/download_manager.h:35: //#include "base/callback.h" nit: remove? http://codereview.chromium.org/8351052/diff/23002/content/browser/download/download_manager.h#newcode285 ...
9 years, 1 month ago (2011-11-10 17:19:09 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ahendrickson@chromium.org/8351052/35001
9 years, 1 month ago (2011-11-17 13:16:10 UTC) #17
commit-bot: I haz the power
Change committed as 110499
9 years, 1 month ago (2011-11-17 16:13:02 UTC) #18
ahendrickson
Sorry this is after commit . . . http://codereview.chromium.org/8351052/diff/23002/content/browser/download/download_manager.h File content/browser/download/download_manager.h (right): http://codereview.chromium.org/8351052/diff/23002/content/browser/download/download_manager.h#newcode35 content/browser/download/download_manager.h:35: //#include ...
9 years, 1 month ago (2011-11-18 18:47:39 UTC) #19
Randy Smith (Not in Mondays)
9 years, 1 month ago (2011-11-18 18:53:08 UTC) #20
On 2011/11/18 18:47:39, ahendrickson wrote:
> Sorry this is after commit . . .

Meaning you'll land these changes separately, or just that you responded to the
CL after you landed the changes?

> 
>
http://codereview.chromium.org/8351052/diff/23002/content/browser/download/do...
> File content/browser/download/download_manager.h (right):
> 
>
http://codereview.chromium.org/8351052/diff/23002/content/browser/download/do...
> content/browser/download/download_manager.h:35: //#include "base/callback.h"
> On 2011/11/10 17:19:09, John Abd-El-Malek wrote:
> > nit: remove?
> 
> Done.
> 
>
http://codereview.chromium.org/8351052/diff/23002/content/browser/download/do...
> content/browser/download/download_manager.h:285: private:
> On 2011/11/10 17:19:09, John Abd-El-Malek wrote:
> > nit: spacing
> 
> Done.
> 
>
http://codereview.chromium.org/8351052/diff/23002/content/browser/download/do...
> content/browser/download/download_manager.h:287: friend class
> DownloadManagerTest;
> On 2011/11/10 17:19:09, John Abd-El-Malek wrote:
> > are all these friends still needed?
> 
> Was able to get rid of two.
> 
>
http://codereview.chromium.org/8351052/diff/23002/content/browser/download/do...
> File content/browser/download/download_manager_impl.h (right):
> 
>
http://codereview.chromium.org/8351052/diff/23002/content/browser/download/do...
> content/browser/download/download_manager_impl.h:5: // The DownloadManager
> object manages the process of downloading, including
> On 2011/11/10 17:19:09, John Abd-El-Malek wrote:
> > nit: this line through 25 should be removed, the comment should only be in
the
> > interface file, and the implementation's header doesn't need to duplicate it
> 
> Done.
> 
>
http://codereview.chromium.org/8351052/diff/23002/content/browser/download/do...
> content/browser/download/download_manager_impl.h:114: // More DownloadManager
> functions.
> On 2011/11/10 17:19:09, John Abd-El-Malek wrote:
> > nit: all the overridden functions from the same interface should be listed
> right
> > after each other
> 
> Done.
> 
>
http://codereview.chromium.org/8351052/diff/23002/content/browser/download/mo...
> File content/browser/download/mock_download_manager.cc (right):
> 
>
http://codereview.chromium.org/8351052/diff/23002/content/browser/download/mo...
> content/browser/download/mock_download_manager.cc:29: DownloadVector* result)
{
> On 2011/11/10 17:19:09, John Abd-El-Malek wrote:
> > nit: spacing here and below in other functions is off
> 
> Done.
> 
>
http://codereview.chromium.org/8351052/diff/23002/content/browser/download/mo...
> File content/browser/download/mock_download_manager.h (right):
> 
>
http://codereview.chromium.org/8351052/diff/23002/content/browser/download/mo...
> content/browser/download/mock_download_manager.h:94: private:
> On 2011/11/10 17:19:09, John Abd-El-Malek wrote:
> > nit spacing
> 
> Done.

Powered by Google App Engine
This is Rietveld 408576698