[email protected] | 9c7b309 | 2014-06-21 01:19:03 | [diff] [blame] | 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 | |
[email protected] | 773272b | 2014-07-18 05:48:35 | [diff] [blame^] | 23 | // An installation of the same extension is in progress. |
| 24 | INSTALL_IN_PROGRESS, |
| 25 | |
[email protected] | 9c7b309 | 2014-06-21 01:19:03 | [diff] [blame] | 26 | // The installation is not permitted. |
| 27 | NOT_PERMITTED, |
| 28 | |
| 29 | // Invalid Chrome Web Store item ID. |
| 30 | INVALID_ID, |
| 31 | |
| 32 | // Failed to retrieve extension metadata from the Web Store. |
| 33 | WEBSTORE_REQUEST_ERROR, |
| 34 | |
| 35 | // The extension metadata retrieved from the Web Store was invalid. |
| 36 | INVALID_WEBSTORE_RESPONSE, |
| 37 | |
| 38 | // An error occurred while parsing the extension manifest retrieved from the |
| 39 | // Web Store. |
| 40 | INVALID_MANIFEST, |
| 41 | |
| 42 | // Failed to retrieve the extension's icon from the Web Store, or the icon |
| 43 | // was invalid. |
| 44 | ICON_ERROR, |
| 45 | |
| 46 | // The user cancelled the operation. |
| 47 | USER_CANCELLED, |
| 48 | |
| 49 | // The extension is blacklisted. |
| 50 | BLACKLISTED, |
| 51 | |
| 52 | // Unsatisfied dependencies, such as shared modules. |
| 53 | MISSING_DEPENDENCIES, |
| 54 | |
| 55 | // Unsatisfied requirements, such as webgl. |
| 56 | REQUIREMENT_VIOLATIONS, |
| 57 | |
| 58 | // The extension is blocked by management policies. |
| 59 | BLOCKED_BY_POLICY, |
| 60 | |
| 61 | // The launch feature is not available. |
| 62 | LAUNCH_FEATURE_DISABLED, |
| 63 | |
| 64 | // The launch feature is not supported for the extension type. |
[email protected] | 773272b | 2014-07-18 05:48:35 | [diff] [blame^] | 65 | LAUNCH_UNSUPPORTED_EXTENSION_TYPE, |
| 66 | |
| 67 | // A launch of the same extension is in progress. |
| 68 | LAUNCH_IN_PROGRESS |
[email protected] | 9c7b309 | 2014-06-21 01:19:03 | [diff] [blame] | 69 | }; |
| 70 | |
| 71 | } // namespace webstore_install |
| 72 | |
| 73 | } // namespace extensions |
| 74 | |
| 75 | #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_ |