| // Copyright 2018 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_LOCATION_DIALOG_TYPE_H_ |
| #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_LOCATION_DIALOG_TYPE_H_ |
| |
| // The type of download location dialog that should by shown by Android. |
| // A Java counterpart will be generated for this enum. |
| // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.download |
| // Recorded in histogram, so do not delete or reuse entries. The values must |
| // match DownloadLocationDialogType in enums.xml. |
| enum class DownloadLocationDialogType { |
| NO_DIALOG = 0, // No dialog. |
| DEFAULT = 1, // Dialog without any error states. |
| LOCATION_FULL = 2, // Error dialog, default location is full. |
| LOCATION_NOT_FOUND = 3, // Error dialog, default location is not found. |
| NAME_CONFLICT = 4, // Error dialog, there is already a file with that name. |
| NAME_TOO_LONG = 5, // Error dialog, the file name is too long. |
| kMaxValue = NAME_TOO_LONG |
| }; |
| |
| #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_LOCATION_DIALOG_TYPE_H_ |