OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ |
6 #define CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ | 6 #define CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 DownloadItemGtk(DownloadShelfGtk* parent_shelf, | 36 DownloadItemGtk(DownloadShelfGtk* parent_shelf, |
37 BaseDownloadItemModel* download_item_model); | 37 BaseDownloadItemModel* download_item_model); |
38 | 38 |
39 // Destroys all widgets belonging to this DownloadItemGtk. | 39 // Destroys all widgets belonging to this DownloadItemGtk. |
40 ~DownloadItemGtk(); | 40 ~DownloadItemGtk(); |
41 | 41 |
42 // DownloadItem::Observer implementation. | 42 // DownloadItem::Observer implementation. |
43 virtual void OnDownloadUpdated(DownloadItem* download); | 43 virtual void OnDownloadUpdated(DownloadItem* download); |
44 virtual void OnDownloadFileCompleted(DownloadItem* download) { } | 44 virtual void OnDownloadFileCompleted(DownloadItem* download) { } |
45 virtual void OnDownloadOpened(DownloadItem* download) { } | 45 virtual void OnDownloadOpened(DownloadItem* download) { } |
| 46 virtual void OnDownloadInterrupted(DownloadItem* download) { } |
46 | 47 |
47 // AnimationDelegate implementation. | 48 // AnimationDelegate implementation. |
48 virtual void AnimationProgressed(const Animation* animation); | 49 virtual void AnimationProgressed(const Animation* animation); |
49 | 50 |
50 // Overridden from NotificationObserver: | 51 // Overridden from NotificationObserver: |
51 virtual void Observe(NotificationType type, | 52 virtual void Observe(NotificationType type, |
52 const NotificationSource& source, | 53 const NotificationSource& source, |
53 const NotificationDetails& details); | 54 const NotificationDetails& details); |
54 | 55 |
55 // Called when the icon manager has finished loading the icon. We take | 56 // Called when the icon manager has finished loading the icon. We take |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 NotificationRegistrar registrar_; | 209 NotificationRegistrar registrar_; |
209 | 210 |
210 // The time at which we were insantiated. | 211 // The time at which we were insantiated. |
211 base::Time creation_time_; | 212 base::Time creation_time_; |
212 | 213 |
213 // For canceling an in progress icon request. | 214 // For canceling an in progress icon request. |
214 CancelableRequestConsumerT<int, 0> icon_consumer_; | 215 CancelableRequestConsumerT<int, 0> icon_consumer_; |
215 }; | 216 }; |
216 | 217 |
217 #endif // CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ | 218 #endif // CHROME_BROWSER_GTK_DOWNLOAD_ITEM_GTK_H_ |
OLD | NEW |