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 <stdint.h> |
| 12 |
11 #include <string> | 13 #include <string> |
12 | 14 |
13 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
14 #include "base/values.h" | 16 #include "base/values.h" |
15 #include "chrome/common/extensions/api/automation_internal.h" | 17 #include "chrome/common/extensions/api/automation_internal.h" |
16 #include "chrome/common/extensions/api/webstore/webstore_api_constants.h" | 18 #include "chrome/common/extensions/api/webstore/webstore_api_constants.h" |
17 #include "chrome/common/extensions/webstore_install_result.h" | 19 #include "chrome/common/extensions/webstore_install_result.h" |
18 #include "extensions/common/stack_frame.h" | 20 #include "extensions/common/stack_frame.h" |
19 #include "ipc/ipc_message_macros.h" | 21 #include "ipc/ipc_message_macros.h" |
20 #include "ui/accessibility/ax_enums.h" | 22 #include "ui/accessibility/ax_enums.h" |
(...skipping 22 matching lines...) Expand all Loading... |
43 extensions::api::webstore::InstallStage /* stage */) | 45 extensions::api::webstore::InstallStage /* stage */) |
44 | 46 |
45 // Sent to the renderer if download progress updates were requested for an | 47 // Sent to the renderer if download progress updates were requested for an |
46 // inline install. | 48 // inline install. |
47 IPC_MESSAGE_ROUTED1(ExtensionMsg_InlineInstallDownloadProgress, | 49 IPC_MESSAGE_ROUTED1(ExtensionMsg_InlineInstallDownloadProgress, |
48 int /* percent_downloaded */) | 50 int /* percent_downloaded */) |
49 | 51 |
50 // Send to renderer once the installation mentioned on | 52 // Send to renderer once the installation mentioned on |
51 // ExtensionHostMsg_InlineWebstoreInstall is complete. | 53 // ExtensionHostMsg_InlineWebstoreInstall is complete. |
52 IPC_MESSAGE_ROUTED4(ExtensionMsg_InlineWebstoreInstallResponse, | 54 IPC_MESSAGE_ROUTED4(ExtensionMsg_InlineWebstoreInstallResponse, |
53 int32 /* install id */, | 55 int32_t /* install id */, |
54 bool /* whether the install was successful */, | 56 bool /* whether the install was successful */, |
55 std::string /* error */, | 57 std::string /* error */, |
56 extensions::webstore_install::Result /* result */) | 58 extensions::webstore_install::Result /* result */) |
57 | 59 |
58 IPC_STRUCT_TRAITS_BEGIN(ui::AXNodeData) | 60 IPC_STRUCT_TRAITS_BEGIN(ui::AXNodeData) |
59 IPC_STRUCT_TRAITS_MEMBER(id) | 61 IPC_STRUCT_TRAITS_MEMBER(id) |
60 IPC_STRUCT_TRAITS_MEMBER(role) | 62 IPC_STRUCT_TRAITS_MEMBER(role) |
61 IPC_STRUCT_TRAITS_MEMBER(state) | 63 IPC_STRUCT_TRAITS_MEMBER(state) |
62 IPC_STRUCT_TRAITS_MEMBER(location) | 64 IPC_STRUCT_TRAITS_MEMBER(location) |
63 IPC_STRUCT_TRAITS_MEMBER(string_attributes) | 65 IPC_STRUCT_TRAITS_MEMBER(string_attributes) |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // extension is using the automation API to listen for accessibility events. | 114 // extension is using the automation API to listen for accessibility events. |
113 IPC_MESSAGE_ROUTED2(ExtensionMsg_AccessibilityEvent, | 115 IPC_MESSAGE_ROUTED2(ExtensionMsg_AccessibilityEvent, |
114 ExtensionMsg_AccessibilityEventParams, | 116 ExtensionMsg_AccessibilityEventParams, |
115 bool /* is_active_profile */) | 117 bool /* is_active_profile */) |
116 | 118 |
117 // Messages sent from the renderer to the browser. | 119 // Messages sent from the renderer to the browser. |
118 | 120 |
119 | 121 |
120 // Sent by the renderer to implement chrome.webstore.install(). | 122 // Sent by the renderer to implement chrome.webstore.install(). |
121 IPC_MESSAGE_ROUTED5(ExtensionHostMsg_InlineWebstoreInstall, | 123 IPC_MESSAGE_ROUTED5(ExtensionHostMsg_InlineWebstoreInstall, |
122 int32 /* install id */, | 124 int32_t /* install id */, |
123 int32 /* return route id */, | 125 int32_t /* return route id */, |
124 std::string /* Web Store item ID */, | 126 std::string /* Web Store item ID */, |
125 GURL /* requestor URL */, | 127 GURL /* requestor URL */, |
126 int /* listeners_mask */) | 128 int /* listeners_mask */) |
OLD | NEW |