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

Side by Side Diff: ppapi/proxy/ppapi_messages_internal.h

Issue 4229002: Core PPAPI proxy files. This includes the dispatcher which is the control poi... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This header is meant to be included in multiple passes, hence no traditional
6 // header guard. It is included by backing_store_messages_internal.h
7 // See ipc_message_macros.h for explanation of the macros and passes.
8
9 // This file needs to be included again, even though we're actually included
10 // from it via utility_messages.h.
11 #include "ipc/ipc_message_macros.h"
12
13 // These are from the plugin to the renderer
14 IPC_BEGIN_MESSAGES(Ppapi)
15 // Loads the given plugin.
16 IPC_MESSAGE_CONTROL2(PpapiMsg_LoadPlugin,
17 FilePath /* path */,
18 int /* renderer_id */)
19
20 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_InitializeModule,
21 PP_Module /* module_id */,
22 bool /* result */)
23
24 // Sent in both directions to see if the other side supports the given
25 // interface.
26 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface,
27 std::string /* interface_name */,
28 bool /* result */)
29
30 // Way for the renderer to list all interfaces that is supports in advance to
31 // avoid extra IPC traffic.
32 IPC_MESSAGE_CONTROL1(PpapiMsg_DeclareInterfaces,
33 std::vector<std::string> /* interfaces */)
34
35 IPC_MESSAGE_CONTROL2(PpapiMsg_ExecuteCallback,
36 uint32 /* serialized_callback */,
37 int32 /* param */)
38
39 // PPP_Class.
40 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty,
41 int64 /* ppp_class */,
42 int64 /* object */,
43 pp::proxy::SerializedVar /* property */,
44 pp::proxy::SerializedVar /* out_exception */,
45 bool /* result */)
46 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod,
47 int64 /* ppp_class */,
48 int64 /* object */,
49 pp::proxy::SerializedVar /* method */,
50 pp::proxy::SerializedVar /* out_exception */,
51 bool /* result */)
52 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_GetProperty,
53 int64 /* ppp_class */,
54 int64 /* object */,
55 pp::proxy::SerializedVar /* property */,
56 pp::proxy::SerializedVar /* out_exception */,
57 pp::proxy::SerializedVar /* result */)
58 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiMsg_PPPClass_EnumerateProperties,
59 int64 /* ppp_class */,
60 int64 /* object */,
61 std::vector<pp::proxy::SerializedVar> /* props */,
62 pp::proxy::SerializedVar /* out_exception */)
63 IPC_SYNC_MESSAGE_ROUTED4_1(PpapiMsg_PPPClass_SetProperty,
64 int64 /* ppp_class */,
65 int64 /* object */,
66 pp::proxy::SerializedVar /* name */,
67 pp::proxy::SerializedVar /* value */,
68 pp::proxy::SerializedVar /* out_exception */)
69 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPClass_RemoveProperty,
70 int64 /* ppp_class */,
71 int64 /* object */,
72 pp::proxy::SerializedVar /* property */,
73 pp::proxy::SerializedVar /* out_exception */)
74 IPC_SYNC_MESSAGE_ROUTED4_2(PpapiMsg_PPPClass_Call,
75 int64 /* ppp_class */,
76 int64 /* object */,
77 pp::proxy::SerializedVar /* method_name */,
78 std::vector<pp::proxy::SerializedVar> /* args */,
79 pp::proxy::SerializedVar /* out_exception */,
80 pp::proxy::SerializedVar /* result */)
81 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_Construct,
82 int64 /* ppp_class */,
83 int64 /* object */,
84 std::vector<pp::proxy::SerializedVar> /* args */,
85 pp::proxy::SerializedVar /* out_exception */,
86 pp::proxy::SerializedVar /* result */)
87 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate,
88 int64 /* ppp_class */,
89 int64 /* object */)
90
91 // PPP_Instance.
92 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate,
93 PP_Instance /* instance */,
94 std::vector<std::string> /* argn */,
95 std::vector<std::string> /* argv */,
96 bool /* result */)
97 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPInstance_DidDestroy,
98 PP_Instance /* instance */)
99 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_DidChangeView,
100 PP_Instance /* instance */,
101 PP_Rect /* position */,
102 PP_Rect /* clip */)
103 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus,
104 PP_Instance /* instance */,
105 bool /* has_focus */)
106 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInstance_HandleInputEvent,
107 PP_Instance /* instance */,
108 PP_InputEvent /* event */,
109 bool /* result */)
110 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInstance_HandleDocumentLoad,
111 PP_Instance /* instance */,
112 PP_Resource /* url_loader */,
113 bool /* result */)
114 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstance_GetInstanceObject,
115 PP_Instance /* instance */,
116 pp::proxy::SerializedVar /* result */)
117
118
119 // PPB_URLLoader
120 // (Messages from browser to plugin to notify it of changes in state.)
121 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBURLLoader_UpdateProgress,
122 PP_Resource /* resource */,
123 int64 /* bytes_sent */,
124 int64 /* total_bytes_to_be_sent */,
125 int64 /* bytes_received */,
126 int64 /* total_bytes_to_be_received */)
127 IPC_END_MESSAGES(Ppapi)
128
129 // -----------------------------------------------------------------------------
130 // These are from the plugin to the renderer.
131 IPC_BEGIN_MESSAGES(PpapiHost)
132 // Reply to PpapiMsg_LoadPlugin.
133 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PluginLoaded,
134 IPC::ChannelHandle /* handle */)
135
136 // PPB_Core.
137 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, PP_Resource)
138 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, PP_Resource)
139 IPC_SYNC_MESSAGE_ROUTED0_1(PpapiHostMsg_PPBCore_GetTime,
140 double /* return value -> time */)
141 IPC_SYNC_MESSAGE_ROUTED0_1(PpapiHostMsg_PPBCore_GetTimeTicks,
142 double /* return value -> time */)
143 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBCore_CallOnMainThread,
144 int /* delay_in_msec */,
145 uint32_t /* serialized_callback */,
146 int32_t /* result */)
147
148 // PPB_Graphics2D.
149 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create,
150 PP_Module /* module */,
151 PP_Size /* size */,
152 bool /* is_always_opaque */,
153 PP_Resource /* result */)
154 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData,
155 PP_Resource /* graphics_2d */,
156 PP_Resource /* image_data */,
157 PP_Point /* top_left */,
158 bool /* src_rect_specified */,
159 PP_Rect /* src_rect */)
160 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBGraphics2D_Scroll,
161 PP_Resource /* graphics_2d */,
162 bool /* clip_specified */,
163 PP_Rect /* clip */,
164 PP_Point /* amount */)
165 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics2D_ReplaceContents,
166 PP_Resource /* graphics_2d */,
167 PP_Resource /* image_data */)
168 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBGraphics2D_Flush,
169 PP_Resource /* graphics_2d */,
170 uint32_t /* serialized_callback */,
171 int32_t /* result */)
172
173 // PPB_ImageData.
174 IPC_SYNC_MESSAGE_ROUTED0_1(
175 PpapiHostMsg_PPBImageData_GetNativeImageDataFormat,
176 int32 /* result_format */)
177 IPC_SYNC_MESSAGE_ROUTED1_1(
178 PpapiHostMsg_PPBImageData_IsImageDataFormatSupported,
179 int32 /* format */,
180 bool /* result */)
181 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_Create,
182 PP_Module /* module */,
183 int32 /* format */,
184 PP_Size /* size */,
185 bool /* init_to_zero */,
186 PP_Resource /* result_resource */,
187 std::string /* image_data_desc */,
188 uint64_t /* result_shm_handle */)
189
190 // PPB_Instance.
191 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject,
192 PP_Instance /* instance */,
193 pp::proxy::SerializedVar /* result */)
194 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject,
195 PP_Instance /* instance */,
196 pp::proxy::SerializedVar /* result */)
197 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_BindGraphics,
198 PP_Instance /* instance */,
199 PP_Resource /* device */,
200 bool /* result */)
201 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_IsFullFrame,
202 PP_Instance /* instance */,
203 bool /* result */)
204 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBInstance_ExecuteScript,
205 PP_Instance /* instance */,
206 pp::proxy::SerializedVar /* script */,
207 pp::proxy::SerializedVar /* out_exception */,
208 pp::proxy::SerializedVar /* result */)
209
210 // PPB_URLLoader.
211 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create,
212 PP_Instance /* instance */,
213 PP_Resource /* result */)
214 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBURLLoader_Open,
215 PP_Resource /* loader */,
216 PP_Resource /*request_info */,
217 uint32_t /* serialized_callback */)
218 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_FollowRedirect,
219 PP_Resource /* loader */,
220 uint32_t /* serialized_callback */)
221 IPC_SYNC_MESSAGE_ROUTED1_3(PpapiHostMsg_PPBURLLoader_GetUploadProgress,
222 PP_Resource /* loader */,
223 int64 /* bytes_sent */,
224 int64 /* total_bytes_to_be_sent */,
225 bool /* result */)
226 IPC_SYNC_MESSAGE_ROUTED1_3(PpapiHostMsg_PPBURLLoader_GetDownloadProgress,
227 PP_Resource /* loader */,
228 int64 /* bytes_received */,
229 int64 /* total_bytes_to_be_received */,
230 bool /* result */)
231 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_GetResponseInfo,
232 PP_Resource /* loader */,
233 PP_Resource /* response_info_out */)
234 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBURLLoader_ReadResponseBody,
235 PP_Resource /* loader */,
236 int32_t /* bytes_to_read */,
237 uint32_t /* serialized_callback */)
238 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_FinishStreamingToFile,
239 PP_Resource /* loader */,
240 uint32_t /* serialized_callback */)
241 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_Close,
242 PP_Resource /* loader */)
243
244 // PPB_Var.
245 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_AddRefObject,
246 int64 /* object_id */)
247 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_ReleaseObject,
248 int64 /* object_id */)
249 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_ConvertType,
250 PP_Instance /* instance */,
251 pp::proxy::SerializedVar /* var */,
252 int /* new_type */,
253 pp::proxy::SerializedVar /* exception */,
254 pp::proxy::SerializedVar /* result */)
255 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBVar_DefineProperty,
256 pp::proxy::SerializedVar /* object */,
257 PP_ObjectProperty /* property */,
258 pp::proxy::SerializedVar /* out_exception */)
259 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasProperty,
260 pp::proxy::SerializedVar /* object */,
261 pp::proxy::SerializedVar /* property */,
262 pp::proxy::SerializedVar /* out_exception */,
263 bool /* result */)
264 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasMethodDeprecated,
265 pp::proxy::SerializedVar /* object */,
266 pp::proxy::SerializedVar /* method */,
267 pp::proxy::SerializedVar /* out_exception */,
268 bool /* result */)
269 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_GetProperty,
270 pp::proxy::SerializedVar /* object */,
271 pp::proxy::SerializedVar /* property */,
272 pp::proxy::SerializedVar /* out_exception */,
273 pp::proxy::SerializedVar /* result */)
274 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_DeleteProperty,
275 pp::proxy::SerializedVar /* object */,
276 pp::proxy::SerializedVar /* property */,
277 pp::proxy::SerializedVar /* out_exception */,
278 bool /* result */)
279 IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBVar_EnumerateProperties,
280 pp::proxy::SerializedVar /* object */,
281 std::vector<pp::proxy::SerializedVar> /* props */,
282 pp::proxy::SerializedVar /* out_exception */)
283 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_SetPropertyDeprecated,
284 pp::proxy::SerializedVar /* object */,
285 pp::proxy::SerializedVar /* name */,
286 pp::proxy::SerializedVar /* value */,
287 pp::proxy::SerializedVar /* out_exception */)
288 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVar_IsCallable,
289 pp::proxy::SerializedVar /* object */,
290 bool /* result */)
291 IPC_SYNC_MESSAGE_ROUTED4_2(PpapiHostMsg_PPBVar_Call,
292 pp::proxy::SerializedVar /* object */,
293 pp::proxy::SerializedVar /* this_object */,
294 pp::proxy::SerializedVar /* method_name */,
295 std::vector<pp::proxy::SerializedVar> /* args */,
296 pp::proxy::SerializedVar /* out_exception */,
297 pp::proxy::SerializedVar /* result */)
298 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_CallDeprecated,
299 pp::proxy::SerializedVar /* object */,
300 pp::proxy::SerializedVar /* method_name */,
301 std::vector<pp::proxy::SerializedVar> /* args */,
302 pp::proxy::SerializedVar /* out_exception */,
303 pp::proxy::SerializedVar /* result */)
304 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_Construct,
305 pp::proxy::SerializedVar /* object */,
306 std::vector<pp::proxy::SerializedVar> /* args */,
307 pp::proxy::SerializedVar /* out_exception */,
308 pp::proxy::SerializedVar /* result */)
309 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated,
310 pp::proxy::SerializedVar /* var */,
311 int64 /* object_class */,
312 int64 /* object-data */,
313 bool /* result */)
314 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated,
315 PP_Module /* module */,
316 int64 /* object_class */,
317 int64 /* object_data */,
318 pp::proxy::SerializedVar /* result */)
319
320 IPC_END_MESSAGES(PpapiHost)
321
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698