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

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

Issue 2806923002: Don't create parallel request if download is about to complete (Closed)
Patch Set: add UMA and finch Created 3 years, 8 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 2fdbed99f559f76ea2bdd19c484604ca22673e39..3e334f7da764e2878762d06bec5bccecd99ff430 100644
--- a/content/browser/download/parallel_download_utils.h
+++ b/content/browser/download/parallel_download_utils.h
@@ -51,6 +51,9 @@ CONTENT_EXPORT int GetParallelRequestCountConfig();
// request is handled.
CONTENT_EXPORT base::TimeDelta GetParallelRequestDelayConfig();
+// Get the required remaining time before creating parallel requests.
+CONTENT_EXPORT base::TimeDelta GetParallelRequestRemainingTimeConfig();
+
// Print the states of received slices for debugging.
CONTENT_EXPORT void DebugSlicesInfo(const DownloadItem::ReceivedSlices& slices);
« 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