OLD | NEW |
| (Empty) |
1 // Copyright 2014 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_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_ | |
6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_ | |
7 | |
8 namespace extensions { | |
9 | |
10 namespace webstore_install { | |
11 | |
12 // Result codes returned by WebstoreStandaloneInstaller and its subclasses. | |
13 enum Result { | |
14 // Successful operation. | |
15 SUCCESS, | |
16 | |
17 // Unknown error. | |
18 UNKNOWN_ERROR, | |
19 | |
20 // The operation was aborted as the requestor is no longer alive. | |
21 ABORTED, | |
22 | |
23 // The installation is not permitted. | |
24 NOT_PERMITTED, | |
25 | |
26 // Invalid Chrome Web Store item ID. | |
27 INVALID_ID, | |
28 | |
29 // Failed to retrieve extension metadata from the Web Store. | |
30 WEBSTORE_REQUEST_ERROR, | |
31 | |
32 // The extension metadata retrieved from the Web Store was invalid. | |
33 INVALID_WEBSTORE_RESPONSE, | |
34 | |
35 // An error occurred while parsing the extension manifest retrieved from the | |
36 // Web Store. | |
37 INVALID_MANIFEST, | |
38 | |
39 // Failed to retrieve the extension's icon from the Web Store, or the icon | |
40 // was invalid. | |
41 ICON_ERROR, | |
42 | |
43 // The user cancelled the operation. | |
44 USER_CANCELLED, | |
45 | |
46 // The extension is blacklisted. | |
47 BLACKLISTED, | |
48 | |
49 // Unsatisfied dependencies, such as shared modules. | |
50 MISSING_DEPENDENCIES, | |
51 | |
52 // Unsatisfied requirements, such as webgl. | |
53 REQUIREMENT_VIOLATIONS, | |
54 | |
55 // The extension is blocked by management policies. | |
56 BLOCKED_BY_POLICY, | |
57 | |
58 // The launch feature is not available. | |
59 LAUNCH_FEATURE_DISABLED, | |
60 | |
61 // The launch feature is not supported for the extension type. | |
62 LAUNCH_UNSUPPORTED_EXTENSION_TYPE | |
63 }; | |
64 | |
65 } // namespace webstore_install | |
66 | |
67 } // namespace extensions | |
68 | |
69 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_ | |
OLD | NEW |