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

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

Issue 2727143005: Change FindNextSliceToDownload() into FindSlicesToDownload() (Closed)
Patch Set: 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_job.h
diff --git a/content/browser/download/parallel_download_job.h b/content/browser/download/parallel_download_job.h
index e3914ed0cbb7fd000326aefc7d1140419eaab557..81659fc30a5a8b521aa1443eae8f2f13dea98d41 100644
--- a/content/browser/download/parallel_download_job.h
+++ b/content/browser/download/parallel_download_job.h
@@ -22,10 +22,12 @@ class CONTENT_EXPORT ParallelDownloadJob : public DownloadJobImpl {
public:
ParallelDownloadJob(
DownloadItemImpl* download_item,
- std::unique_ptr<DownloadRequestHandleInterface> request_handle);
+ std::unique_ptr<DownloadRequestHandleInterface> request_handle,
+ const DownloadCreateInfo& create_info);
~ParallelDownloadJob() override;
// DownloadUrlJob implementation.
+ void Start() override;
void Cancel(bool user_cancel) override;
void Pause() override;
void Resume(bool resume_request) override;
@@ -48,6 +50,10 @@ class CONTENT_EXPORT ParallelDownloadJob : public DownloadJobImpl {
// request.
int request_num_;
+ // Information about the initial request when download is started.
+ int64_t initial_request_offset_;
+ int64_t initial_request_length_;
+
// Subsequent tasks to send range requests.
WorkerList workers_;

Powered by Google App Engine
This is Rietveld 408576698