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

Side by Side Diff: chrome/common/extensions/chrome_extension_messages.h

Issue 2791533002: Convert Web Store Inline Install IPCs to mojo (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
OLDNEW
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
(...skipping 13 matching lines...) Expand all
24 #include "ui/accessibility/ax_relative_bounds.h" 24 #include "ui/accessibility/ax_relative_bounds.h"
25 #include "ui/accessibility/ax_tree_data.h" 25 #include "ui/accessibility/ax_tree_data.h"
26 #include "ui/accessibility/ax_tree_update.h" 26 #include "ui/accessibility/ax_tree_update.h"
27 #include "ui/gfx/transform.h" 27 #include "ui/gfx/transform.h"
28 #include "url/gurl.h" 28 #include "url/gurl.h"
29 29
30 #define IPC_MESSAGE_START ChromeExtensionMsgStart 30 #define IPC_MESSAGE_START ChromeExtensionMsgStart
31 31
32 IPC_ENUM_TRAITS_MAX_VALUE(extensions::api::webstore::InstallStage, 32 IPC_ENUM_TRAITS_MAX_VALUE(extensions::api::webstore::InstallStage,
33 extensions::api::webstore::INSTALL_STAGE_INSTALLING) 33 extensions::api::webstore::INSTALL_STAGE_INSTALLING)
34 IPC_ENUM_TRAITS_MAX_VALUE(extensions::webstore_install::Result, 34 IPC_ENUM_TRAITS_MAX_VALUE(extensions::webstore_install::Result,
catmullings 2017/03/31 00:08:21 Can these IPC_ENUMs be removed? They've been redef
Devlin 2017/03/31 14:18:39 Hmm... the [native] tag on the mojo equivalents me
catmullings 2017/04/06 20:50:15 I think you are right that inline_install_traits.h
35 extensions::webstore_install::RESULT_LAST) 35 extensions::webstore_install::RESULT_LAST)
36 36
37 // Messages sent from the browser to the renderer. 37 // Messages sent from the browser to the renderer.
38 38
39 // Sent to the renderer if install stage updates were requested for an inline
40 // install.
41 IPC_MESSAGE_ROUTED1(ExtensionMsg_InlineInstallStageChanged,
42 extensions::api::webstore::InstallStage /* stage */)
43
44 // Sent to the renderer if download progress updates were requested for an
45 // inline install.
46 IPC_MESSAGE_ROUTED1(ExtensionMsg_InlineInstallDownloadProgress,
47 int /* percent_downloaded */)
48
49 // Send to renderer once the installation mentioned on
50 // ExtensionHostMsg_InlineWebstoreInstall is complete.
51 IPC_MESSAGE_ROUTED4(ExtensionMsg_InlineWebstoreInstallResponse,
52 int32_t /* install id */,
53 bool /* whether the install was successful */,
54 std::string /* error */,
55 extensions::webstore_install::Result /* result */)
56
57 IPC_STRUCT_TRAITS_BEGIN(ui::AXNodeData) 39 IPC_STRUCT_TRAITS_BEGIN(ui::AXNodeData)
58 IPC_STRUCT_TRAITS_MEMBER(id) 40 IPC_STRUCT_TRAITS_MEMBER(id)
59 IPC_STRUCT_TRAITS_MEMBER(role) 41 IPC_STRUCT_TRAITS_MEMBER(role)
60 IPC_STRUCT_TRAITS_MEMBER(state) 42 IPC_STRUCT_TRAITS_MEMBER(state)
61 IPC_STRUCT_TRAITS_MEMBER(location) 43 IPC_STRUCT_TRAITS_MEMBER(location)
62 IPC_STRUCT_TRAITS_MEMBER(transform) 44 IPC_STRUCT_TRAITS_MEMBER(transform)
63 IPC_STRUCT_TRAITS_MEMBER(string_attributes) 45 IPC_STRUCT_TRAITS_MEMBER(string_attributes)
64 IPC_STRUCT_TRAITS_MEMBER(int_attributes) 46 IPC_STRUCT_TRAITS_MEMBER(int_attributes)
65 IPC_STRUCT_TRAITS_MEMBER(float_attributes) 47 IPC_STRUCT_TRAITS_MEMBER(float_attributes)
66 IPC_STRUCT_TRAITS_MEMBER(bool_attributes) 48 IPC_STRUCT_TRAITS_MEMBER(bool_attributes)
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 IPC_MESSAGE_ROUTED2(ExtensionMsg_AccessibilityEvent, 118 IPC_MESSAGE_ROUTED2(ExtensionMsg_AccessibilityEvent,
137 ExtensionMsg_AccessibilityEventParams, 119 ExtensionMsg_AccessibilityEventParams,
138 bool /* is_active_profile */) 120 bool /* is_active_profile */)
139 121
140 // Forward an accessibility location change message to an extension process 122 // Forward an accessibility location change message to an extension process
141 // where an extension is using the automation API to listen for 123 // where an extension is using the automation API to listen for
142 // accessibility events. 124 // accessibility events.
143 IPC_MESSAGE_ROUTED1(ExtensionMsg_AccessibilityLocationChange, 125 IPC_MESSAGE_ROUTED1(ExtensionMsg_AccessibilityLocationChange,
144 ExtensionMsg_AccessibilityLocationChangeParams) 126 ExtensionMsg_AccessibilityLocationChangeParams)
145 127
146 // Messages sent from the renderer to the browser.
147
148
149 // Sent by the renderer to implement chrome.webstore.install().
150 IPC_MESSAGE_ROUTED4(ExtensionHostMsg_InlineWebstoreInstall,
151 int32_t /* install id */,
152 int32_t /* return route id */,
153 std::string /* Web Store item ID */,
154 int /* listeners_mask */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698