Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_H_ |
| 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 68 const GURL& source_url, | 68 const GURL& source_url, |
| 69 const GURL& referrer_url, | 69 const GURL& referrer_url, |
| 70 const RenameCompletionCallback& callback) = 0; | 70 const RenameCompletionCallback& callback) = 0; |
| 71 | 71 |
| 72 // Detach the file so it is not deleted on destruction. | 72 // Detach the file so it is not deleted on destruction. |
| 73 virtual void Detach() = 0; | 73 virtual void Detach() = 0; |
| 74 | 74 |
| 75 // Abort the download and automatically close the file. | 75 // Abort the download and automatically close the file. |
| 76 virtual void Cancel() = 0; | 76 virtual void Cancel() = 0; |
| 77 | 77 |
| 78 // Sets the potential file length. This can be called multiple times as | |
|
David Trainor- moved to gerrit
2017/04/03 17:47:31
This comment seems really different from what the
qinmin
2017/04/03 18:33:11
Changed the comment for describing this call and h
| |
| 79 // each parallel request is processing the stream independently. |length| | |
| 80 // may not be the actual file length, but it should not be smaller than | |
| 81 // it. | |
| 82 virtual void SetPotentialFileLength(int64_t length) = 0; | |
| 83 | |
| 78 virtual const base::FilePath& FullPath() const = 0; | 84 virtual const base::FilePath& FullPath() const = 0; |
| 79 virtual bool InProgress() const = 0; | 85 virtual bool InProgress() const = 0; |
| 80 virtual void WasPaused() = 0; | 86 virtual void WasPaused() = 0; |
| 81 }; | 87 }; |
| 82 | 88 |
| 83 } // namespace content | 89 } // namespace content |
| 84 | 90 |
| 85 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_H_ | 91 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_H_ |
| OLD | NEW |