Chromium Code Reviews
DescriptionIntroduce DownloadJob for DownloadItem refactoring.
1. DownloadJob is to delegate actual download logic from
DownloadItemImpl. Also it can be used
for parallel download feature, which is a DownloadJob manages
list of smaller tasks(pieces of parallel download segments).
2. DownloadJob base class provides an content internal interface.
The public interface of DownloadItem is intact.
3. Add unit test and mock structure for DownloadJob.
This CL only checks in the interface. Pulling out
DownloadItemImpl logic and subclass of DownloadJob will come
in later CL.
BUG=682350
Review-Url: https://codereview.chromium.org/2645133003
Cr-Commit-Position: refs/heads/master@{#446806}
Committed: https://chromium.googlesource.com/chromium/src/+/f61d39f8a151e11949079994228823ca9720cba1
Patch Set 1 #Patch Set 2 : Small tweak to inline getter. #
Total comments: 4
Patch Set 3 : Renamed function name. #Patch Set 4 : Renamed to OnSavingStarted aligned with other function names. #Patch Set 5 : Comments change. #
Total comments: 4
Patch Set 6 : Remove type field and change comments. #
Total comments: 4
Patch Set 7 : Minor changes. #
Total comments: 1
Patch Set 8 : Conditionally call to delegate. #
Messages
Total messages: 35 (20 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||