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