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.
5 #ifndef CHROME_COMMON_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_
6 #define CHROME_COMMON_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_
10 namespace webstore_install
{
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!
17 // Successful operation.
23 // The operation was aborted as the requestor is no longer alive.
26 // An installation of the same extension is in progress.
29 // The installation is not permitted.
32 // Invalid Chrome Web Store item ID.
35 // Failed to retrieve extension metadata from the Web Store.
36 WEBSTORE_REQUEST_ERROR
,
38 // The extension metadata retrieved from the Web Store was invalid.
39 INVALID_WEBSTORE_RESPONSE
,
41 // An error occurred while parsing the extension manifest retrieved from the
45 // Failed to retrieve the extension's icon from the Web Store, or the icon
49 // The user cancelled the operation.
52 // The extension is blacklisted.
55 // Unsatisfied dependencies, such as shared modules.
58 // Unsatisfied requirements, such as webgl.
59 REQUIREMENT_VIOLATIONS
,
61 // The extension is blocked by management policies.
64 // The launch feature is not available.
65 LAUNCH_FEATURE_DISABLED
,
67 // The launch feature is not supported for the extension type.
68 LAUNCH_UNSUPPORTED_EXTENSION_TYPE
,
70 // A launch of the same extension is in progress.
73 // The final (and unused) result type for enum verification.
74 // New results should go above this entry, and this entry should be updated.
75 RESULT_LAST
= LAUNCH_IN_PROGRESS
,
78 } // namespace webstore_install
80 } // namespace extensions
82 #endif // CHROME_COMMON_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_