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

Unified Diff: content/browser/download/parallel_download_utils.h

Issue 2727143005: Change FindNextSliceToDownload() into FindSlicesToDownload() (Closed)
Patch Set: adding TODO and comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/download/parallel_download_utils.h
diff --git a/content/browser/download/parallel_download_utils.h b/content/browser/download/parallel_download_utils.h
index 62d732ef92e05ac17b421658a6c3355e8329266c..14fc0b437061844d9e89abbc45f957bfb07ceb41 100644
--- a/content/browser/download/parallel_download_utils.h
+++ b/content/browser/download/parallel_download_utils.h
@@ -12,10 +12,9 @@
namespace content {
-// Find the first gap in an array of received slices and return it as the next
-// slice to download. If not found, return a slice that is to the end of all
-// slices. |received_slices| must be ordered by offsets.
-CONTENT_EXPORT DownloadItem::ReceivedSlice FindNextSliceToDownload(
+// Given an array of slices that are received, returns an array of slices to
+// download. |received_slices| must be ordered by offsets.
+CONTENT_EXPORT std::vector<DownloadItem::ReceivedSlice> FindSlicesToDownload(
const std::vector<DownloadItem::ReceivedSlice>& received_slices);
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698