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_RESULT_H_ |
| 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CONFIRMATION_RESULT_H_ |
| 7 |
| 8 // Result of RequestConfirmation delegate method for |
| 9 // DownloadTargetDeterminerDelegate. |
| 10 enum class DownloadConfirmationResult { |
| 11 // The user confirmed the path. Only use this value if the user was explicitly |
| 12 // shown the path or at least the filename being downloaded. |
| 13 CONFIRMED, |
| 14 |
| 15 // The operation failed due to a reason other than a user cancellation. |
| 16 FAILED, |
| 17 |
| 18 // The user cancelled. |
| 19 CANCELED, |
| 20 |
| 21 // User was not explicitly prompted, but continue with current path. The |
| 22 // delegate should use this value instead of CONFIRMED if the user was not |
| 23 // presented with some UI that explicitly called out the filename being |
| 24 // downloaded. |
| 25 CONTINUE_WITHOUT_CONFIRMATION |
| 26 }; |
| 27 |
| 28 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CONFIRMATION_RESULT_H_ |
OLD | NEW |