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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 virtual const std::string& GetETag() const OVERRIDE; | 120 virtual const std::string& GetETag() const OVERRIDE; |
121 virtual bool IsSavePackageDownload() const OVERRIDE; | 121 virtual bool IsSavePackageDownload() const OVERRIDE; |
122 virtual const base::FilePath& GetFullPath() const OVERRIDE; | 122 virtual const base::FilePath& GetFullPath() const OVERRIDE; |
123 virtual const base::FilePath& GetTargetFilePath() const OVERRIDE; | 123 virtual const base::FilePath& GetTargetFilePath() const OVERRIDE; |
124 virtual const base::FilePath& GetForcedFilePath() const OVERRIDE; | 124 virtual const base::FilePath& GetForcedFilePath() const OVERRIDE; |
125 virtual base::FilePath GetFileNameToReportUser() const OVERRIDE; | 125 virtual base::FilePath GetFileNameToReportUser() const OVERRIDE; |
126 virtual TargetDisposition GetTargetDisposition() const OVERRIDE; | 126 virtual TargetDisposition GetTargetDisposition() const OVERRIDE; |
127 virtual const std::string& GetHash() const OVERRIDE; | 127 virtual const std::string& GetHash() const OVERRIDE; |
128 virtual const std::string& GetHashState() const OVERRIDE; | 128 virtual const std::string& GetHashState() const OVERRIDE; |
129 virtual bool GetFileExternallyRemoved() const OVERRIDE; | 129 virtual bool GetFileExternallyRemoved() const OVERRIDE; |
| 130 virtual void DeleteFile() OVERRIDE; |
130 virtual bool IsDangerous() const OVERRIDE; | 131 virtual bool IsDangerous() const OVERRIDE; |
131 virtual DownloadDangerType GetDangerType() const OVERRIDE; | 132 virtual DownloadDangerType GetDangerType() const OVERRIDE; |
132 virtual bool TimeRemaining(base::TimeDelta* remaining) const OVERRIDE; | 133 virtual bool TimeRemaining(base::TimeDelta* remaining) const OVERRIDE; |
133 virtual int64 CurrentSpeed() const OVERRIDE; | 134 virtual int64 CurrentSpeed() const OVERRIDE; |
134 virtual int PercentComplete() const OVERRIDE; | 135 virtual int PercentComplete() const OVERRIDE; |
135 virtual bool AllDataSaved() const OVERRIDE; | 136 virtual bool AllDataSaved() const OVERRIDE; |
136 virtual int64 GetTotalBytes() const OVERRIDE; | 137 virtual int64 GetTotalBytes() const OVERRIDE; |
137 virtual int64 GetReceivedBytes() const OVERRIDE; | 138 virtual int64 GetReceivedBytes() const OVERRIDE; |
138 virtual base::Time GetStartTime() const OVERRIDE; | 139 virtual base::Time GetStartTime() const OVERRIDE; |
139 virtual base::Time GetEndTime() const OVERRIDE; | 140 virtual base::Time GetEndTime() const OVERRIDE; |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 const net::BoundNetLog bound_net_log_; | 535 const net::BoundNetLog bound_net_log_; |
535 | 536 |
536 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; | 537 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; |
537 | 538 |
538 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); | 539 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); |
539 }; | 540 }; |
540 | 541 |
541 } // namespace content | 542 } // namespace content |
542 | 543 |
543 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 544 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
OLD | NEW |