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

Unified Diff: chrome/browser/ui/gtk/download/download_item_gtk.h

Issue 11441006: Convert IconManager to use new CancelableTaskTracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and fix mac compiling Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/download/download_item_gtk.h
diff --git a/chrome/browser/ui/gtk/download/download_item_gtk.h b/chrome/browser/ui/gtk/download/download_item_gtk.h
index 01505839d92ff00022831ba7a122228feff150ea..0efcab4319c9814d3d4e255b6934eb5e5733f89d 100644
--- a/chrome/browser/ui/gtk/download/download_item_gtk.h
+++ b/chrome/browser/ui/gtk/download/download_item_gtk.h
@@ -15,6 +15,7 @@
#include "base/time.h"
#include "base/timer.h"
#include "chrome/browser/icon_manager.h"
+#include "chrome/common/cancelable_task_tracker.h"
#include "content/public/browser/download_item.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -63,10 +64,8 @@ class DownloadItemGtk : public content::DownloadItem::Observer,
// Called when the icon manager has finished loading the icon. We take
// ownership of |icon_bitmap|.
- void OnLoadSmallIconComplete(IconManager::Handle handle,
- gfx::Image* image);
- void OnLoadLargeIconComplete(IconManager::Handle handle,
- gfx::Image* image);
+ void OnLoadSmallIconComplete(gfx::Image* image);
+ void OnLoadLargeIconComplete(gfx::Image* image);
// Returns the DownloadItem model object belonging to this item.
content::DownloadItem* get_download();
@@ -236,7 +235,7 @@ class DownloadItemGtk : public content::DownloadItem::Observer,
base::Time creation_time_;
// For canceling an in progress icon request.
- CancelableRequestConsumerT<int, 0> icon_consumer_;
+ CancelableTaskTracker cancelable_task_tracker_;
// Indicates when the download has completed, so we don't redo
// on-completion actions.
« no previous file with comments | « chrome/browser/ui/cocoa/download/download_item_mac.mm ('k') | chrome/browser/ui/gtk/download/download_item_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698