| 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 <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 14 #include "chrome/common/extensions/api/webstore/webstore_api_constants.h" | 14 #include "chrome/common/extensions/api/webstore/webstore_api_constants.h" |
| 15 #include "chrome/common/extensions/webstore_install_result.h" |
| 15 #include "chrome/common/web_application_info.h" | 16 #include "chrome/common/web_application_info.h" |
| 16 #include "extensions/common/stack_frame.h" | 17 #include "extensions/common/stack_frame.h" |
| 17 #include "ipc/ipc_message_macros.h" | 18 #include "ipc/ipc_message_macros.h" |
| 18 #include "url/gurl.h" | 19 #include "url/gurl.h" |
| 19 | 20 |
| 20 #define IPC_MESSAGE_START ChromeExtensionMsgStart | 21 #define IPC_MESSAGE_START ChromeExtensionMsgStart |
| 21 | 22 |
| 22 IPC_ENUM_TRAITS_MAX_VALUE(extensions::api::webstore::InstallStage, | 23 IPC_ENUM_TRAITS_MAX_VALUE(extensions::api::webstore::InstallStage, |
| 23 extensions::api::webstore::INSTALL_STAGE_INSTALLING) | 24 extensions::api::webstore::INSTALL_STAGE_INSTALLING) |
| 25 IPC_ENUM_TRAITS_MAX_VALUE(extensions::webstore_install::Result, |
| 26 extensions::webstore_install::RESULT_LAST) |
| 24 | 27 |
| 25 IPC_STRUCT_TRAITS_BEGIN(extensions::StackFrame) | 28 IPC_STRUCT_TRAITS_BEGIN(extensions::StackFrame) |
| 26 IPC_STRUCT_TRAITS_MEMBER(line_number) | 29 IPC_STRUCT_TRAITS_MEMBER(line_number) |
| 27 IPC_STRUCT_TRAITS_MEMBER(column_number) | 30 IPC_STRUCT_TRAITS_MEMBER(column_number) |
| 28 IPC_STRUCT_TRAITS_MEMBER(source) | 31 IPC_STRUCT_TRAITS_MEMBER(source) |
| 29 IPC_STRUCT_TRAITS_MEMBER(function) | 32 IPC_STRUCT_TRAITS_MEMBER(function) |
| 30 IPC_STRUCT_TRAITS_END() | 33 IPC_STRUCT_TRAITS_END() |
| 31 | 34 |
| 32 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo) | 35 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo) |
| 33 IPC_STRUCT_TRAITS_MEMBER(url) | 36 IPC_STRUCT_TRAITS_MEMBER(url) |
| (...skipping 29 matching lines...) Expand all Loading... |
| 63 IPC_MESSAGE_ROUTED1(ExtensionMsg_InlineInstallStageChanged, | 66 IPC_MESSAGE_ROUTED1(ExtensionMsg_InlineInstallStageChanged, |
| 64 extensions::api::webstore::InstallStage /* stage */) | 67 extensions::api::webstore::InstallStage /* stage */) |
| 65 | 68 |
| 66 // Sent to the renderer if download progress updates were requested for an | 69 // Sent to the renderer if download progress updates were requested for an |
| 67 // inline install. | 70 // inline install. |
| 68 IPC_MESSAGE_ROUTED1(ExtensionMsg_InlineInstallDownloadProgress, | 71 IPC_MESSAGE_ROUTED1(ExtensionMsg_InlineInstallDownloadProgress, |
| 69 int /* percent_downloaded */) | 72 int /* percent_downloaded */) |
| 70 | 73 |
| 71 // Send to renderer once the installation mentioned on | 74 // Send to renderer once the installation mentioned on |
| 72 // ExtensionHostMsg_InlineWebstoreInstall is complete. | 75 // ExtensionHostMsg_InlineWebstoreInstall is complete. |
| 73 IPC_MESSAGE_ROUTED3(ExtensionMsg_InlineWebstoreInstallResponse, | 76 IPC_MESSAGE_ROUTED4(ExtensionMsg_InlineWebstoreInstallResponse, |
| 74 int32 /* install id */, | 77 int32 /* install id */, |
| 75 bool /* whether the install was successful */, | 78 bool /* whether the install was successful */, |
| 76 std::string /* error */) | 79 std::string /* error */, |
| 80 extensions::webstore_install::Result /* result */) |
| 77 | 81 |
| 78 // Messages sent from the renderer to the browser. | 82 // Messages sent from the renderer to the browser. |
| 79 | 83 |
| 80 // Informs the browser of updated frame names. | 84 // Informs the browser of updated frame names. |
| 81 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_UpdateFrameName, | 85 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_UpdateFrameName, |
| 82 bool /* is_top_level */, | 86 bool /* is_top_level */, |
| 83 std::string /* name */) | 87 std::string /* name */) |
| 84 | 88 |
| 85 // Sent by the renderer to check if a URL has permission to trigger a clipboard | 89 // Sent by the renderer to check if a URL has permission to trigger a clipboard |
| 86 // read/write operation from the DOM. | 90 // read/write operation from the DOM. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 102 // Sent by the renderer to implement chrome.webstore.install(). | 106 // Sent by the renderer to implement chrome.webstore.install(). |
| 103 IPC_MESSAGE_ROUTED5(ExtensionHostMsg_InlineWebstoreInstall, | 107 IPC_MESSAGE_ROUTED5(ExtensionHostMsg_InlineWebstoreInstall, |
| 104 int32 /* install id */, | 108 int32 /* install id */, |
| 105 int32 /* return route id */, | 109 int32 /* return route id */, |
| 106 std::string /* Web Store item ID */, | 110 std::string /* Web Store item ID */, |
| 107 GURL /* requestor URL */, | 111 GURL /* requestor URL */, |
| 108 int /* listeners_mask */) | 112 int /* listeners_mask */) |
| 109 | 113 |
| 110 IPC_MESSAGE_ROUTED1(ChromeExtensionHostMsg_DidGetApplicationInfo, | 114 IPC_MESSAGE_ROUTED1(ChromeExtensionHostMsg_DidGetApplicationInfo, |
| 111 WebApplicationInfo) | 115 WebApplicationInfo) |
| OLD | NEW |