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

Unified Diff: chrome/common/extensions/api/webstore/webstore_api_constants.cc

Issue 175263003: Add chrome.webstore API methods to allow sites to see progress of installation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/webstore/webstore_api_constants.cc
diff --git a/chrome/common/extensions/api/webstore/webstore_api_constants.cc b/chrome/common/extensions/api/webstore/webstore_api_constants.cc
new file mode 100644
index 0000000000000000000000000000000000000000..e766bce69a7e99f7daa0bd0d439dfc4bb822b667
--- /dev/null
+++ b/chrome/common/extensions/api/webstore/webstore_api_constants.cc
@@ -0,0 +1,29 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/common/extensions/api/webstore/webstore_api_constants.h"
+
+namespace extensions {
+namespace api {
+namespace webstore {
+
+// The "downloading" stage begins when the installer starts downloading modules
+// for the extension.
+const char kInstallStageDownloading[] = "downloading";
+
+// The "installing" stage begins once all downloads are complete, and the
+// CrxInstaller begins.
+const char kInstallStageInstalling[] = "installing";
+
+// The method in custom_webstore_bindings.js triggered when we enter a new
+// install stage ("downloading" or "installing").
+const char kOnInstallStageChangedMethodName[] = "onInstallStageChanged";
+
+// The method in custom_webstore_bindings.js triggered when we update
+// download progress.
+const char kOnDownloadProgressMethodName[] = "onDownloadProgress";
+
+} // namespace webstore
+} // namespace api
+} // namespace extensions
« no previous file with comments | « chrome/common/extensions/api/webstore/webstore_api_constants.h ('k') | chrome/common/extensions/chrome_extension_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698