| Index: chrome/browser/download/download_shelf_context_menu.h
|
| diff --git a/chrome/browser/download/download_shelf_context_menu.h b/chrome/browser/download/download_shelf_context_menu.h
|
| index 3e7c47dc273c012dad616cee5519cf7c847f567f..7d7d2212e288043ca14c43bd6d7e0414a46275bb 100644
|
| --- a/chrome/browser/download/download_shelf_context_menu.h
|
| +++ b/chrome/browser/download/download_shelf_context_menu.h
|
| @@ -25,6 +25,9 @@ class DownloadShelfContextMenu : public ui::SimpleMenuModel::Delegate {
|
| ALWAYS_OPEN_TYPE, // Default this file extension to always open.
|
| CANCEL, // Cancel the download.
|
| TOGGLE_PAUSE, // Temporarily pause a download.
|
| + DISCARD, // Discard the malicious download.
|
| + KEEP, // Keep the malicious download.
|
| + LEARN_MORE, // Show information about download scanning.
|
| MENU_LAST
|
| };
|
|
|
| @@ -53,11 +56,13 @@ class DownloadShelfContextMenu : public ui::SimpleMenuModel::Delegate {
|
| private:
|
| ui::SimpleMenuModel* GetInProgressMenuModel();
|
| ui::SimpleMenuModel* GetFinishedMenuModel();
|
| + ui::SimpleMenuModel* GetMaliciousMenuModel();
|
|
|
| // We show slightly different menus if the download is in progress vs. if the
|
| // download has finished.
|
| scoped_ptr<ui::SimpleMenuModel> in_progress_download_menu_model_;
|
| scoped_ptr<ui::SimpleMenuModel> finished_download_menu_model_;
|
| + scoped_ptr<ui::SimpleMenuModel> malicious_download_menu_model_;
|
|
|
| // A model to control the cancel behavior.
|
| BaseDownloadItemModel* download_model_;
|
|
|