| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 const std::string& mime_type, | 68 const std::string& mime_type, |
| 69 const net::BoundNetLog& bound_net_log); | 69 const net::BoundNetLog& bound_net_log); |
| 70 | 70 |
| 71 virtual ~DownloadItemImpl(); | 71 virtual ~DownloadItemImpl(); |
| 72 | 72 |
| 73 // DownloadItem | 73 // DownloadItem |
| 74 virtual void AddObserver(DownloadItem::Observer* observer) OVERRIDE; | 74 virtual void AddObserver(DownloadItem::Observer* observer) OVERRIDE; |
| 75 virtual void RemoveObserver(DownloadItem::Observer* observer) OVERRIDE; | 75 virtual void RemoveObserver(DownloadItem::Observer* observer) OVERRIDE; |
| 76 virtual void UpdateObservers() OVERRIDE; | 76 virtual void UpdateObservers() OVERRIDE; |
| 77 virtual void DangerousDownloadValidated() OVERRIDE; | 77 virtual void DangerousDownloadValidated() OVERRIDE; |
| 78 virtual void TogglePause() OVERRIDE; | 78 virtual void Pause() OVERRIDE; |
| 79 virtual void Resume() OVERRIDE; |
| 79 virtual void Cancel(bool user_cancel) OVERRIDE; | 80 virtual void Cancel(bool user_cancel) OVERRIDE; |
| 80 virtual void Delete(DeleteReason reason) OVERRIDE; | 81 virtual void Delete(DeleteReason reason) OVERRIDE; |
| 81 virtual void Remove() OVERRIDE; | 82 virtual void Remove() OVERRIDE; |
| 82 virtual void OpenDownload() OVERRIDE; | 83 virtual void OpenDownload() OVERRIDE; |
| 83 virtual void ShowDownloadInShell() OVERRIDE; | 84 virtual void ShowDownloadInShell() OVERRIDE; |
| 84 virtual int32 GetId() const OVERRIDE; | 85 virtual int32 GetId() const OVERRIDE; |
| 85 virtual DownloadId GetGlobalId() const OVERRIDE; | 86 virtual DownloadId GetGlobalId() const OVERRIDE; |
| 86 virtual DownloadState GetState() const OVERRIDE; | 87 virtual DownloadState GetState() const OVERRIDE; |
| 87 virtual DownloadInterruptReason GetLastReason() const OVERRIDE; | 88 virtual DownloadInterruptReason GetLastReason() const OVERRIDE; |
| 88 virtual bool IsPaused() const OVERRIDE; | 89 virtual bool IsPaused() const OVERRIDE; |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 const net::BoundNetLog bound_net_log_; | 469 const net::BoundNetLog bound_net_log_; |
| 469 | 470 |
| 470 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; | 471 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; |
| 471 | 472 |
| 472 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); | 473 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); |
| 473 }; | 474 }; |
| 474 | 475 |
| 475 } // namespace content | 476 } // namespace content |
| 476 | 477 |
| 477 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 478 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
| OLD | NEW |