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_API_WEBSTORE_WEBSTORE_API_CONSTANTS_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_API_WEBSTORE_WEBSTORE_API_CONSTANTS_H_ |
6 #define CHROME_COMMON_EXTENSIONS_API_WEBSTORE_WEBSTORE_API_CONSTANTS_H_ | 6 #define CHROME_COMMON_EXTENSIONS_API_WEBSTORE_WEBSTORE_API_CONSTANTS_H_ |
7 | 7 |
8 namespace extensions { | 8 namespace extensions { |
9 namespace api { | 9 namespace api { |
10 namespace webstore { | 10 namespace webstore { |
11 | 11 |
12 // An enum for listener types. This is used when creating/reading the mask for | 12 // An enum for listener types. This is used when creating/reading the mask for |
13 // IPC messages. | 13 // IPC messages. |
14 enum ListenerType { | 14 enum ListenerType { |
15 INSTALL_STAGE_LISTENER = 1, | 15 INSTALL_STAGE_LISTENER = 1, |
16 DOWNLOAD_PROGRESS_LISTENER = 1 << 1 | 16 DOWNLOAD_PROGRESS_LISTENER = 1 << 1 |
17 }; | 17 }; |
18 | 18 |
19 // An enum to represent which stage the installation is in. | 19 // An enum to represent which stage the installation is in. |
20 enum InstallStage { | 20 enum InstallStage { |
21 INSTALL_STAGE_DOWNLOADING = 0, | 21 INSTALL_STAGE_DOWNLOADING = 0, |
22 INSTALL_STAGE_INSTALLING, | 22 INSTALL_STAGE_INSTALLING, |
23 }; | 23 }; |
24 | 24 |
| 25 // Result codes returned by WebstoreStandaloneInstaller and its subclasses. |
| 26 // IMPORTANT: Keep this list in sync with both the definition in |
| 27 // chrome/common/extensions/api/webstore.json and |
| 28 // chrome/common/extensions/webstore_install_result.h! |
| 29 extern const char* kInstallResultCodes[]; |
| 30 |
25 extern const char kInstallStageDownloading[]; | 31 extern const char kInstallStageDownloading[]; |
26 extern const char kInstallStageInstalling[]; | 32 extern const char kInstallStageInstalling[]; |
27 extern const char kOnInstallStageChangedMethodName[]; | 33 extern const char kOnInstallStageChangedMethodName[]; |
28 extern const char kOnDownloadProgressMethodName[]; | 34 extern const char kOnDownloadProgressMethodName[]; |
29 | 35 |
30 } // namespace webstore | 36 } // namespace webstore |
31 } // namespace api | 37 } // namespace api |
32 } // namespace extensions | 38 } // namespace extensions |
33 | 39 |
34 #endif // CHROME_COMMON_EXTENSIONS_API_WEBSTORE_WEBSTORE_API_CONSTANTS_H_ | 40 #endif // CHROME_COMMON_EXTENSIONS_API_WEBSTORE_WEBSTORE_API_CONSTANTS_H_ |
OLD | NEW |