| 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_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 | 10 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 virtual DownloadFileManager* GetDownloadFileManager(); | 52 virtual DownloadFileManager* GetDownloadFileManager(); |
| 53 | 53 |
| 54 // Handle any delegate portions of a state change operation on the | 54 // Handle any delegate portions of a state change operation on the |
| 55 // DownloadItem. | 55 // DownloadItem. |
| 56 virtual void DownloadStopped(DownloadItemImpl* download); | 56 virtual void DownloadStopped(DownloadItemImpl* download); |
| 57 virtual void DownloadCompleted(DownloadItemImpl* download); | 57 virtual void DownloadCompleted(DownloadItemImpl* download); |
| 58 virtual void DownloadOpened(DownloadItemImpl* download); | 58 virtual void DownloadOpened(DownloadItemImpl* download); |
| 59 virtual void DownloadRemoved(DownloadItemImpl* download); | 59 virtual void DownloadRemoved(DownloadItemImpl* download); |
| 60 virtual void DownloadRenamedToIntermediateName( | 60 virtual void DownloadRenamedToIntermediateName( |
| 61 DownloadItemImpl* download); | 61 DownloadItemImpl* download); |
| 62 virtual void DownloadRenamedToFinalName(DownloadItemImpl* download); | |
| 63 | 62 |
| 64 // Assert consistent state for delgate object at various transitions. | 63 // Assert consistent state for delgate object at various transitions. |
| 65 virtual void AssertStateConsistent(DownloadItemImpl* download) const; | 64 virtual void AssertStateConsistent(DownloadItemImpl* download) const; |
| 66 | 65 |
| 67 private: | 66 private: |
| 68 // For "Outlives attached DownloadItemImpl" invariant assertion. | 67 // For "Outlives attached DownloadItemImpl" invariant assertion. |
| 69 int count_; | 68 int count_; |
| 70 | 69 |
| 71 DISALLOW_COPY_AND_ASSIGN(DownloadItemImplDelegate); | 70 DISALLOW_COPY_AND_ASSIGN(DownloadItemImplDelegate); |
| 72 }; | 71 }; |
| 73 | 72 |
| 74 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_ | 73 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_ |
| OLD | NEW |