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 */, |
jln (very slow on Chromium)
2014/03/25 02:18:00
Is there any way we could type this properly rathe
Devlin
2014/03/25 17:31:59
Probably not. "Web Store item ID" is a fancy way o
|
+ 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 */) |
jln (very slow on Chromium)
2014/03/25 02:18:00
Any way this could be an error message index inste
Devlin
2014/03/25 17:31:59
Not sure I follow on "error message index"?
|
+ |
// Messages sent from the renderer to the browser. |
IPC_MESSAGE_ROUTED2(ChromeExtensionHostMsg_DidGetApplicationInfo, |