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

Unified Diff: chrome/common/extensions/chrome_extension_messages.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/chrome_extension_messages.h
diff --git a/chrome/common/extensions/chrome_extension_messages.h b/chrome/common/extensions/chrome_extension_messages.h
index e25e9010f97ddd7dda89bc20f35ccd1ef12913be..237241229e1976633b24c5a73f4b8b7d428adc58 100644
--- a/chrome/common/extensions/chrome_extension_messages.h
+++ b/chrome/common/extensions/chrome_extension_messages.h
@@ -8,11 +8,15 @@
//
// Multiply-included message file, hence no include guard.
+#include "chrome/common/extensions/api/webstore/webstore_api_constants.h"
#include "chrome/common/web_application_info.h"
#include "ipc/ipc_message_macros.h"
#define IPC_MESSAGE_START ChromeExtensionMsgStart
+IPC_ENUM_TRAITS_MAX_VALUE(extensions::api::webstore::InstallStage,
+ extensions::api::webstore::INSTALL_STAGE_INSTALLING)
+
IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo)
IPC_STRUCT_TRAITS_MEMBER(url)
IPC_STRUCT_TRAITS_MEMBER(width)
@@ -34,6 +38,31 @@ IPC_STRUCT_TRAITS_END()
IPC_MESSAGE_ROUTED1(ChromeExtensionMsg_GetApplicationInfo,
int32 /* page_id */)
+// Sent by the renderer to implement chrome.webstore.install().
+IPC_MESSAGE_ROUTED5(ExtensionHostMsg_InlineWebstoreInstall,
+ int32 /* install id */,
+ int32 /* return route id */,
+ std::string /* Web Store item ID */,
+ GURL /* requestor URL */,
+ int /* listeners_mask */)
+
+// Sent to the renderer if install stage updates were requested for an inline
+// install.
+IPC_MESSAGE_ROUTED1(ExtensionMsg_InlineInstallStageChanged,
+ extensions::api::webstore::InstallStage /* stage */)
+
+// Sent to the renderer if download progress updates were requested for an
+// inline install.
+IPC_MESSAGE_ROUTED1(ExtensionMsg_InlineInstallDownloadProgress,
+ int /* percent_downloaded */)
+
+// Send to renderer once the installation mentioned on
+// ExtensionHostMsg_InlineWebstoreInstall is complete.
+IPC_MESSAGE_ROUTED3(ExtensionMsg_InlineWebstoreInstallResponse,
+ int32 /* install id */,
+ bool /* whether the install was successful */,
+ std::string /* error */)
+
// Messages sent from the renderer to the browser.
IPC_MESSAGE_ROUTED2(ChromeExtensionHostMsg_DidGetApplicationInfo,
« no previous file with comments | « chrome/common/extensions/api/webstore/webstore_api_constants.cc ('k') | chrome/renderer/extensions/webstore_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698