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_TARGET_RESULT_H_ | |
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TARGET_RESULT_H_ | |
7 | |
8 enum class DownloadTargetResult { | |
9 // Successfully reserved the path. If there were conflicts, they were | |
10 // resolved by uniquifying the path. The returned path is writeable and | |
11 // unique (at least when last observed). No further user interaction is | |
12 // required. | |
13 SUCCESS, | |
14 | |
15 // Cancelled by user. | |
16 USER_CANCELED, | |
17 | |
18 // Unexpected error. | |
19 UNEXPECTED, | |
20 | |
21 // The suggested name was too long and could not be truncated to fit within | |
22 // the limits of the target file system. The returned path may not be valid | |
23 // for use on the filesystem. | |
24 NAME_TOO_LONG, | |
25 | |
26 // There were unresolved conflicts with existing files or files that are in | |
27 // the process of being downloaded to the target path. The returned path | |
28 // should not be considered to be unique. | |
29 CONFLICT, | |
30 | |
31 // The suggested download path was not writeable. A possibly writeable | |
32 // alternate path will be returned. The returned path may be empty if no | |
33 // suitable alternate was found. | |
34 PATH_NOT_WRITEABLE | |
svaldez
2016/10/28 17:29:36
*writable
asanka
2016/11/07 19:50:15
Done. Apparently "writable" is much more common in
| |
35 }; | |
36 | |
37 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_TARGET_RESULT_H_ | |
OLD | NEW |