Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: chrome/browser/extensions/webstore_install_result.h

Issue 384823002: Introduce a stable set of errors for inline install (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replace printf with vlog(1) in unrelated code so it passes presubmit Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_
6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_
7
8 namespace extensions {
9
10 namespace webstore_install {
11
12 // Result codes returned by WebstoreStandaloneInstaller and its subclasses.
13 enum Result {
14 // Successful operation.
15 SUCCESS,
16
17 // Unknown error.
18 UNKNOWN_ERROR,
19
20 // The operation was aborted as the requestor is no longer alive.
21 ABORTED,
22
23 // An installation of the same extension is in progress.
24 INSTALL_IN_PROGRESS,
25
26 // The installation is not permitted.
27 NOT_PERMITTED,
28
29 // Invalid Chrome Web Store item ID.
30 INVALID_ID,
31
32 // Failed to retrieve extension metadata from the Web Store.
33 WEBSTORE_REQUEST_ERROR,
34
35 // The extension metadata retrieved from the Web Store was invalid.
36 INVALID_WEBSTORE_RESPONSE,
37
38 // An error occurred while parsing the extension manifest retrieved from the
39 // Web Store.
40 INVALID_MANIFEST,
41
42 // Failed to retrieve the extension's icon from the Web Store, or the icon
43 // was invalid.
44 ICON_ERROR,
45
46 // The user cancelled the operation.
47 USER_CANCELLED,
48
49 // The extension is blacklisted.
50 BLACKLISTED,
51
52 // Unsatisfied dependencies, such as shared modules.
53 MISSING_DEPENDENCIES,
54
55 // Unsatisfied requirements, such as webgl.
56 REQUIREMENT_VIOLATIONS,
57
58 // The extension is blocked by management policies.
59 BLOCKED_BY_POLICY,
60
61 // The launch feature is not available.
62 LAUNCH_FEATURE_DISABLED,
63
64 // The launch feature is not supported for the extension type.
65 LAUNCH_UNSUPPORTED_EXTENSION_TYPE,
66
67 // A launch of the same extension is in progress.
68 LAUNCH_IN_PROGRESS
69 };
70
71 } // namespace webstore_install
72
73 } // namespace extensions
74
75 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698