| 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..cea23175752d648403c4a49729da452ced714430 100644
|
| --- a/content/browser/download/download_file.h
|
| +++ b/content/browser/download/download_file.h
|
| @@ -75,6 +75,14 @@ class CONTENT_EXPORT DownloadFile {
|
| // Abort the download and automatically close the file.
|
| virtual void Cancel() = 0;
|
|
|
| + // Sets the potential file length. This is called when a half-open range
|
| + // request fails or completes successfully. If the range request fails, the
|
| + // file length should not be larger than the request's offset. If the range
|
| + // request completes successfully, the file length can be determined by
|
| + // the request offset and the bytes received. So |length| may not be the
|
| + // actual file length, but it should not be smaller than it.
|
| + virtual void SetPotentialFileLength(int64_t length) = 0;
|
| +
|
| virtual const base::FilePath& FullPath() const = 0;
|
| virtual bool InProgress() const = 0;
|
| virtual void WasPaused() = 0;
|
|
|