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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 69 const RenameCompletionCallback& callback) = 0; | 69 const RenameCompletionCallback& callback) = 0; |
| 70 | 70 |
| 71 // Detach the file so it is not deleted on destruction. | 71 // Detach the file so it is not deleted on destruction. |
| 72 virtual void Detach() = 0; | 72 virtual void Detach() = 0; |
| 73 | 73 |
| 74 // Abort the download and automatically close the file. | 74 // Abort the download and automatically close the file. |
| 75 virtual void Cancel() = 0; | 75 virtual void Cancel() = 0; |
| 76 | 76 |
| 77 virtual const base::FilePath& FullPath() const = 0; | 77 virtual const base::FilePath& FullPath() const = 0; |
| 78 virtual bool InProgress() const = 0; | 78 virtual bool InProgress() const = 0; |
| 79 virtual void Pause() {} | |
|
xingliu
2017/03/17 00:02:15
The methods here are all pure virtual, can we also
David Trainor- moved to gerrit
2017/03/17 07:25:40
WasPaused?
qinmin
2017/03/17 19:52:54
Done. Changed to WasPaused() as suggested by David
qinmin
2017/03/17 19:52:54
Done.
| |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 } // namespace content | 82 } // namespace content |
| 82 | 83 |
| 83 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_H_ | 84 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_H_ |
| OLD | NEW |