Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Side by Side Diff: chrome/browser/ui/gtk/download/download_item_gtk.h

Issue 10665049: Make DownloadHistory observe manager, items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 public: 43 public:
44 // DownloadItemGtk takes ownership of |download_item_model|. 44 // DownloadItemGtk takes ownership of |download_item_model|.
45 DownloadItemGtk(DownloadShelfGtk* parent_shelf, 45 DownloadItemGtk(DownloadShelfGtk* parent_shelf,
46 BaseDownloadItemModel* download_item_model); 46 BaseDownloadItemModel* download_item_model);
47 47
48 // Destroys all widgets belonging to this DownloadItemGtk. 48 // Destroys all widgets belonging to this DownloadItemGtk.
49 virtual ~DownloadItemGtk(); 49 virtual ~DownloadItemGtk();
50 50
51 // content::DownloadItem::Observer implementation. 51 // content::DownloadItem::Observer implementation.
52 virtual void OnDownloadUpdated(content::DownloadItem* download) OVERRIDE; 52 virtual void OnDownloadUpdated(content::DownloadItem* download) OVERRIDE;
53 virtual void OnDownloadDestroyed(content::DownloadItem* download) OVERRIDE;
53 virtual void OnDownloadOpened(content::DownloadItem* download) OVERRIDE; 54 virtual void OnDownloadOpened(content::DownloadItem* download) OVERRIDE;
54 55
55 // ui::AnimationDelegate implementation. 56 // ui::AnimationDelegate implementation.
56 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; 57 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
57 58
58 // Overridden from content::NotificationObserver: 59 // Overridden from content::NotificationObserver:
59 virtual void Observe(int type, 60 virtual void Observe(int type,
60 const content::NotificationSource& source, 61 const content::NotificationSource& source,
61 const content::NotificationDetails& details) OVERRIDE; 62 const content::NotificationDetails& details) OVERRIDE;
62 63
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 244
244 // Whether we are currently disabled as part of opening the downloaded file. 245 // Whether we are currently disabled as part of opening the downloaded file.
245 bool disabled_while_opening_; 246 bool disabled_while_opening_;
246 247
247 // Method factory used to delay reenabling of the item when opening the 248 // Method factory used to delay reenabling of the item when opening the
248 // downloaded file. 249 // downloaded file.
249 base::WeakPtrFactory<DownloadItemGtk> weak_ptr_factory_; 250 base::WeakPtrFactory<DownloadItemGtk> weak_ptr_factory_;
250 }; 251 };
251 252
252 #endif // CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_ 253 #endif // CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_ITEM_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698