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

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

Issue 852043002: Initial Implementation of Download Notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 5 years, 10 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
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_COMMANDS_H_
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_COMMANDS_H_
7
8 #include "base/strings/string16.h"
9
10 enum DownloadCommands {
asanka 2015/01/31 00:38:51 Use a suitable prefix for these enum values.
11 SHOW_IN_FOLDER = 1, // Open a folder view window with the item selected.
12 OPEN_WHEN_COMPLETE, // Open the download when it's finished.
13 ALWAYS_OPEN_TYPE, // Default this file extension to always open.
14 PLATFORM_OPEN, // Open using platform handler.
15 CANCEL, // Cancel the download.
16 PAUSE, // Pause a download.
17 RESUME, // Resume a download.
18 TOGGLE_PAUSE, // Pause or resume a download.
19 DISCARD, // Discard the malicious download.
20 KEEP, // Keep the malicious download.
21 RETRY, // Retry the download.
22 LEARN_MORE_SCANNING, // Show information about download scanning.
23 LEARN_MORE_INTERRUPTED,// Show information about interrupted downloads.
24 };
25
26 base::string16 GetCommandText(DownloadCommands type);
27 int GetCommandIconId(DownloadCommands type);
28
29 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_COMMANDS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698