Delete chrome.mediaGalleriesPrivate because the functionality unique to it has since...
[chromium-blink-merge.git] / chrome / common / extensions / webstore_install_result.h
blobde5b55ec2e9b7af9e41eb1336ff828e4a6263fb9
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_
8 namespace extensions {
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!
16 enum Result {
17 // Successful operation.
18 SUCCESS,
20 // Unknown error.
21 OTHER_ERROR,
23 // The operation was aborted as the requestor is no longer alive.
24 ABORTED,
26 // An installation of the same extension is in progress.
27 INSTALL_IN_PROGRESS,
29 // The installation is not permitted.
30 NOT_PERMITTED,
32 // Invalid Chrome Web Store item ID.
33 INVALID_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
42 // Web Store.
43 INVALID_MANIFEST,
45 // Failed to retrieve the extension's icon from the Web Store, or the icon
46 // was invalid.
47 ICON_ERROR,
49 // The user cancelled the operation.
50 USER_CANCELLED,
52 // The extension is blacklisted.
53 BLACKLISTED,
55 // Unsatisfied dependencies, such as shared modules.
56 MISSING_DEPENDENCIES,
58 // Unsatisfied requirements, such as webgl.
59 REQUIREMENT_VIOLATIONS,
61 // The extension is blocked by management policies.
62 BLOCKED_BY_POLICY,
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.
71 LAUNCH_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_