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

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

Issue 2730363004: Parallel Download finch config parameters on Chrome client. (Closed)
Patch Set: Fix for new code merged in. Created 3 years, 9 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 14fc0b437061844d9e89abbc45f957bfb07ceb41..85a5d0b8af8921cafd5ad7506d3e5dab75952866 100644
--- a/content/browser/download/parallel_download_utils.h
+++ b/content/browser/download/parallel_download_utils.h
@@ -17,6 +17,16 @@ namespace content {
CONTENT_EXPORT std::vector<DownloadItem::ReceivedSlice> FindSlicesToDownload(
const std::vector<DownloadItem::ReceivedSlice>& received_slices);
+// Finch configuration utilities.
+//
+// Get the minimum slice size to use parallel download from finch configuration.
+// A slice won't be further chunked into smaller slices if the size is less
+// than the minimum size.
+CONTENT_EXPORT int64_t GetMinSliceSizeConfig();
+
+// Get the request count for parallel download from finch configuration.
+CONTENT_EXPORT int GetParallelRequestCountConfig();
+
} // namespace content
#endif // CONTENT_BROWSER_DOWNLOAD_PARALLEL_DOWNLOAD_UTILS_H_
« no previous file with comments | « content/browser/download/parallel_download_job_unittest.cc ('k') | content/browser/download/parallel_download_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698