Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_DOWNLOAD_PARALLEL_DOWNLOAD_UTILS_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_PARALLEL_DOWNLOAD_UTILS_H_ |
| 6 #define CONTENT_BROWSER_DOWNLOAD_PARALLEL_DOWNLOAD_UTILS_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_PARALLEL_DOWNLOAD_UTILS_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "content/public/browser/download_item.h" | 11 #include "content/public/browser/download_item.h" |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 | 14 |
| 15 // Find the first gap in an array of received slices and return it as the next | 15 // Find the first gap in an array of received slices and return it as the next |
|
xingliu
2017/03/03 18:44:15
Comment for the function is out-dated.
This funct
qinmin
2017/03/03 19:32:35
Fixed the comment.
The return value is only used
xingliu
2017/03/03 21:37:44
sgtm on new download use scenario.
Question for r
qinmin
2017/03/03 22:20:10
Once all the parallel requests are kicked off, thi
| |
| 16 // slice to download. If not found, return a slice that is to the end of all | 16 // slice to download. If not found, return a slice that is to the end of all |
| 17 // slices. |received_slices| must be ordered by offsets. | 17 // slices. |received_slices| must be ordered by offsets. |
| 18 CONTENT_EXPORT DownloadItem::ReceivedSlice FindNextSliceToDownload( | 18 CONTENT_EXPORT std::vector<DownloadItem::ReceivedSlice> FindSlicesToDownload( |
| 19 const std::vector<DownloadItem::ReceivedSlice>& received_slices); | 19 const std::vector<DownloadItem::ReceivedSlice>& received_slices); |
| 20 | 20 |
| 21 } // namespace content | 21 } // namespace content |
| 22 | 22 |
| 23 #endif // CONTENT_BROWSER_DOWNLOAD_PARALLEL_DOWNLOAD_UTILS_H_ | 23 #endif // CONTENT_BROWSER_DOWNLOAD_PARALLEL_DOWNLOAD_UTILS_H_ |
| OLD | NEW |