OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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_CONFIRMATION_REASON_H_ |
| 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CONFIRMATION_REASON_H_ |
| 7 |
| 8 // Reason why DownloadTargetDeterminer requested additional confirmation for the |
| 9 // target path via RequestConfirmation delegate method. |
| 10 enum class DownloadConfirmationReason { |
| 11 NONE, |
| 12 |
| 13 // Unexpected error. |
| 14 UNEXPECTED, |
| 15 |
| 16 // "Save as" or "Save link as". |
| 17 SAVE_AS, |
| 18 |
| 19 // The user has set a preference requiring prompts for all downloads. |
| 20 PREFERENCE, |
| 21 |
| 22 // The target name was too long and couldn't be truncated. |
| 23 NAME_TOO_LONG, |
| 24 |
| 25 // There were unresolved conflicts with the target path. |
| 26 TARGET_CONFLICT, |
| 27 |
| 28 // The target path isn't writeable. Also may indicate that a previous attempt |
| 29 // to write to the path failed. |
| 30 TARGET_PATH_NOT_WRITEABLE, |
| 31 |
| 32 // The target path cannot accommodate a file of this size. |
| 33 TARGET_NO_SPACE, |
| 34 }; |
| 35 |
| 36 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CONFIRMATION_REASON_H_ |
OLD | NEW |