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

Side by Side Diff: chrome/common/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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_
6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_ 6 #define CHROME_COMMON_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_
7 7
8 namespace extensions { 8 namespace extensions {
9 9
10 namespace webstore_install { 10 namespace webstore_install {
11 11
12 // Result codes returned by WebstoreStandaloneInstaller and its subclasses. 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!
13 enum Result { 16 enum Result {
14 // Successful operation. 17 // Successful operation.
15 SUCCESS, 18 SUCCESS,
16 19
17 // Unknown error. 20 // Unknown error.
18 UNKNOWN_ERROR, 21 OTHER_ERROR,
19 22
20 // The operation was aborted as the requestor is no longer alive. 23 // The operation was aborted as the requestor is no longer alive.
21 ABORTED, 24 ABORTED,
22 25
23 // An installation of the same extension is in progress. 26 // An installation of the same extension is in progress.
24 INSTALL_IN_PROGRESS, 27 INSTALL_IN_PROGRESS,
25 28
26 // The installation is not permitted. 29 // The installation is not permitted.
27 NOT_PERMITTED, 30 NOT_PERMITTED,
28 31
(...skipping 29 matching lines...) Expand all
58 // The extension is blocked by management policies. 61 // The extension is blocked by management policies.
59 BLOCKED_BY_POLICY, 62 BLOCKED_BY_POLICY,
60 63
61 // The launch feature is not available. 64 // The launch feature is not available.
62 LAUNCH_FEATURE_DISABLED, 65 LAUNCH_FEATURE_DISABLED,
63 66
64 // The launch feature is not supported for the extension type. 67 // The launch feature is not supported for the extension type.
65 LAUNCH_UNSUPPORTED_EXTENSION_TYPE, 68 LAUNCH_UNSUPPORTED_EXTENSION_TYPE,
66 69
67 // A launch of the same extension is in progress. 70 // A launch of the same extension is in progress.
68 LAUNCH_IN_PROGRESS 71 LAUNCH_IN_PROGRESS,
72
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,
69 }; 76 };
70 77
71 } // namespace webstore_install 78 } // namespace webstore_install
72 79
73 } // namespace extensions 80 } // namespace extensions
74 81
75 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_ 82 #endif // CHROME_COMMON_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698