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

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

Issue 2767593003: Handle early pause, cancel for parallel requests. (Closed)
Patch Set: Move is_canceled_ to subclass. 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 | « no previous file | content/browser/download/download_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_job.h
diff --git a/content/browser/download/download_job.h b/content/browser/download/download_job.h
index 14f8354881ab8aa59ff51240eb9cc0a24bbc3aba..25635309c94a5bd4eb9ccc3387dafcba0270ebd0 100644
--- a/content/browser/download/download_job.h
+++ b/content/browser/download/download_job.h
@@ -47,8 +47,9 @@ class CONTENT_EXPORT DownloadJob {
void StartDownload() const;
void Interrupt(DownloadInterruptReason reason);
- // Add a byte stream to the download sink.
- void AddByteStream(std::unique_ptr<ByteStreamReader> stream_reader,
+ // Add a byte stream to the download sink. Return false if we start to
+ // destroy download file.
+ bool AddByteStream(std::unique_ptr<ByteStreamReader> stream_reader,
int64_t offset,
int64_t length);
« no previous file with comments | « no previous file | content/browser/download/download_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698