summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/gtk/download/download_item_gtk.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/gtk/download/download_item_gtk.h')
-rw-r--r--chrome/browser/ui/gtk/download/download_item_gtk.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/ui/gtk/download/download_item_gtk.h b/chrome/browser/ui/gtk/download/download_item_gtk.h
index 0efcab4..e659a7d 100644
--- a/chrome/browser/ui/gtk/download/download_item_gtk.h
+++ b/chrome/browser/ui/gtk/download/download_item_gtk.h
@@ -14,6 +14,7 @@
#include "base/memory/weak_ptr.h"
#include "base/time.h"
#include "base/timer.h"
+#include "chrome/browser/download/download_item_model.h"
#include "chrome/browser/icon_manager.h"
#include "chrome/common/cancelable_task_tracker.h"
#include "content/public/browser/download_item.h"
@@ -24,7 +25,6 @@
#include "ui/base/gtk/gtk_signal.h"
#include "ui/base/gtk/owned_widget_gtk.h"
-class DownloadItemModel;
class DownloadShelfContextMenuGtk;
class DownloadShelfGtk;
class GtkThemeService;
@@ -44,7 +44,7 @@ class DownloadItemGtk : public content::DownloadItem::Observer,
public:
// DownloadItemGtk takes ownership of |download_item_model|.
DownloadItemGtk(DownloadShelfGtk* parent_shelf,
- DownloadItemModel* download_item_model);
+ content::DownloadItem* download_item);
// Destroys all widgets belonging to this DownloadItemGtk.
virtual ~DownloadItemGtk();
@@ -68,7 +68,7 @@ class DownloadItemGtk : public content::DownloadItem::Observer,
void OnLoadLargeIconComplete(gfx::Image* image);
// Returns the DownloadItem model object belonging to this item.
- content::DownloadItem* get_download();
+ content::DownloadItem* download() { return download_model_.download(); }
private:
friend class DownloadShelfContextMenuGtk;
@@ -199,7 +199,7 @@ class DownloadItemGtk : public content::DownloadItem::Observer,
scoped_ptr<DownloadShelfContextMenuGtk> menu_;
// The download item model we represent.
- scoped_ptr<DownloadItemModel> download_model_;
+ DownloadItemModel download_model_;
// The dangerous download dialog. This will be null for safe downloads.
GtkWidget* dangerous_prompt_;