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 #include "chrome/common/extensions/api/webstore/webstore_api_constants.h"
7 #include "base/macros.h"
8 #include "chrome/common/extensions/webstore_install_result.h"
10 namespace extensions
{
14 // IMPORTANT: Keep this list in sync with both the definition in
15 // chrome/common/extensions/api/webstore.json and
16 // chrome/common/extensions/webstore_install_result.h!
17 const char* const kInstallResultCodes
[] = {
24 "webstoreRequestError",
25 "invalidWebstoreResponse",
30 "missingDependencies",
31 "requirementViolations",
33 "launchFeatureDisabled",
34 "launchUnsupportedExtensionType",
38 static_assert(arraysize(kInstallResultCodes
) ==
39 webstore_install::RESULT_LAST
+ 1,
40 "kInstallResultCodes should equal RESULT_LAST + 1");
42 // The "downloading" stage begins when the installer starts downloading modules
44 const char kInstallStageDownloading
[] = "downloading";
46 // The "installing" stage begins once all downloads are complete, and the
47 // CrxInstaller begins.
48 const char kInstallStageInstalling
[] = "installing";
50 // The method in custom_webstore_bindings.js triggered when we enter a new
51 // install stage ("downloading" or "installing").
52 const char kOnInstallStageChangedMethodName
[] = "onInstallStageChanged";
54 // The method in custom_webstore_bindings.js triggered when we update
56 const char kOnDownloadProgressMethodName
[] = "onDownloadProgress";
58 } // namespace webstore
60 } // namespace extensions