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

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

Issue 6686057: Convert ppapi messages to new format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/ppapi_shared_proxy.gypi ('k') | ppapi/proxy/ppapi_messages.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef PPAPI_PROXY_PPAPI_MESSAGES_H_ 5 // Multiply-included message header, no traditional include guard.
6 #define PPAPI_PROXY_PPAPI_MESSAGES_H_
7 #pragma once
8
9 #include <string> 6 #include <string>
10 #include <vector> 7 #include <vector>
11 8
12 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/file_path.h"
13 #include "base/process.h" 11 #include "base/process.h"
14 #include "base/shared_memory.h" 12 #include "base/shared_memory.h"
15 #include "base/string16.h" 13 #include "base/string16.h"
16 #include "base/sync_socket.h" 14 #include "base/sync_socket.h"
15 #include "gpu/command_buffer/common/command_buffer.h"
16 #include "gpu/ipc/gpu_command_buffer_traits.h"
17 #include "ipc/ipc_channel_handle.h"
18 #include "ipc/ipc_message_macros.h"
17 #include "ipc/ipc_message_utils.h" 19 #include "ipc/ipc_message_utils.h"
18 #include "ipc/ipc_platform_file.h" 20 #include "ipc/ipc_platform_file.h"
21 #include "ppapi/c/dev/pp_file_info_dev.h"
19 #include "ppapi/c/pp_bool.h" 22 #include "ppapi/c/pp_bool.h"
20 #include "ppapi/c/pp_instance.h" 23 #include "ppapi/c/pp_instance.h"
21 #include "ppapi/c/pp_module.h" 24 #include "ppapi/c/pp_module.h"
22 #include "ppapi/c/pp_resource.h" 25 #include "ppapi/c/pp_resource.h"
26 #include "ppapi/c/ppb_var.h"
23 #include "ppapi/proxy/ppapi_param_traits.h" 27 #include "ppapi/proxy/ppapi_param_traits.h"
24 #include "ppapi/proxy/serialized_flash_menu.h" 28 #include "ppapi/proxy/serialized_flash_menu.h"
25 #include "ppapi/proxy/serialized_structs.h" 29 #include "ppapi/proxy/serialized_structs.h"
26 30
27 #include "ppapi/proxy/ppapi_messages_internal.h" 31 #define IPC_MESSAGE_START PpapiMsgStart
28 32
29 #endif // PPAPI_PROXY_PPAPI_MESSAGES_H_ 33 // These are from the plugin to the renderer
34 // Loads the given plugin.
35 IPC_MESSAGE_CONTROL1(PpapiMsg_LoadPlugin, FilePath /* path */)
36
37 // Creates a channel to talk to a renderer. The plugin will respond with
38 // PpapiHostMsg_ChannelCreated.
39 IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel,
40 base::ProcessHandle /* host_process_handle */,
41 int /* renderer_id */);
42
43 // Each plugin may be referenced by multiple renderers. We need the instance
44 // IDs to be unique within a plugin, despite coming from different renderers,
45 // and unique within a renderer, despite going to different plugins. This means
46 // that neither the renderer nor the plugin can generate instance IDs without
47 // consulting the other.
48 //
49 // We resolve this by having the renderer generate a unique instance ID inside
50 // its process. It then asks the plugin to reserve that ID by sending this sync
51 // message. If the plugin has not yet seen this ID, it will remember it as used
52 // (to prevent a race condition if another renderer tries to then use the same
53 // instance), and set usable as true.
54 //
55 // If the plugin has already seen the instance ID, it will set usable as false
56 // and the renderer must retry a new instance ID.
57 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_ReserveInstanceId,
58 PP_Instance /* instance */,
59 bool /* usable */)
60
61 // Sent in both directions to see if the other side supports the given
62 // interface.
63 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface,
64 std::string /* interface_name */,
65 bool /* result */)
66
67 IPC_MESSAGE_CONTROL2(PpapiMsg_ExecuteCallback,
68 uint32 /* serialized_callback */,
69 int32 /* param */)
70
71 // PPB_Audio.
72
73 // Notifies the result of the audio stream create call. This is called in
74 // both error cases and in the normal success case. These cases are
75 // differentiated by the result code, which is one of the standard PPAPI
76 // result codes.
77 //
78 // The handler of this message should always close all of the handles passed
79 // in, since some could be valid even in the error case.
80 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBAudio_NotifyAudioStreamCreated,
81 pp::proxy::HostResource /* audio_id */,
82 int32_t /* result_code (will be != PP_OK on failure) */,
83 IPC::PlatformFileForTransit /* socket_handle */,
84 base::SharedMemoryHandle /* handle */,
85 int32_t /* length */)
86
87 // PPB_FileChooser.
88 IPC_MESSAGE_ROUTED3(
89 PpapiMsg_PPBFileChooser_ChooseComplete,
90 pp::proxy::HostResource /* chooser */,
91 int32_t /* result_code (will be != PP_OK on failure */,
92 std::vector<pp::proxy::PPBFileRef_CreateInfo> /* chosen_files */)
93
94 // PPB_FileSystem.
95 IPC_MESSAGE_ROUTED2(
96 PpapiMsg_PPBFileSystem_OpenComplete,
97 pp::proxy::HostResource /* filesystem */,
98 int32_t /* result */)
99
100 // PPB_Graphics2D.
101 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK,
102 pp::proxy::HostResource /* graphics_2d */,
103 int32_t /* pp_error */)
104
105 // PPB_Surface3D.
106 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBSurface3D_SwapBuffersACK,
107 pp::proxy::HostResource /* surface_3d */,
108 int32_t /* pp_error */)
109
110 // PPP_Class.
111 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty,
112 int64 /* ppp_class */,
113 int64 /* object */,
114 pp::proxy::SerializedVar /* property */,
115 pp::proxy::SerializedVar /* out_exception */,
116 bool /* result */)
117 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod,
118 int64 /* ppp_class */,
119 int64 /* object */,
120 pp::proxy::SerializedVar /* method */,
121 pp::proxy::SerializedVar /* out_exception */,
122 bool /* result */)
123 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_GetProperty,
124 int64 /* ppp_class */,
125 int64 /* object */,
126 pp::proxy::SerializedVar /* property */,
127 pp::proxy::SerializedVar /* out_exception */,
128 pp::proxy::SerializedVar /* result */)
129 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiMsg_PPPClass_EnumerateProperties,
130 int64 /* ppp_class */,
131 int64 /* object */,
132 std::vector<pp::proxy::SerializedVar> /* props */,
133 pp::proxy::SerializedVar /* out_exception */)
134 IPC_SYNC_MESSAGE_ROUTED4_1(PpapiMsg_PPPClass_SetProperty,
135 int64 /* ppp_class */,
136 int64 /* object */,
137 pp::proxy::SerializedVar /* name */,
138 pp::proxy::SerializedVar /* value */,
139 pp::proxy::SerializedVar /* out_exception */)
140 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPClass_RemoveProperty,
141 int64 /* ppp_class */,
142 int64 /* object */,
143 pp::proxy::SerializedVar /* property */,
144 pp::proxy::SerializedVar /* out_exception */)
145 IPC_SYNC_MESSAGE_ROUTED4_2(PpapiMsg_PPPClass_Call,
146 int64 /* ppp_class */,
147 int64 /* object */,
148 pp::proxy::SerializedVar /* method_name */,
149 std::vector<pp::proxy::SerializedVar> /* args */,
150 pp::proxy::SerializedVar /* out_exception */,
151 pp::proxy::SerializedVar /* result */)
152 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_Construct,
153 int64 /* ppp_class */,
154 int64 /* object */,
155 std::vector<pp::proxy::SerializedVar> /* args */,
156 pp::proxy::SerializedVar /* out_exception */,
157 pp::proxy::SerializedVar /* result */)
158 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate,
159 int64 /* ppp_class */,
160 int64 /* object */)
161
162 // PPP_Instance.
163 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate,
164 PP_Instance /* instance */,
165 std::vector<std::string> /* argn */,
166 std::vector<std::string> /* argv */,
167 PP_Bool /* result */)
168 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPInstance_DidDestroy,
169 PP_Instance /* instance */)
170 // TODO(piman): DidChangeView should be async, but doing so causes an issue with
171 // webkit and accelerated compositing. Turn back to async once this is fixed.
172 IPC_SYNC_MESSAGE_ROUTED3_0(PpapiMsg_PPPInstance_DidChangeView,
173 PP_Instance /* instance */,
174 PP_Rect /* position */,
175 PP_Rect /* clip */)
176 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus,
177 PP_Instance /* instance */,
178 PP_Bool /* has_focus */)
179 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInstance_HandleInputEvent,
180 PP_Instance /* instance */,
181 PP_InputEvent /* event */,
182 PP_Bool /* result */)
183 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInstance_HandleDocumentLoad,
184 PP_Instance /* instance */,
185 pp::proxy::HostResource /* url_loader */,
186 PP_Bool /* result */)
187 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstance_GetInstanceObject,
188 PP_Instance /* instance */,
189 pp::proxy::SerializedVar /* result */)
190
191
192 // PPB_URLLoader
193 // (Messages from browser to plugin to notify it of changes in state.)
194 IPC_MESSAGE_ROUTED1(PpapiMsg_PPBURLLoader_UpdateProgress,
195 pp::proxy::PPBURLLoader_UpdateProgress_Params /* params */)
196 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBURLLoader_ReadResponseBody_Ack,
197 pp::proxy::HostResource /* loader */,
198 int32 /* result */,
199 std::string /* data */)
200
201 // -----------------------------------------------------------------------------
202 // These are from the plugin to the renderer.
203
204 // Reply to PpapiMsg_CreateChannel. The handle will be NULL if the channel
205 // could not be established. This could be because the IPC could not be created
206 // for some weird reason, but more likely that the plugin failed to load or
207 // initialize properly.
208 IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated,
209 IPC::ChannelHandle /* handle */)
210
211 // PPB_Audio.
212 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBAudio_Create,
213 PP_Instance /* instance_id */,
214 pp::proxy::HostResource /* config_id */,
215 pp::proxy::HostResource /* result */)
216 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop,
217 pp::proxy::HostResource /* audio_id */,
218 bool /* play */)
219
220 // PPB_AudioConfig.
221 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudioConfig_Create,
222 PP_Instance /* instance */,
223 int32_t /* sample_rate */,
224 uint32_t /* sample_frame_count */,
225 pp::proxy::HostResource /* result */)
226 IPC_SYNC_MESSAGE_ROUTED2_1(
227 PpapiHostMsg_PPBAudioConfig_RecommendSampleFrameCount,
228 int32_t /* sample_rate */,
229 uint32_t /* requested */,
230 uint32_t /* result */)
231
232 // PPB_Buffer.
233 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBBuffer_Create,
234 PP_Instance /* instance */,
235 uint32_t /* size */,
236 pp::proxy::HostResource /* result_resource */,
237 int32_t /* result_shm_handle */)
238
239 // PPB_Console.
240 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBConsole_Log,
241 PP_Instance /* instance */,
242 int /* log_level */,
243 pp::proxy::SerializedVar /* value */)
244 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBConsole_LogWithSource,
245 PP_Instance /* instance */,
246 int /* log_level */,
247 pp::proxy::SerializedVar /* soruce */,
248 pp::proxy::SerializedVar /* value */)
249
250 // PPB_Context3D.
251 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBContext3D_Create,
252 PP_Instance /* instance */,
253 int32_t /* config */,
254 std::vector<int32_t> /* attrib_list */,
255 pp::proxy::HostResource /* result */)
256
257 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBContext3D_BindSurfaces,
258 pp::proxy::HostResource /* context */,
259 pp::proxy::HostResource /* draw */,
260 pp::proxy::HostResource /* read */,
261 int32_t /* result */)
262
263 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBContext3D_Initialize,
264 pp::proxy::HostResource /* context */,
265 int32 /* size */,
266 base::SharedMemoryHandle /* ring_buffer */)
267
268 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBContext3D_GetState,
269 pp::proxy::HostResource /* context */,
270 gpu::CommandBuffer::State /* state */)
271
272 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBContext3D_Flush,
273 pp::proxy::HostResource /* context */,
274 int32 /* put_offset */,
275 gpu::CommandBuffer::State /* state */)
276
277 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBContext3D_AsyncFlush,
278 pp::proxy::HostResource /* context */,
279 int32 /* put_offset */)
280
281 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBContext3D_CreateTransferBuffer,
282 pp::proxy::HostResource /* context */,
283 int32 /* size */,
284 int32 /* id */)
285
286 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBContext3D_DestroyTransferBuffer,
287 pp::proxy::HostResource /* context */,
288 int32 /* id */)
289
290 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBContext3D_GetTransferBuffer,
291 pp::proxy::HostResource /* context */,
292 int32 /* id */,
293 base::SharedMemoryHandle /* transfer_buffer */,
294 uint32 /* size */)
295
296 // PPB_Core.
297 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource,
298 pp::proxy::HostResource)
299 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource,
300 pp::proxy::HostResource)
301
302 // PPB_CharSet.
303 IPC_SYNC_MESSAGE_ROUTED4_2(PpapiHostMsg_PPBCharSet_UTF16ToCharSet,
304 PP_Instance /* instance */,
305 string16 /* utf16 */,
306 std::string /* char_set */,
307 int32_t /* on_error */,
308 std::string /* output */,
309 bool /* output_is_success */)
310 IPC_SYNC_MESSAGE_ROUTED4_2(PpapiHostMsg_PPBCharSet_CharSetToUTF16,
311 PP_Instance /* instance */,
312 std::string /* input */,
313 std::string /* char_set */,
314 int32_t /* on_error */,
315 string16 /* output */,
316 bool /* output_is_success */)
317 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCharSet_GetDefaultCharSet,
318 PP_Instance /* instance */,
319 pp::proxy::SerializedVar /* result */)
320
321 // PPB_CursorControl.
322 IPC_SYNC_MESSAGE_ROUTED4_1(PpapiHostMsg_PPBCursorControl_SetCursor,
323 PP_Instance /* instance */,
324 int32_t /* type */,
325 pp::proxy::HostResource /* custom_image */,
326 PP_Point /* hot_spot */,
327 PP_Bool /* result */)
328 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_LockCursor,
329 PP_Instance /* instance */,
330 PP_Bool /* result */)
331 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_UnlockCursor,
332 PP_Instance /* instance */,
333 PP_Bool /* result */)
334 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_HasCursorLock,
335 PP_Instance /* instance */,
336 PP_Bool /* result */)
337 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_CanLockCursor,
338 PP_Instance /* instance */,
339 PP_Bool /* result */)
340
341 // PPB_FileChooser.
342 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFileChooser_Create,
343 PP_Instance /* instance */,
344 int /* mode */,
345 std::string /* accept_mime_types */,
346 pp::proxy::HostResource /* result */)
347 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileChooser_Show,
348 pp::proxy::HostResource /* file_chooser */)
349
350
351 // PPB_FileRef.
352 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileRef_Create,
353 pp::proxy::HostResource /* file_system */,
354 std::string /* path */,
355 pp::proxy::PPBFileRef_CreateInfo /* result */)
356 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent,
357 pp::proxy::HostResource /* file_ref */,
358 pp::proxy::PPBFileRef_CreateInfo /* result */)
359 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory,
360 pp::proxy::HostResource /* file_ref */,
361 PP_Bool /* make_ancestors */,
362 uint32_t /* serialized_callback */);
363 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileRef_Touch,
364 pp::proxy::HostResource /* file_ref */,
365 PP_Time /* last_access */,
366 PP_Time /* last_modified */,
367 uint32_t /* serialized_callback */);
368 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Delete,
369 pp::proxy::HostResource /* file_ref */,
370 uint32_t /* serialized_callback */);
371 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_Rename,
372 pp::proxy::HostResource /* file_ref */,
373 pp::proxy::HostResource /* new_file_ref */,
374 uint32_t /* serialized_callback */);
375
376 // PPB_FileSystem.
377 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create,
378 PP_Instance /* instance */,
379 int /* type */,
380 pp::proxy::HostResource /* result */)
381 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open,
382 pp::proxy::HostResource /* result */,
383 int64_t /* expected_size */)
384
385 // PPB_Flash.
386 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlash_SetInstanceAlwaysOnTop,
387 PP_Instance /* instance */,
388 PP_Bool /* on_top */)
389 // This has to be synchronous becuase the caller may want to composite on
390 // top of the resulting text after the call is complete.
391 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlash_DrawGlyphs,
392 pp::proxy::PPBFlash_DrawGlyphs_Params /* params */,
393 PP_Bool /* result */)
394 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetProxyForURL,
395 PP_Instance /* instance */,
396 std::string /* url */,
397 pp::proxy::SerializedVar /* result */)
398 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFlash_NavigateToURL,
399 PP_Instance /* instance */,
400 std::string /* url */,
401 std::string /* target */,
402 PP_Bool /* result */)
403 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlash_RunMessageLoop,
404 PP_Instance /* instance */)
405 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlash_QuitMessageLoop,
406 PP_Instance /* instance */)
407
408 // PPB_Flash_Clipboard.
409 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlashClipboard_ReadPlainText,
410 PP_Instance /* instance */,
411 int /* clipboard_type */,
412 pp::proxy::SerializedVar /* result */)
413 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFlashClipboard_WritePlainText,
414 PP_Instance /* instance */,
415 int /* clipboard_type */,
416 pp::proxy::SerializedVar /* text */)
417
418 // PPB_Flash_File_FileRef.
419 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBFlashFile_FileRef_OpenFile,
420 pp::proxy::HostResource /* file_ref */,
421 int32_t /* mode */,
422 IPC::PlatformFileForTransit /* file_handle */,
423 int32_t /* result */)
424 IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBFlashFile_FileRef_QueryFile,
425 pp::proxy::HostResource /* file_ref */,
426 PP_FileInfo_Dev /* info */,
427 int32_t /* result */)
428
429 // PPB_Flash_File_ModuleLocal.
430 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBFlashFile_ModuleLocal_OpenFile,
431 PP_Instance /* instance */,
432 std::string /* path */,
433 int32_t /* mode */,
434 IPC::PlatformFileForTransit /* file_handle */,
435 int32_t /* result */)
436 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFlashFile_ModuleLocal_RenameFile,
437 PP_Instance /* instance */,
438 std::string /* path_from */,
439 std::string /* path_to */,
440 int32_t /* result */)
441 IPC_SYNC_MESSAGE_ROUTED3_1(
442 PpapiHostMsg_PPBFlashFile_ModuleLocal_DeleteFileOrDir,
443 PP_Instance /* instance */,
444 std::string /* path */,
445 PP_Bool /* recursive */,
446 int32_t /* result */)
447 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlashFile_ModuleLocal_CreateDir,
448 PP_Instance /* instance */,
449 std::string /* path */,
450 int32_t /* result */)
451 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBFlashFile_ModuleLocal_QueryFile,
452 PP_Instance /* instance */,
453 std::string /* path */,
454 PP_FileInfo_Dev /* info */,
455 int32_t /* result */)
456 IPC_SYNC_MESSAGE_ROUTED2_2(
457 PpapiHostMsg_PPBFlashFile_ModuleLocal_GetDirContents,
458 PP_Instance /* instance */,
459 std::string /* path */,
460 std::vector<pp::proxy::SerializedDirEntry> /* entries */,
461 int32_t /* result */)
462
463 // PPB_Flash_Menu
464 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlashMenu_Create,
465 PP_Instance /* instance */,
466 pp::proxy::SerializedFlashMenu /* menu_data */,
467 pp::proxy::HostResource /* result */)
468 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlashMenu_Show,
469 pp::proxy::HostResource /* menu */,
470 PP_Point /* location */)
471 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFlashMenu_ShowACK,
472 pp::proxy::HostResource /* menu */,
473 int32_t /* selected_id */,
474 int32_t /* result */)
475
476
477 // PPB_Font.
478 IPC_SYNC_MESSAGE_ROUTED2_3(
479 PpapiHostMsg_PPBFont_Create,
480 PP_Instance /* instance */,
481 pp::proxy::SerializedFontDescription /* in_description */,
482 pp::proxy::HostResource /* result */,
483 pp::proxy::SerializedFontDescription /* out_description */,
484 std::string /* out_metrics */)
485 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFont_DrawTextAt,
486 pp::proxy::SerializedVar /* text */,
487 pp::proxy::PPBFont_DrawTextAt_Params /* params */,
488 PP_Bool /* result */)
489 IPC_SYNC_MESSAGE_ROUTED4_1(PpapiHostMsg_PPBFont_MeasureText,
490 pp::proxy::HostResource /* font */,
491 pp::proxy::SerializedVar /* text */,
492 PP_Bool /* text_is_rtl */,
493 PP_Bool /* override_direction */,
494 int32_t /* result */)
495 IPC_SYNC_MESSAGE_ROUTED5_1(PpapiHostMsg_PPBFont_CharacterOffsetForPixel,
496 pp::proxy::HostResource /* font */,
497 pp::proxy::SerializedVar /* text */,
498 PP_Bool /* text_is_rtl */,
499 PP_Bool /* override_direction */,
500 int32_t /* pixel_pos */,
501 uint32_t /* result */)
502 IPC_SYNC_MESSAGE_ROUTED5_1(PpapiHostMsg_PPBFont_PixelOffsetForCharacter,
503 pp::proxy::HostResource /* font */,
504 pp::proxy::SerializedVar /* text */,
505 PP_Bool /* text_is_rtl */,
506 PP_Bool /* override_direction */,
507 uint32_t /* char_offset */,
508 int32_t /* result */)
509
510 // PPB_Fullscreen.
511 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFullscreen_IsFullscreen,
512 PP_Instance /* instance */,
513 PP_Bool /* result */)
514 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFullscreen_SetFullscreen,
515 PP_Instance /* instance */,
516 PP_Bool /* fullscreen */,
517 PP_Bool /* result */)
518 IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBFullscreen_GetScreenSize,
519 PP_Instance /* instance */,
520 PP_Bool /* result */,
521 PP_Size /* size */)
522
523 // PPB_Graphics2D.
524 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create,
525 PP_Instance /* instance */,
526 PP_Size /* size */,
527 PP_Bool /* is_always_opaque */,
528 pp::proxy::HostResource /* result */)
529 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData,
530 pp::proxy::HostResource /* graphics_2d */,
531 pp::proxy::HostResource /* image_data */,
532 PP_Point /* top_left */,
533 bool /* src_rect_specified */,
534 PP_Rect /* src_rect */)
535 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBGraphics2D_Scroll,
536 pp::proxy::HostResource /* graphics_2d */,
537 bool /* clip_specified */,
538 PP_Rect /* clip */,
539 PP_Point /* amount */)
540 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics2D_ReplaceContents,
541 pp::proxy::HostResource /* graphics_2d */,
542 pp::proxy::HostResource /* image_data */)
543 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics2D_Flush,
544 pp::proxy::HostResource /* graphics_2d */)
545
546 // PPB_ImageData.
547 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_Create,
548 PP_Instance /* instance */,
549 int32 /* format */,
550 PP_Size /* size */,
551 PP_Bool /* init_to_zero */,
552 pp::proxy::HostResource /* result_resource */,
553 std::string /* image_data_desc */,
554 pp::proxy::ImageHandle /* result */)
555
556 // PPB_Instance.
557 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject,
558 PP_Instance /* instance */,
559 pp::proxy::SerializedVar /* result */)
560 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject,
561 PP_Instance /* instance */,
562 pp::proxy::SerializedVar /* result */)
563 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_BindGraphics,
564 PP_Instance /* instance */,
565 pp::proxy::HostResource /* device */,
566 PP_Bool /* result */)
567 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_IsFullFrame,
568 PP_Instance /* instance */,
569 PP_Bool /* result */)
570 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBInstance_ExecuteScript,
571 PP_Instance /* instance */,
572 pp::proxy::SerializedVar /* script */,
573 pp::proxy::SerializedVar /* out_exception */,
574 pp::proxy::SerializedVar /* result */)
575
576 IPC_SYNC_MESSAGE_ROUTED3_1(
577 PpapiHostMsg_PPBPDF_GetFontFileWithFallback,
578 PP_Instance /* instance */,
579 pp::proxy::SerializedFontDescription /* description */,
580 int32_t /* charset */,
581 pp::proxy::HostResource /* result */)
582 IPC_SYNC_MESSAGE_ROUTED2_1(
583 PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile,
584 pp::proxy::HostResource /* font_file */,
585 uint32_t /* table */,
586 std::string /* result */)
587
588 // PPB_Surface3D.
589 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBSurface3D_Create,
590 PP_Instance /* instance */,
591 int32_t /* config */,
592 std::vector<int32_t> /* attrib_list */,
593 pp::proxy::HostResource /* result */)
594 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBSurface3D_SwapBuffers,
595 pp::proxy::HostResource /* surface_3d */)
596
597 // PPB_Testing.
598 IPC_SYNC_MESSAGE_ROUTED3_1(
599 PpapiHostMsg_PPBTesting_ReadImageData,
600 pp::proxy::HostResource /* device_context_2d */,
601 pp::proxy::HostResource /* image */,
602 PP_Point /* top_left */,
603 PP_Bool /* result */)
604 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBTesting_RunMessageLoop,
605 PP_Instance /* instance */)
606 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBTesting_QuitMessageLoop,
607 PP_Instance /* instance */)
608 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance,
609 PP_Instance /* instance */,
610 uint32 /* result */)
611
612 // PPB_URLLoader.
613 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create,
614 PP_Instance /* instance */,
615 pp::proxy::HostResource /* result */)
616 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBURLLoader_Open,
617 pp::proxy::HostResource /* loader */,
618 pp::proxy::HostResource /*request_info */,
619 uint32_t /* serialized_callback */)
620 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_FollowRedirect,
621 pp::proxy::HostResource /* loader */,
622 uint32_t /* serialized_callback */)
623 IPC_SYNC_MESSAGE_ROUTED1_1(
624 PpapiHostMsg_PPBURLLoader_GetResponseInfo,
625 pp::proxy::HostResource /* loader */,
626 pp::proxy::HostResource /* response_info_out */)
627 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_ReadResponseBody,
628 pp::proxy::HostResource /* loader */,
629 int32_t /* bytes_to_read */)
630 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_FinishStreamingToFile,
631 pp::proxy::HostResource /* loader */,
632 uint32_t /* serialized_callback */)
633 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_Close,
634 pp::proxy::HostResource /* loader */)
635
636 // PPB_URLLoaderTrusted.
637 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoaderTrusted_GrantUniversalAccess,
638 pp::proxy::HostResource /* loader */)
639
640 // PPB_URLRequestInfo.
641 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLRequestInfo_Create,
642 PP_Instance /* instance */,
643 pp::proxy::HostResource /* result */)
644 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBURLRequestInfo_SetProperty,
645 pp::proxy::HostResource /* request */,
646 int32_t /* property */,
647 pp::proxy::SerializedVar /* value */)
648 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLRequestInfo_AppendDataToBody,
649 pp::proxy::HostResource /* request */,
650 std::string /* data */)
651 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBURLRequestInfo_AppendFileToBody,
652 pp::proxy::HostResource /* request */,
653 pp::proxy::HostResource /* file_ref */,
654 int64_t /* start_offset */,
655 int64_t /* number_of_bytes */,
656 double /* expected_last_modified_time */)
657
658 // PPB_URLResponseInfo.
659 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBURLResponseInfo_GetProperty,
660 pp::proxy::HostResource /* response */,
661 int32_t /* property */,
662 pp::proxy::SerializedVar /* result */)
663 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLResponseInfo_GetBodyAsFileRef,
664 pp::proxy::HostResource /* response */,
665 pp::proxy::PPBFileRef_CreateInfo /* result */)
666
667 // PPB_Var.
668 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_AddRefObject,
669 int64 /* object_id */)
670 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_ReleaseObject,
671 int64 /* object_id */)
672 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_ConvertType,
673 PP_Instance /* instance */,
674 pp::proxy::SerializedVar /* var */,
675 int /* new_type */,
676 pp::proxy::SerializedVar /* exception */,
677 pp::proxy::SerializedVar /* result */)
678 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBVar_DefineProperty,
679 pp::proxy::SerializedVar /* object */,
680 PP_ObjectProperty /* property */,
681 pp::proxy::SerializedVar /* out_exception */)
682 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasProperty,
683 pp::proxy::SerializedVar /* object */,
684 pp::proxy::SerializedVar /* property */,
685 pp::proxy::SerializedVar /* out_exception */,
686 PP_Bool /* result */)
687 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasMethodDeprecated,
688 pp::proxy::SerializedVar /* object */,
689 pp::proxy::SerializedVar /* method */,
690 pp::proxy::SerializedVar /* out_exception */,
691 PP_Bool /* result */)
692 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_GetProperty,
693 pp::proxy::SerializedVar /* object */,
694 pp::proxy::SerializedVar /* property */,
695 pp::proxy::SerializedVar /* out_exception */,
696 pp::proxy::SerializedVar /* result */)
697 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_DeleteProperty,
698 pp::proxy::SerializedVar /* object */,
699 pp::proxy::SerializedVar /* property */,
700 pp::proxy::SerializedVar /* out_exception */,
701 PP_Bool /* result */)
702 IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBVar_EnumerateProperties,
703 pp::proxy::SerializedVar /* object */,
704 std::vector<pp::proxy::SerializedVar> /* props */,
705 pp::proxy::SerializedVar /* out_exception */)
706 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_SetPropertyDeprecated,
707 pp::proxy::SerializedVar /* object */,
708 pp::proxy::SerializedVar /* name */,
709 pp::proxy::SerializedVar /* value */,
710 pp::proxy::SerializedVar /* out_exception */)
711 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVar_IsCallable,
712 pp::proxy::SerializedVar /* object */,
713 PP_Bool /* result */)
714 IPC_SYNC_MESSAGE_ROUTED4_2(PpapiHostMsg_PPBVar_Call,
715 pp::proxy::SerializedVar /* object */,
716 pp::proxy::SerializedVar /* this_object */,
717 pp::proxy::SerializedVar /* method_name */,
718 std::vector<pp::proxy::SerializedVar> /* args */,
719 pp::proxy::SerializedVar /* out_exception */,
720 pp::proxy::SerializedVar /* result */)
721 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_CallDeprecated,
722 pp::proxy::SerializedVar /* object */,
723 pp::proxy::SerializedVar /* method_name */,
724 std::vector<pp::proxy::SerializedVar> /* args */,
725 pp::proxy::SerializedVar /* out_exception */,
726 pp::proxy::SerializedVar /* result */)
727 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_Construct,
728 pp::proxy::SerializedVar /* object */,
729 std::vector<pp::proxy::SerializedVar> /* args */,
730 pp::proxy::SerializedVar /* out_exception */,
731 pp::proxy::SerializedVar /* result */)
732 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated,
733 pp::proxy::SerializedVar /* var */,
734 int64 /* object_class */,
735 int64 /* object-data */,
736 PP_Bool /* result */)
737 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated,
738 PP_Instance /* instance */,
739 int64 /* object_class */,
740 int64 /* object_data */,
741 pp::proxy::SerializedVar /* result */)
OLDNEW
« no previous file with comments | « ppapi/ppapi_shared_proxy.gypi ('k') | ppapi/proxy/ppapi_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698