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/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // Opens the file associated with this download. | 80 // Opens the file associated with this download. |
81 virtual void OpenDownload(DownloadItemImpl* download); | 81 virtual void OpenDownload(DownloadItemImpl* download); |
82 | 82 |
83 // Shows the download via the OS shell. | 83 // Shows the download via the OS shell. |
84 virtual void ShowDownloadInShell(DownloadItemImpl* download); | 84 virtual void ShowDownloadInShell(DownloadItemImpl* download); |
85 | 85 |
86 // Handle any delegate portions of a state change operation on the | 86 // Handle any delegate portions of a state change operation on the |
87 // DownloadItem. | 87 // DownloadItem. |
88 virtual void DownloadRemoved(DownloadItemImpl* download); | 88 virtual void DownloadRemoved(DownloadItemImpl* download); |
89 | 89 |
90 // Show the download in the browser. | |
91 virtual void ShowDownloadInBrowser(DownloadItemImpl* download); | |
92 | |
93 // Assert consistent state for delgate object at various transitions. | 90 // Assert consistent state for delgate object at various transitions. |
94 virtual void AssertStateConsistent(DownloadItemImpl* download) const; | 91 virtual void AssertStateConsistent(DownloadItemImpl* download) const; |
95 | 92 |
96 private: | 93 private: |
97 // For "Outlives attached DownloadItemImpl" invariant assertion. | 94 // For "Outlives attached DownloadItemImpl" invariant assertion. |
98 int count_; | 95 int count_; |
99 | 96 |
100 DISALLOW_COPY_AND_ASSIGN(DownloadItemImplDelegate); | 97 DISALLOW_COPY_AND_ASSIGN(DownloadItemImplDelegate); |
101 }; | 98 }; |
102 | 99 |
103 } // namespace content | 100 } // namespace content |
104 | 101 |
105 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_ | 102 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_ |
OLD | NEW |