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

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

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.h
diff --git a/chrome/common/extensions/api/webstore/webstore_api_constants.h b/chrome/common/extensions/api/webstore/webstore_api_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..445a57b9b464863c799048ef0d1898da3d4111eb
--- /dev/null
+++ b/chrome/common/extensions/api/webstore/webstore_api_constants.h
@@ -0,0 +1,34 @@
+// 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.
+
+#ifndef CHROME_COMMON_EXTENSIONS_API_WEBSTORE_WEBSTORE_API_CONSTANTS_H_
+#define CHROME_COMMON_EXTENSIONS_API_WEBSTORE_WEBSTORE_API_CONSTANTS_H_
+
+namespace extensions {
+namespace api {
+namespace webstore {
+
+// An enum for listener types. This is used when creating/reading the mask for
+// IPC messages.
+enum ListenerType {
+ INSTALL_STAGE_LISTENER = 1,
+ DOWNLOAD_PROGRESS_LISTENER = 1 << 1
+};
+
+// An enum to represent which stage the installation is in.
+enum InstallStage {
+ INSTALL_STAGE_DOWNLOADING = 0,
+ INSTALL_STAGE_INSTALLING,
+};
+
+extern const char kInstallStageDownloading[];
+extern const char kInstallStageInstalling[];
+extern const char kOnInstallStageChangedMethodName[];
+extern const char kOnDownloadProgressMethodName[];
+
+} // namespace webstore
+} // namespace api
+} // namespace extensions
+
+#endif // CHROME_COMMON_EXTENSIONS_API_WEBSTORE_WEBSTORE_API_CONSTANTS_H_
« no previous file with comments | « chrome/common/extensions/api/webstore.json ('k') | chrome/common/extensions/api/webstore/webstore_api_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698