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

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

Issue 389613006: Prevent duplicate concurrent installs of the same extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed update of webstore_result 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
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_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_
6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_ 6 #define CHROME_BROWSER_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 enum Result { 13 enum Result {
14 // Successful operation. 14 // Successful operation.
15 SUCCESS, 15 SUCCESS,
16 16
17 // Unknown error. 17 // Unknown error.
18 UNKNOWN_ERROR, 18 UNKNOWN_ERROR,
19 19
20 // The operation was aborted as the requestor is no longer alive. 20 // The operation was aborted as the requestor is no longer alive.
21 ABORTED, 21 ABORTED,
22 22
23 // An installation of the same extension is in progress.
24 INSTALL_IN_PROGRESS,
25
23 // The installation is not permitted. 26 // The installation is not permitted.
24 NOT_PERMITTED, 27 NOT_PERMITTED,
25 28
26 // Invalid Chrome Web Store item ID. 29 // Invalid Chrome Web Store item ID.
27 INVALID_ID, 30 INVALID_ID,
28 31
29 // Failed to retrieve extension metadata from the Web Store. 32 // Failed to retrieve extension metadata from the Web Store.
30 WEBSTORE_REQUEST_ERROR, 33 WEBSTORE_REQUEST_ERROR,
31 34
32 // The extension metadata retrieved from the Web Store was invalid. 35 // The extension metadata retrieved from the Web Store was invalid.
(...skipping 19 matching lines...) Expand all
52 // Unsatisfied requirements, such as webgl. 55 // Unsatisfied requirements, such as webgl.
53 REQUIREMENT_VIOLATIONS, 56 REQUIREMENT_VIOLATIONS,
54 57
55 // The extension is blocked by management policies. 58 // The extension is blocked by management policies.
56 BLOCKED_BY_POLICY, 59 BLOCKED_BY_POLICY,
57 60
58 // The launch feature is not available. 61 // The launch feature is not available.
59 LAUNCH_FEATURE_DISABLED, 62 LAUNCH_FEATURE_DISABLED,
60 63
61 // The launch feature is not supported for the extension type. 64 // The launch feature is not supported for the extension type.
62 LAUNCH_UNSUPPORTED_EXTENSION_TYPE 65 LAUNCH_UNSUPPORTED_EXTENSION_TYPE,
66
67 // A launch of the same extension is in progress.
68 LAUNCH_IN_PROGRESS
63 }; 69 };
64 70
65 } // namespace webstore_install 71 } // namespace webstore_install
66 72
67 } // namespace extensions 73 } // namespace extensions
68 74
69 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_ 75 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INSTALL_RESULT_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/install_tracker_unittest.cc ('k') | chrome/browser/extensions/webstore_standalone_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698