Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |