Chromium Code Reviews| Index: chrome/browser/download/download_commands.h |
| diff --git a/chrome/browser/download/download_commands.h b/chrome/browser/download/download_commands.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d5f7ec9220db1e162d2581a7c3a7b11a17f17504 |
| --- /dev/null |
| +++ b/chrome/browser/download/download_commands.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_COMMANDS_H_ |
| +#define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_COMMANDS_H_ |
| + |
| +#include "base/strings/string16.h" |
| + |
| +enum DownloadCommands { |
|
asanka
2015/01/31 00:38:51
Use a suitable prefix for these enum values.
|
| + SHOW_IN_FOLDER = 1, // Open a folder view window with the item selected. |
| + OPEN_WHEN_COMPLETE, // Open the download when it's finished. |
| + ALWAYS_OPEN_TYPE, // Default this file extension to always open. |
| + PLATFORM_OPEN, // Open using platform handler. |
| + CANCEL, // Cancel the download. |
| + PAUSE, // Pause a download. |
| + RESUME, // Resume a download. |
| + TOGGLE_PAUSE, // Pause or resume a download. |
| + DISCARD, // Discard the malicious download. |
| + KEEP, // Keep the malicious download. |
| + RETRY, // Retry the download. |
| + LEARN_MORE_SCANNING, // Show information about download scanning. |
| + LEARN_MORE_INTERRUPTED,// Show information about interrupted downloads. |
| +}; |
| + |
| +base::string16 GetCommandText(DownloadCommands type); |
| +int GetCommandIconId(DownloadCommands type); |
| + |
| +#endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_COMMANDS_H_ |