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_COMMON_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_ |
6 #define CHROME_COMMON_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 extern const char kInvalidWebstoreItemId[]; |
| 13 extern const char kWebstoreRequestError[]; |
| 14 extern const char kInvalidWebstoreResponseError[]; |
| 15 extern const char kInvalidManifestError[]; |
| 16 extern const char kUserCancelledError[]; |
| 17 extern const char kExtensionIsBlacklisted[]; |
| 18 extern const char kInstallInProgressError[]; |
| 19 |
12 // Result codes returned by WebstoreStandaloneInstaller and its subclasses. | 20 // Result codes returned by WebstoreStandaloneInstaller and its subclasses. |
13 enum Result { | 21 enum Result { |
14 // Successful operation. | 22 // Successful operation. |
15 SUCCESS, | 23 SUCCESS, |
16 | 24 |
17 // Unknown error. | 25 // Unknown error. |
18 OTHER_ERROR, | 26 OTHER_ERROR, |
19 | 27 |
20 // The operation was aborted as the requestor is no longer alive. | 28 // The operation was aborted as the requestor is no longer alive. |
21 ABORTED, | 29 ABORTED, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // The final (and unused) result type for enum verification. | 78 // The final (and unused) result type for enum verification. |
71 // New results should go above this entry, and this entry should be updated. | 79 // New results should go above this entry, and this entry should be updated. |
72 RESULT_LAST = LAUNCH_IN_PROGRESS, | 80 RESULT_LAST = LAUNCH_IN_PROGRESS, |
73 }; | 81 }; |
74 | 82 |
75 } // namespace webstore_install | 83 } // namespace webstore_install |
76 | 84 |
77 } // namespace extensions | 85 } // namespace extensions |
78 | 86 |
79 #endif // CHROME_COMMON_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_ | 87 #endif // CHROME_COMMON_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_ |
OLD | NEW |