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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // DownloadItem | 89 // DownloadItem |
90 virtual void AddObserver(DownloadItem::Observer* observer) OVERRIDE; | 90 virtual void AddObserver(DownloadItem::Observer* observer) OVERRIDE; |
91 virtual void RemoveObserver(DownloadItem::Observer* observer) OVERRIDE; | 91 virtual void RemoveObserver(DownloadItem::Observer* observer) OVERRIDE; |
92 virtual void UpdateObservers() OVERRIDE; | 92 virtual void UpdateObservers() OVERRIDE; |
93 virtual void DangerousDownloadValidated() OVERRIDE; | 93 virtual void DangerousDownloadValidated() OVERRIDE; |
94 virtual void Pause() OVERRIDE; | 94 virtual void Pause() OVERRIDE; |
95 virtual void Resume() OVERRIDE; | 95 virtual void Resume() OVERRIDE; |
96 virtual void ResumeInterruptedDownload() OVERRIDE; | 96 virtual void ResumeInterruptedDownload() OVERRIDE; |
97 virtual void Cancel(bool user_cancel) OVERRIDE; | 97 virtual void Cancel(bool user_cancel) OVERRIDE; |
98 virtual void Delete(DeleteReason reason) OVERRIDE; | 98 virtual void Delete(DeleteReason reason) OVERRIDE; |
| 99 virtual void AcquireFileAndDeleteDownload( |
| 100 const AcquireFileCallback& callback) OVERRIDE; |
99 virtual void Remove() OVERRIDE; | 101 virtual void Remove() OVERRIDE; |
100 virtual void OpenDownload() OVERRIDE; | 102 virtual void OpenDownload() OVERRIDE; |
101 virtual void ShowDownloadInShell() OVERRIDE; | 103 virtual void ShowDownloadInShell() OVERRIDE; |
102 virtual int32 GetId() const OVERRIDE; | 104 virtual int32 GetId() const OVERRIDE; |
103 virtual DownloadId GetGlobalId() const OVERRIDE; | 105 virtual DownloadId GetGlobalId() const OVERRIDE; |
104 virtual DownloadState GetState() const OVERRIDE; | 106 virtual DownloadState GetState() const OVERRIDE; |
105 virtual DownloadInterruptReason GetLastReason() const OVERRIDE; | 107 virtual DownloadInterruptReason GetLastReason() const OVERRIDE; |
106 virtual bool IsPaused() const OVERRIDE; | 108 virtual bool IsPaused() const OVERRIDE; |
107 virtual bool IsTemporary() const OVERRIDE; | 109 virtual bool IsTemporary() const OVERRIDE; |
108 virtual bool IsPartialDownload() const OVERRIDE; | 110 virtual bool IsPartialDownload() const OVERRIDE; |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 const net::BoundNetLog bound_net_log_; | 492 const net::BoundNetLog bound_net_log_; |
491 | 493 |
492 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; | 494 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; |
493 | 495 |
494 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); | 496 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); |
495 }; | 497 }; |
496 | 498 |
497 } // namespace content | 499 } // namespace content |
498 | 500 |
499 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 501 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
OLD | NEW |