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

Side by Side Diff: chrome/browser/download/download_shelf_context_menu.h

Issue 14955004: [Resumption 11/12] Support resuming interrupted downloads from the downloads shelf. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-use TOGGLE_PAUSE Created 7 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/download/download_shelf_context_menu.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_H_
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_H_ 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 11 matching lines...) Expand all
22 // The DownloadItem corresponding to the context menu is observed for removal or 22 // The DownloadItem corresponding to the context menu is observed for removal or
23 // destruction. 23 // destruction.
24 class DownloadShelfContextMenu : public ui::SimpleMenuModel::Delegate, 24 class DownloadShelfContextMenu : public ui::SimpleMenuModel::Delegate,
25 public content::DownloadItem::Observer { 25 public content::DownloadItem::Observer {
26 public: 26 public:
27 enum ContextMenuCommands { 27 enum ContextMenuCommands {
28 SHOW_IN_FOLDER = 1, // Open a folder view window with the item selected. 28 SHOW_IN_FOLDER = 1, // Open a folder view window with the item selected.
29 OPEN_WHEN_COMPLETE, // Open the download when it's finished. 29 OPEN_WHEN_COMPLETE, // Open the download when it's finished.
30 ALWAYS_OPEN_TYPE, // Default this file extension to always open. 30 ALWAYS_OPEN_TYPE, // Default this file extension to always open.
31 CANCEL, // Cancel the download. 31 CANCEL, // Cancel the download.
32 TOGGLE_PAUSE, // Temporarily pause a download. 32 TOGGLE_PAUSE, // Pause or resume a download.
33 DISCARD, // Discard the malicious download. 33 DISCARD, // Discard the malicious download.
34 KEEP, // Keep the malicious download. 34 KEEP, // Keep the malicious download.
35 LEARN_MORE_SCANNING, // Show information about download scanning. 35 LEARN_MORE_SCANNING, // Show information about download scanning.
36 LEARN_MORE_INTERRUPTED,// Show information about interrupted downloads. 36 LEARN_MORE_INTERRUPTED,// Show information about interrupted downloads.
37 }; 37 };
38 38
39 virtual ~DownloadShelfContextMenu(); 39 virtual ~DownloadShelfContextMenu();
40 40
41 content::DownloadItem* download_item() const { return download_item_; } 41 content::DownloadItem* download_item() const { return download_item_; }
42 42
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // Information source. 81 // Information source.
82 content::DownloadItem* download_item_; 82 content::DownloadItem* download_item_;
83 83
84 // Used to open tabs. 84 // Used to open tabs.
85 content::PageNavigator* navigator_; 85 content::PageNavigator* navigator_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(DownloadShelfContextMenu); 87 DISALLOW_COPY_AND_ASSIGN(DownloadShelfContextMenu);
88 }; 88 };
89 89
90 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_H_ 90 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/download/download_shelf_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698