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

Issue 2895953004: Add initial Controller to DownloadService (Closed)

Created:
3 years, 7 months ago by David Trainor- moved to gerrit
Modified:
3 years, 6 months ago
CC:
chromium-reviews, David Trainor- moved to gerrit
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add initial Controller to DownloadService Add the basic structure for a Controller, which is responsible for gluing the Model and DownloadDriver in DownloadService. Initial support in this patch includes: - Successful initialization path of Model and DownloadDriver. - All possible paths for supporting StartDownload (minus actually sending the request to the DownloadDriver). BUG=722705 Review-Url: https://codereview.chromium.org/2895953004 Cr-Commit-Position: refs/heads/master@{#475982} Committed: https://chromium.googlesource.com/chromium/src/+/7f99e4119871345cfbdfb5553b218c7e5464ad42

Patch Set 1 #

Patch Set 2 : Added tests and cleaned up #

Patch Set 3 : Moved stats out #

Total comments: 10

Patch Set 4 : Addressed comments #

Patch Set 5 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1615 lines, -78 lines) Patch
M chrome/browser/download/download_service_factory.cc View 3 chunks +5 lines, -2 lines 0 comments Download
M components/download/internal/BUILD.gn View 1 2 3 4 4 chunks +14 lines, -0 lines 0 comments Download
A components/download/internal/client_set.h View 1 1 chunk +35 lines, -0 lines 0 comments Download
A components/download/internal/client_set.cc View 1 chunk +30 lines, -0 lines 0 comments Download
A components/download/internal/client_set_unittest.cc View 1 1 chunk +43 lines, -0 lines 0 comments Download
M components/download/internal/config.h View 1 chunk +4 lines, -4 lines 0 comments Download
M components/download/internal/config.cc View 1 2 3 3 chunks +17 lines, -16 lines 0 comments Download
A components/download/internal/controller.h View 1 2 1 chunk +63 lines, -0 lines 0 comments Download
A components/download/internal/controller_impl.h View 1 2 3 1 chunk +119 lines, -0 lines 0 comments Download
A components/download/internal/controller_impl.cc View 1 2 3 1 chunk +267 lines, -0 lines 0 comments Download
A components/download/internal/controller_impl_unittest.cc View 1 2 1 chunk +356 lines, -0 lines 0 comments Download
M components/download/internal/download_driver.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M components/download/internal/download_service_impl.h View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M components/download/internal/download_service_impl.cc View 1 2 3 4 1 chunk +76 lines, -7 lines 0 comments Download
A components/download/internal/download_service_impl_unittest.cc View 1 chunk +29 lines, -0 lines 0 comments Download
M components/download/internal/download_store.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M components/download/internal/entry.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/download/internal/entry.cc View 1 chunk +7 lines, -0 lines 0 comments Download
A components/download/internal/entry_utils.h View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
A components/download/internal/entry_utils.cc View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
A components/download/internal/entry_utils_unittest.cc View 1 2 3 1 chunk +65 lines, -0 lines 0 comments Download
M components/download/internal/model.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M components/download/internal/model_impl.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M components/download/internal/model_impl.cc View 1 2 3 4 4 chunks +20 lines, -8 lines 0 comments Download
M components/download/internal/model_impl_unittest.cc View 1 2 3 4 11 chunks +21 lines, -21 lines 0 comments Download
A components/download/internal/startup_status.h View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
A components/download/internal/startup_status.cc View 1 1 chunk +21 lines, -0 lines 0 comments Download
A components/download/internal/stats.h View 1 2 1 chunk +81 lines, -0 lines 0 comments Download
A components/download/internal/stats.cc View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
M components/download/internal/test/BUILD.gn View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
A components/download/internal/test/empty_client.h View 1 chunk +42 lines, -0 lines 0 comments Download
A components/download/internal/test/empty_client.cc View 1 chunk +34 lines, -0 lines 0 comments Download
A components/download/internal/test/mock_client.h View 1 chunk +41 lines, -0 lines 0 comments Download
A + components/download/internal/test/mock_client.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M components/download/internal/test/mock_model_client.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/download/internal/test/test_download_driver.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M components/download/internal/test/test_download_driver.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M components/download/public/clients.h View 2 chunks +7 lines, -0 lines 0 comments Download
M components/download/public/download_params.h View 2 chunks +16 lines, -3 lines 0 comments Download
M components/download/public/download_service.h View 1 2 4 chunks +27 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 25 (17 generated)
David Trainor- moved to gerrit
ptal thanks!
3 years, 7 months ago (2017-05-24 23:54:50 UTC) #3
xingliu
lgtm with some nits. https://codereview.chromium.org/2895953004/diff/40001/components/download/internal/config.h File components/download/internal/config.h (right): https://codereview.chromium.org/2895953004/diff/40001/components/download/internal/config.h#newcode42 components/download/internal/config.h:42: uint32_t max_concurrent_downloads; nit: Maybe also ...
3 years, 7 months ago (2017-05-27 00:25:32 UTC) #4
David Trainor- moved to gerrit
+peter@
3 years, 6 months ago (2017-05-30 16:50:15 UTC) #6
David Trainor- moved to gerrit
https://codereview.chromium.org/2895953004/diff/40001/components/download/internal/config.h File components/download/internal/config.h (right): https://codereview.chromium.org/2895953004/diff/40001/components/download/internal/config.h#newcode42 components/download/internal/config.h:42: uint32_t max_concurrent_downloads; On 2017/05/27 00:25:32, xingliu wrote: > nit: ...
3 years, 6 months ago (2017-05-30 18:55:24 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2895953004/60001
3 years, 6 months ago (2017-05-31 16:17:09 UTC) #14
David Trainor- moved to gerrit
submitting to unblock. happy to address comments in follow up.
3 years, 6 months ago (2017-05-31 16:18:31 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2895953004/80001
3 years, 6 months ago (2017-05-31 18:28:17 UTC) #22
commit-bot: I haz the power
3 years, 6 months ago (2017-05-31 19:35:10 UTC) #25
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/7f99e4119871345cfbdfb5553b21...

Powered by Google App Engine
This is Rietveld 408576698