Index: chrome/browser/download/download_shelf_context_menu.h |
=================================================================== |
--- chrome/browser/download/download_shelf_context_menu.h (revision 138377) |
+++ chrome/browser/download/download_shelf_context_menu.h (working copy) |
@@ -16,6 +16,7 @@ |
namespace content { |
class DownloadItem; |
+class PageNavigator; |
} |
// This class is responsible for the download shelf context menu. Platform |
@@ -40,7 +41,8 @@ |
void set_download_item(content::DownloadItem* item) { download_item_ = item; } |
protected: |
- explicit DownloadShelfContextMenu(BaseDownloadItemModel* download_model); |
+ DownloadShelfContextMenu(BaseDownloadItemModel* download_model, |
+ content::PageNavigator* navigator); |
// Returns the correct menu model depending whether the download item is |
// completed or not. |
@@ -73,6 +75,9 @@ |
// Information source. |
content::DownloadItem* download_item_; |
+ // Used to open tabs. |
+ content::PageNavigator* navigator_; |
+ |
DISALLOW_COPY_AND_ASSIGN(DownloadShelfContextMenu); |
}; |