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

Unified Diff: content/browser/download/parallel_download_job.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
« no previous file with comments | « content/browser/download/download_job_factory.cc ('k') | content/browser/download/parallel_download_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/parallel_download_job.h
diff --git a/content/browser/download/parallel_download_job.h b/content/browser/download/parallel_download_job.h
index 22a6ce00d2e371bf7a6e3df9480d3728fbea42b2..8d02a7984fb2992982c724f9be56fb6586b11d17 100644
--- a/content/browser/download/parallel_download_job.h
+++ b/content/browser/download/parallel_download_job.h
@@ -41,7 +41,9 @@ class CONTENT_EXPORT ParallelDownloadJob : public DownloadJobImpl {
// the rest of the bytes starting from |bytes_received| will be equally
// distributed to each connection, including the original connection.
// the last connection may take additional bytes.
- void ForkRequestsForNewDownload(int64_t bytes_received, int64_t total_bytes);
+ void ForkRequestsForNewDownload(int64_t bytes_received,
+ int64_t total_bytes,
+ int request_count);
// Build parallel requests to download the remaining slices.
// TODO(qinmin): remove ForkRequestsForNewDownload() and move the logic into
@@ -51,10 +53,6 @@ class CONTENT_EXPORT ParallelDownloadJob : public DownloadJobImpl {
// Create one range request, virtual for testing.
virtual void CreateRequest(int64_t offset, int64_t length);
- // Number of concurrent requests for a new download, include the original
- // request.
- int request_num_;
-
// Information about the initial request when download is started.
int64_t initial_request_offset_;
int64_t initial_request_length_;
« no previous file with comments | « content/browser/download/download_job_factory.cc ('k') | content/browser/download/parallel_download_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698