OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Chrome-specific IPC messages for extensions. | 5 // Chrome-specific IPC messages for extensions. |
6 // Extension-related messages that aren't specific to Chrome live in | 6 // Extension-related messages that aren't specific to Chrome live in |
7 // extensions/common/extension_messages.h. | 7 // extensions/common/extension_messages.h. |
8 // | 8 // |
9 // Multiply-included message file, hence no include guard. | 9 // Multiply-included message file, hence no include guard. |
10 | 10 |
11 #include "chrome/common/extensions/api/webstore/webstore_api_constants.h" | 11 #include "chrome/common/extensions/api/webstore/webstore_api_constants.h" |
| 12 #include "chrome/common/extensions/webstore_install_result.h" |
12 #include "chrome/common/web_application_info.h" | 13 #include "chrome/common/web_application_info.h" |
13 #include "ipc/ipc_message_macros.h" | 14 #include "ipc/ipc_message_macros.h" |
14 | 15 |
15 #define IPC_MESSAGE_START ChromeExtensionMsgStart | 16 #define IPC_MESSAGE_START ChromeExtensionMsgStart |
16 | 17 |
17 IPC_ENUM_TRAITS_MAX_VALUE(extensions::api::webstore::InstallStage, | 18 IPC_ENUM_TRAITS_MAX_VALUE(extensions::api::webstore::InstallStage, |
18 extensions::api::webstore::INSTALL_STAGE_INSTALLING) | 19 extensions::api::webstore::INSTALL_STAGE_INSTALLING) |
| 20 IPC_ENUM_TRAITS_MAX_VALUE(extensions::webstore_install::Result, |
| 21 extensions::webstore_install::RESULT_LAST) |
19 | 22 |
20 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo) | 23 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo) |
21 IPC_STRUCT_TRAITS_MEMBER(url) | 24 IPC_STRUCT_TRAITS_MEMBER(url) |
22 IPC_STRUCT_TRAITS_MEMBER(width) | 25 IPC_STRUCT_TRAITS_MEMBER(width) |
23 IPC_STRUCT_TRAITS_MEMBER(height) | 26 IPC_STRUCT_TRAITS_MEMBER(height) |
24 IPC_STRUCT_TRAITS_MEMBER(data) | 27 IPC_STRUCT_TRAITS_MEMBER(data) |
25 IPC_STRUCT_TRAITS_END() | 28 IPC_STRUCT_TRAITS_END() |
26 | 29 |
27 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo) | 30 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo) |
28 IPC_STRUCT_TRAITS_MEMBER(title) | 31 IPC_STRUCT_TRAITS_MEMBER(title) |
(...skipping 21 matching lines...) Expand all Loading... |
50 IPC_MESSAGE_ROUTED1(ExtensionMsg_InlineInstallStageChanged, | 53 IPC_MESSAGE_ROUTED1(ExtensionMsg_InlineInstallStageChanged, |
51 extensions::api::webstore::InstallStage /* stage */) | 54 extensions::api::webstore::InstallStage /* stage */) |
52 | 55 |
53 // Sent to the renderer if download progress updates were requested for an | 56 // Sent to the renderer if download progress updates were requested for an |
54 // inline install. | 57 // inline install. |
55 IPC_MESSAGE_ROUTED1(ExtensionMsg_InlineInstallDownloadProgress, | 58 IPC_MESSAGE_ROUTED1(ExtensionMsg_InlineInstallDownloadProgress, |
56 int /* percent_downloaded */) | 59 int /* percent_downloaded */) |
57 | 60 |
58 // Send to renderer once the installation mentioned on | 61 // Send to renderer once the installation mentioned on |
59 // ExtensionHostMsg_InlineWebstoreInstall is complete. | 62 // ExtensionHostMsg_InlineWebstoreInstall is complete. |
60 IPC_MESSAGE_ROUTED3(ExtensionMsg_InlineWebstoreInstallResponse, | 63 IPC_MESSAGE_ROUTED4(ExtensionMsg_InlineWebstoreInstallResponse, |
61 int32 /* install id */, | 64 int32 /* install id */, |
62 bool /* whether the install was successful */, | 65 bool /* whether the install was successful */, |
63 std::string /* error */) | 66 std::string /* error */, |
| 67 extensions::webstore_install::Result /* result */) |
64 | 68 |
65 // Messages sent from the renderer to the browser. | 69 // Messages sent from the renderer to the browser. |
66 | 70 |
67 IPC_MESSAGE_ROUTED1(ChromeExtensionHostMsg_DidGetApplicationInfo, | 71 IPC_MESSAGE_ROUTED1(ChromeExtensionHostMsg_DidGetApplicationInfo, |
68 WebApplicationInfo) | 72 WebApplicationInfo) |
OLD | NEW |