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

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

Issue 2742093002: Glue parallel download job and download file together. (Closed)
Patch Set: Rebase, and adjust unittests with recent landed CLs. 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_create_info.cc ('k') | content/browser/download/download_file_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_file.h
diff --git a/content/browser/download/download_file.h b/content/browser/download/download_file.h
index c155cb216ee8c8385b094ad9d0156afeb67c9119..d19b3c38a9520135041f6d24ce206cb3da52e9c4 100644
--- a/content/browser/download/download_file.h
+++ b/content/browser/download/download_file.h
@@ -51,7 +51,8 @@ class CONTENT_EXPORT DownloadFile {
// Add a byte stream reader to write into a slice of the file, used for
// parallel download. Called on the file thread.
virtual void AddByteStream(std::unique_ptr<ByteStreamReader> stream_reader,
- int64_t offset) = 0;
+ int64_t offset,
+ int64_t length) = 0;
// Rename the download file to |full_path|. If that file exists
// |full_path| will be uniquified by suffixing " (<number>)" to the
« no previous file with comments | « content/browser/download/download_create_info.cc ('k') | content/browser/download/download_file_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698