| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_ | 6 #define CHROME_COMMON_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_ |
| 7 | 7 |
| 8 namespace extensions { | 8 namespace extensions { |
| 9 | 9 |
| 10 namespace webstore_install { | 10 namespace webstore_install { |
| 11 | 11 |
| 12 // Result codes returned by WebstoreStandaloneInstaller and its subclasses. | 12 // Result codes returned by WebstoreStandaloneInstaller and its subclasses. |
| 13 // IMPORTANT: Keep this list in sync with both the definition in |
| 14 // chrome/common/extensions/api/webstore.json and |
| 15 // chrome/common/extensions/api/webstore/webstore_install_constants.cc! |
| 13 enum Result { | 16 enum Result { |
| 14 // Successful operation. | 17 // Successful operation. |
| 15 SUCCESS, | 18 SUCCESS, |
| 16 | 19 |
| 17 // Unknown error. | 20 // Unknown error. |
| 18 UNKNOWN_ERROR, | 21 UNKNOWN_ERROR, |
| 19 | 22 |
| 20 // The operation was aborted as the requestor is no longer alive. | 23 // The operation was aborted as the requestor is no longer alive. |
| 21 ABORTED, | 24 ABORTED, |
| 22 | 25 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 52 // Unsatisfied requirements, such as webgl. | 55 // Unsatisfied requirements, such as webgl. |
| 53 REQUIREMENT_VIOLATIONS, | 56 REQUIREMENT_VIOLATIONS, |
| 54 | 57 |
| 55 // The extension is blocked by management policies. | 58 // The extension is blocked by management policies. |
| 56 BLOCKED_BY_POLICY, | 59 BLOCKED_BY_POLICY, |
| 57 | 60 |
| 58 // The launch feature is not available. | 61 // The launch feature is not available. |
| 59 LAUNCH_FEATURE_DISABLED, | 62 LAUNCH_FEATURE_DISABLED, |
| 60 | 63 |
| 61 // The launch feature is not supported for the extension type. | 64 // The launch feature is not supported for the extension type. |
| 62 LAUNCH_UNSUPPORTED_EXTENSION_TYPE | 65 LAUNCH_UNSUPPORTED_EXTENSION_TYPE, |
| 66 |
| 67 // The final (and unused) result type for enum verification. |
| 68 // New results should go above this entry, and this entry should be updated. |
| 69 RESULT_LAST = LAUNCH_UNSUPPORTED_EXTENSION_TYPE, |
| 63 }; | 70 }; |
| 64 | 71 |
| 65 } // namespace webstore_install | 72 } // namespace webstore_install |
| 66 | 73 |
| 67 } // namespace extensions | 74 } // namespace extensions |
| 68 | 75 |
| 69 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_ | 76 #endif // CHROME_COMMON_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_ |
| OLD | NEW |