| 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/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 // Update the persistent store with our information. | 71 // Update the persistent store with our information. |
| 72 virtual void UpdatePersistence(DownloadItemImpl* download); | 72 virtual void UpdatePersistence(DownloadItemImpl* download); |
| 73 | 73 |
| 74 // Handle any delegate portions of a state change operation on the | 74 // Handle any delegate portions of a state change operation on the |
| 75 // DownloadItem. | 75 // DownloadItem. |
| 76 virtual void DownloadStopped(DownloadItemImpl* download); | 76 virtual void DownloadStopped(DownloadItemImpl* download); |
| 77 virtual void DownloadCompleted(DownloadItemImpl* download); | 77 virtual void DownloadCompleted(DownloadItemImpl* download); |
| 78 virtual void DownloadOpened(DownloadItemImpl* download); | 78 virtual void DownloadOpened(DownloadItemImpl* download); |
| 79 virtual void DownloadRemoved(DownloadItemImpl* download); | 79 virtual void DownloadRemoved(DownloadItemImpl* download); |
| 80 virtual void DownloadRenamedToIntermediateName( | 80 |
| 81 DownloadItemImpl* download); | 81 // Show the download in the browser. |
| 82 virtual void DownloadRenamedToFinalName(DownloadItemImpl* download); | 82 virtual void ShowDownloadInBrowser(DownloadItemImpl* download); |
| 83 | 83 |
| 84 // Assert consistent state for delgate object at various transitions. | 84 // Assert consistent state for delgate object at various transitions. |
| 85 virtual void AssertStateConsistent(DownloadItemImpl* download) const; | 85 virtual void AssertStateConsistent(DownloadItemImpl* download) const; |
| 86 | 86 |
| 87 private: | 87 private: |
| 88 // For "Outlives attached DownloadItemImpl" invariant assertion. | 88 // For "Outlives attached DownloadItemImpl" invariant assertion. |
| 89 int count_; | 89 int count_; |
| 90 | 90 |
| 91 DISALLOW_COPY_AND_ASSIGN(DownloadItemImplDelegate); | 91 DISALLOW_COPY_AND_ASSIGN(DownloadItemImplDelegate); |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 } // namespace content | 94 } // namespace content |
| 95 | 95 |
| 96 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_ | 96 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_ |
| OLD | NEW |