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

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

Issue 2794683002: set content length limit if half open range request fails (Closed)
Patch Set: 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
Index: content/browser/download/download_file.h
diff --git a/content/browser/download/download_file.h b/content/browser/download/download_file.h
index 33b444e68c27b9830a1b172d03550dafdda525fb..d02147ae040fd960bc5b24c0e1c4ace590c7a110 100644
--- a/content/browser/download/download_file.h
+++ b/content/browser/download/download_file.h
@@ -75,6 +75,9 @@ class CONTENT_EXPORT DownloadFile {
// Abort the download and automatically close the file.
virtual void Cancel() = 0;
+ // Sets the length limit of the file.
+ virtual void SetContentLengthLimit(int64_t limit) = 0;
+
virtual const base::FilePath& FullPath() const = 0;
virtual bool InProgress() const = 0;
virtual void WasPaused() = 0;
« no previous file with comments | « no previous file | content/browser/download/download_file_impl.h » ('j') | content/browser/download/download_file_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698