| 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_ITEM_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
| 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 std::string GetOriginalMimeType() const override; | 130 std::string GetOriginalMimeType() const override; |
| 131 std::string GetRemoteAddress() const override; | 131 std::string GetRemoteAddress() const override; |
| 132 bool HasUserGesture() const override; | 132 bool HasUserGesture() const override; |
| 133 ui::PageTransition GetTransitionType() const override; | 133 ui::PageTransition GetTransitionType() const override; |
| 134 const std::string& GetLastModifiedTime() const override; | 134 const std::string& GetLastModifiedTime() const override; |
| 135 const std::string& GetETag() const override; | 135 const std::string& GetETag() const override; |
| 136 bool IsSavePackageDownload() const override; | 136 bool IsSavePackageDownload() const override; |
| 137 const base::FilePath& GetFullPath() const override; | 137 const base::FilePath& GetFullPath() const override; |
| 138 const base::FilePath& GetTargetFilePath() const override; | 138 const base::FilePath& GetTargetFilePath() const override; |
| 139 const base::FilePath& GetForcedFilePath() const override; | 139 const base::FilePath& GetForcedFilePath() const override; |
| 140 base::FilePath GetLastUsedTargetPath() const override; |
| 140 base::FilePath GetFileNameToReportUser() const override; | 141 base::FilePath GetFileNameToReportUser() const override; |
| 141 TargetDisposition GetTargetDisposition() const override; | 142 TargetDisposition GetTargetDisposition() const override; |
| 142 const std::string& GetHash() const override; | 143 const std::string& GetHash() const override; |
| 143 bool GetFileExternallyRemoved() const override; | 144 bool GetFileExternallyRemoved() const override; |
| 144 void DeleteFile(const base::Callback<void(bool)>& callback) override; | 145 void DeleteFile(const base::Callback<void(bool)>& callback) override; |
| 145 bool IsDangerous() const override; | 146 bool IsDangerous() const override; |
| 146 DownloadDangerType GetDangerType() const override; | 147 DownloadDangerType GetDangerType() const override; |
| 147 bool TimeRemaining(base::TimeDelta* remaining) const override; | 148 bool TimeRemaining(base::TimeDelta* remaining) const override; |
| 148 int64_t CurrentSpeed() const override; | 149 int64_t CurrentSpeed() const override; |
| 149 int PercentComplete() const override; | 150 int PercentComplete() const override; |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 const net::NetLogWithSource net_log_; | 679 const net::NetLogWithSource net_log_; |
| 679 | 680 |
| 680 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; | 681 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; |
| 681 | 682 |
| 682 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); | 683 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); |
| 683 }; | 684 }; |
| 684 | 685 |
| 685 } // namespace content | 686 } // namespace content |
| 686 | 687 |
| 687 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 688 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
| OLD | NEW |