Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chrome / common / extensions / webstore_install_result.h
blob1378daee8385128ed50f20100e14f09a1ec74e0f
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 enum Result {
14 // Successful operation.
15 SUCCESS,
17 // Unknown error.
18 OTHER_ERROR,
20 // The operation was aborted as the requestor is no longer alive.
21 ABORTED,
23 // An installation of the same extension is in progress.
24 INSTALL_IN_PROGRESS,
26 // The installation is not permitted.
27 NOT_PERMITTED,
29 // Invalid Chrome Web Store item ID.
30 INVALID_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
39 // Web Store.
40 INVALID_MANIFEST,
42 // Failed to retrieve the extension's icon from the Web Store, or the icon
43 // was invalid.
44 ICON_ERROR,
46 // The user cancelled the operation.
47 USER_CANCELLED,
49 // The extension is blacklisted.
50 BLACKLISTED,
52 // Unsatisfied dependencies, such as shared modules.
53 MISSING_DEPENDENCIES,
55 // Unsatisfied requirements, such as webgl.
56 REQUIREMENT_VIOLATIONS,
58 // The extension is blocked by management policies.
59 BLOCKED_BY_POLICY,
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.
68 LAUNCH_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_