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

Issue 2870753003: Add a Model to the download component. (Closed)

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

Description

Add a Model to the download component. Add a basic Model to the download component. This will have to be fleshed out more and looked at a bit more closely to handle persistence in a follow up CL. This is adding basic support for the state machine and scheduler to work off of. BUG=717180 Review-Url: https://codereview.chromium.org/2870753003 Cr-Commit-Position: refs/heads/master@{#471866} Committed: https://chromium.googlesource.com/chromium/src/+/61cce8bddecd5de53945f16fc2093340eb60375a

Patch Set 1 #

Total comments: 36

Patch Set 2 : Addressed comments and restructured tests because of OnceCallback #

Patch Set 3 : Fixed small issues #

Patch Set 4 : Rebased #

Patch Set 5 : Fix analyze error #

Patch Set 6 : Renamed test base class #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1104 lines, -19 lines) Patch
M components/download/internal/BUILD.gn View 1 2 3 4 chunks +11 lines, -1 line 0 comments Download
D components/download/internal/download_service_impl_unittest.cc View 1 chunk +0 lines, -11 lines 0 comments Download
A components/download/internal/entry.h View 1 1 chunk +68 lines, -0 lines 0 comments Download
A components/download/internal/entry.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A components/download/internal/model.h View 1 1 chunk +98 lines, -0 lines 0 comments Download
A components/download/internal/model_impl.h View 1 2 1 chunk +73 lines, -0 lines 0 comments Download
A components/download/internal/model_impl.cc View 1 2 1 chunk +130 lines, -0 lines 0 comments Download
A components/download/internal/model_impl_unittest.cc View 1 2 3 4 5 1 chunk +274 lines, -0 lines 0 comments Download
A components/download/internal/noop_store.h View 1 1 chunk +46 lines, -0 lines 0 comments Download
A components/download/internal/noop_store.cc View 1 1 chunk +53 lines, -0 lines 0 comments Download
A components/download/internal/store.h View 1 1 chunk +54 lines, -0 lines 0 comments Download
A components/download/internal/test/BUILD.gn View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
A components/download/internal/test/entry_utils.h View 1 1 chunk +27 lines, -0 lines 0 comments Download
A components/download/internal/test/entry_utils.cc View 1 1 chunk +35 lines, -0 lines 0 comments Download
A components/download/internal/test/mock_model_client.h View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
A components/download/internal/test/mock_model_client.cc View 1 1 chunk +14 lines, -0 lines 0 comments Download
A components/download/internal/test/test_store.h View 1 1 chunk +68 lines, -0 lines 0 comments Download
A components/download/internal/test/test_store.cc View 1 1 chunk +73 lines, -0 lines 0 comments Download
M components/download/public/clients.h View 1 1 chunk +8 lines, -3 lines 0 comments Download
M components/download/public/download_params.h View 1 chunk +2 lines, -2 lines 0 comments Download
M components/download/public/download_params.cc View 1 1 chunk +1 line, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 31 (22 generated)
David Trainor- moved to gerrit
ptal! Peter as fyi, feel free to review as well if you have cycles. I'll ...
3 years, 7 months ago (2017-05-08 22:47:10 UTC) #2
xingliu
In general looks good. https://codereview.chromium.org/2870753003/diff/1/components/download/internal/entry.h File components/download/internal/entry.h (right): https://codereview.chromium.org/2870753003/diff/1/components/download/internal/entry.h#newcode5 components/download/internal/entry.h:5: #ifndef COMPONENTS_DOWNLOAD_INTERNAL_DOWNLOAD_ENTRY_H_ INTERNAL_ENTRY_H_. https://codereview.chromium.org/2870753003/diff/1/components/download/internal/entry.h#newcode10 components/download/internal/entry.h:10: ...
3 years, 7 months ago (2017-05-09 06:11:42 UTC) #3
David Trainor- moved to gerrit
https://codereview.chromium.org/2870753003/diff/1/components/download/internal/entry.h File components/download/internal/entry.h (right): https://codereview.chromium.org/2870753003/diff/1/components/download/internal/entry.h#newcode40 components/download/internal/entry.h:40: DUMP_STATS = 4, On 2017/05/09 06:11:41, xingliu wrote: > ...
3 years, 7 months ago (2017-05-09 15:59:27 UTC) #4
David Trainor- moved to gerrit
moving peter@ to reviewer from cc
3 years, 7 months ago (2017-05-09 15:59:58 UTC) #6
Peter Beverloo
lgtm I like how only meta data will be stored, avoiding duplication with the downloads ...
3 years, 7 months ago (2017-05-10 12:44:46 UTC) #7
xingliu
lgtm.
3 years, 7 months ago (2017-05-10 17:00:39 UTC) #8
David Trainor- moved to gerrit
https://codereview.chromium.org/2870753003/diff/1/components/download/internal/entry.cc File components/download/internal/entry.cc (right): https://codereview.chromium.org/2870753003/diff/1/components/download/internal/entry.cc#newcode9 components/download/internal/entry.cc:9: Entry::Entry() : client(DownloadClient::INVALID), state(State::NEW) {} On 2017/05/10 12:44:44, Peter ...
3 years, 7 months ago (2017-05-15 15:59:52 UTC) #21
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/2870753003/100001
3 years, 7 months ago (2017-05-15 18:11:34 UTC) #28
commit-bot: I haz the power
3 years, 7 months ago (2017-05-15 19:34:49 UTC) #31
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/61cce8bddecd5de53945f16fc209...

Powered by Google App Engine
This is Rietveld 408576698