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

Side by Side Diff: chrome/common/extensions/api/webstore/webstore_api_constants.cc

Issue 384823002: Introduce a stable set of errors for inline install (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 #include "chrome/common/extensions/api/webstore/webstore_api_constants.h" 5 #include "chrome/common/extensions/api/webstore/webstore_api_constants.h"
6 6
7 namespace extensions { 7 namespace extensions {
8 namespace api { 8 namespace api {
9 namespace webstore { 9 namespace webstore {
10 10
11 // IMPORTANT: Keep this list in sync with both the definition in
12 // chrome/common/extensions/api/webstore.json and
13 // chrome/common/extensions/webstore_install_result.h!
not at google - send to devlin 2014/07/10 20:54:27 could you add a unit test for chrome/common/extens
Devlin 2014/07/10 22:11:43 As discussed offline, a compile assert covers as m
14 const char* kInstallResultCodes[] = {
15 "success",
16 "otherError", // This corresponds to UNKNOWN_ERROR, but "other" sounds a lot
not at google - send to devlin 2014/07/10 20:54:27 I actually prefer "unknown" :)
Devlin 2014/07/10 21:16:59 Typically, I do too. But this is special, because
not at google - send to devlin 2014/07/10 21:18:38 ah :) well can you rename the enum then?
Devlin 2014/07/10 22:11:43 Yep. :)
17 // better.
18 "aborted",
19 "notPermitted",
20 "invalidId",
21 "webstoreRequestError",
22 "invalidWebstoreResponse",
23 "invalidManifest",
24 "iconError",
25 "userCancelled",
26 "blacklisted",
27 "missingDependencies",
28 "requirementViolations",
29 "blockedByPolicy",
30 "launchFeatureDisabled",
31 "launchUnsupportedExtensionType",
32 };
33
11 // The "downloading" stage begins when the installer starts downloading modules 34 // The "downloading" stage begins when the installer starts downloading modules
12 // for the extension. 35 // for the extension.
13 const char kInstallStageDownloading[] = "downloading"; 36 const char kInstallStageDownloading[] = "downloading";
14 37
15 // The "installing" stage begins once all downloads are complete, and the 38 // The "installing" stage begins once all downloads are complete, and the
16 // CrxInstaller begins. 39 // CrxInstaller begins.
17 const char kInstallStageInstalling[] = "installing"; 40 const char kInstallStageInstalling[] = "installing";
18 41
19 // The method in custom_webstore_bindings.js triggered when we enter a new 42 // The method in custom_webstore_bindings.js triggered when we enter a new
20 // install stage ("downloading" or "installing"). 43 // install stage ("downloading" or "installing").
21 const char kOnInstallStageChangedMethodName[] = "onInstallStageChanged"; 44 const char kOnInstallStageChangedMethodName[] = "onInstallStageChanged";
22 45
23 // The method in custom_webstore_bindings.js triggered when we update 46 // The method in custom_webstore_bindings.js triggered when we update
24 // download progress. 47 // download progress.
25 const char kOnDownloadProgressMethodName[] = "onDownloadProgress"; 48 const char kOnDownloadProgressMethodName[] = "onDownloadProgress";
26 49
27 } // namespace webstore 50 } // namespace webstore
28 } // namespace api 51 } // namespace api
29 } // namespace extensions 52 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698