Index: chrome/common/extensions/api/webstore_api_constants.cc |
diff --git a/chrome/common/extensions/api/webstore_api_constants.cc b/chrome/common/extensions/api/webstore_api_constants.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..34158a69c40df7479d846412d7e2fa340a60abb0 |
--- /dev/null |
+++ b/chrome/common/extensions/api/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_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 |