blob: e6ecff9d108d8f3f1a4eed1b8660451c5d29a403 [file] [log] [blame]
[email protected]c80a0ba2012-01-13 00:02:291// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]c2932f5e2010-11-03 03:22:332// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]631179b2011-03-14 22:26:205// Multiply-included message header, no traditional include guard.
[email protected]c2932f5e2010-11-03 03:22:336#include <string>
7#include <vector>
8
9#include "base/basictypes.h"
[email protected]631179b2011-03-14 22:26:2010#include "base/file_path.h"
[email protected]5d84d012010-12-02 17:17:2111#include "base/process.h"
12#include "base/shared_memory.h"
[email protected]19d2b012010-11-08 16:32:1813#include "base/string16.h"
[email protected]5d84d012010-12-02 17:17:2114#include "base/sync_socket.h"
[email protected]631179b2011-03-14 22:26:2015#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"
[email protected]c2932f5e2010-11-03 03:22:3319#include "ipc/ipc_message_utils.h"
[email protected]5d84d012010-12-02 17:17:2120#include "ipc/ipc_platform_file.h"
[email protected]0fa46e82011-08-09 07:31:4921#include "ppapi/c/dev/pp_video_capture_dev.h"
[email protected]e8f07ac2012-01-03 17:43:3622#include "ppapi/c/dev/pp_video_dev.h"
[email protected]2daba2f32011-09-29 04:23:0923#include "ppapi/c/dev/ppb_text_input_dev.h"
[email protected]19d2b012010-11-08 16:32:1824#include "ppapi/c/pp_bool.h"
[email protected]ea505a9d2011-07-07 18:34:4025#include "ppapi/c/pp_file_info.h"
[email protected]c2932f5e2010-11-03 03:22:3326#include "ppapi/c/pp_instance.h"
27#include "ppapi/c/pp_module.h"
[email protected]9b7cc082011-04-20 20:25:5528#include "ppapi/c/pp_point.h"
29#include "ppapi/c/pp_rect.h"
[email protected]c2932f5e2010-11-03 03:22:3330#include "ppapi/c/pp_resource.h"
[email protected]9b7cc082011-04-20 20:25:5531#include "ppapi/c/pp_size.h"
[email protected]fb575bc2011-11-16 07:06:2432#include "ppapi/c/private/ppb_tcp_socket_private.h"
[email protected]c2932f5e2010-11-03 03:22:3333#include "ppapi/proxy/ppapi_param_traits.h"
[email protected]f0a04c42011-08-26 22:43:2034#include "ppapi/proxy/ppapi_proxy_export.h"
[email protected]7358d572011-02-15 18:44:4035#include "ppapi/proxy/serialized_flash_menu.h"
[email protected]fb35dcf2010-11-14 17:08:0036#include "ppapi/proxy/serialized_structs.h"
[email protected]208aad792011-05-26 19:05:2837#include "ppapi/shared_impl/ppapi_preferences.h"
[email protected]dca65e12012-01-21 07:54:1738#include "ppapi/shared_impl/ppb_device_ref_shared.h"
[email protected]9a578392011-12-07 18:59:2739#include "ppapi/shared_impl/ppb_input_event_shared.h"
40#include "ppapi/shared_impl/ppb_url_request_info_shared.h"
[email protected]e8f07ac2012-01-03 17:43:3641#include "ppapi/shared_impl/ppb_view_shared.h"
[email protected]19d2b012010-11-08 16:32:1842
[email protected]f0a04c42011-08-26 22:43:2043#undef IPC_MESSAGE_EXPORT
44#define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT
45
[email protected]631179b2011-03-14 22:26:2046#define IPC_MESSAGE_START PpapiMsgStart
[email protected]c2932f5e2010-11-03 03:22:3347
[email protected]dca65e12012-01-21 07:54:1748IPC_ENUM_TRAITS(PP_DeviceType_Dev)
[email protected]493d14212011-07-07 15:38:4849IPC_ENUM_TRAITS(PP_InputEvent_Type)
50IPC_ENUM_TRAITS(PP_InputEvent_MouseButton)
[email protected]2daba2f32011-09-29 04:23:0951IPC_ENUM_TRAITS(PP_TextInput_Type)
[email protected]2ffc31a2011-09-01 03:18:2852IPC_ENUM_TRAITS(PP_VideoDecoder_Profile)
[email protected]7ace8ad2011-08-06 03:23:5853IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev)
[email protected]493d14212011-07-07 15:38:4854
[email protected]9b7cc082011-04-20 20:25:5555IPC_STRUCT_TRAITS_BEGIN(PP_Point)
56 IPC_STRUCT_TRAITS_MEMBER(x)
57 IPC_STRUCT_TRAITS_MEMBER(y)
58IPC_STRUCT_TRAITS_END()
59
[email protected]493d14212011-07-07 15:38:4860IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint)
61 IPC_STRUCT_TRAITS_MEMBER(x)
62 IPC_STRUCT_TRAITS_MEMBER(y)
63IPC_STRUCT_TRAITS_END()
64
[email protected]9b7cc082011-04-20 20:25:5565IPC_STRUCT_TRAITS_BEGIN(PP_Size)
66 IPC_STRUCT_TRAITS_MEMBER(height)
67 IPC_STRUCT_TRAITS_MEMBER(width)
68IPC_STRUCT_TRAITS_END()
69
70IPC_STRUCT_TRAITS_BEGIN(PP_Rect)
71 IPC_STRUCT_TRAITS_MEMBER(point)
72 IPC_STRUCT_TRAITS_MEMBER(size)
73IPC_STRUCT_TRAITS_END()
74
[email protected]7ace8ad2011-08-06 03:23:5875IPC_STRUCT_TRAITS_BEGIN(PP_PictureBuffer_Dev)
76 IPC_STRUCT_TRAITS_MEMBER(id)
77 IPC_STRUCT_TRAITS_MEMBER(size)
78 IPC_STRUCT_TRAITS_MEMBER(texture_id)
79IPC_STRUCT_TRAITS_END()
80
81IPC_STRUCT_TRAITS_BEGIN(PP_Picture_Dev)
82 IPC_STRUCT_TRAITS_MEMBER(picture_buffer_id)
83 IPC_STRUCT_TRAITS_MEMBER(bitstream_buffer_id)
84IPC_STRUCT_TRAITS_END()
85
[email protected]0fa46e82011-08-09 07:31:4986IPC_STRUCT_TRAITS_BEGIN(PP_VideoCaptureDeviceInfo_Dev)
87 IPC_STRUCT_TRAITS_MEMBER(width)
88 IPC_STRUCT_TRAITS_MEMBER(height)
89 IPC_STRUCT_TRAITS_MEMBER(frames_per_second)
90IPC_STRUCT_TRAITS_END()
91
[email protected]dca65e12012-01-21 07:54:1792IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData)
93 IPC_STRUCT_TRAITS_MEMBER(type)
94 IPC_STRUCT_TRAITS_MEMBER(name)
95 IPC_STRUCT_TRAITS_MEMBER(id)
96IPC_STRUCT_TRAITS_END()
97
[email protected]4d2efd22011-08-18 21:58:0298IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPVideoCapture_Buffer)
[email protected]0fa46e82011-08-09 07:31:4999 IPC_STRUCT_TRAITS_MEMBER(resource)
100 IPC_STRUCT_TRAITS_MEMBER(handle)
101 IPC_STRUCT_TRAITS_MEMBER(size)
102IPC_STRUCT_TRAITS_END()
103
[email protected]e8f07ac2012-01-03 17:43:36104IPC_STRUCT_TRAITS_BEGIN(ppapi::ViewData)
105 IPC_STRUCT_TRAITS_MEMBER(rect)
106 IPC_STRUCT_TRAITS_MEMBER(is_fullscreen)
107 IPC_STRUCT_TRAITS_MEMBER(is_page_visible)
108 IPC_STRUCT_TRAITS_MEMBER(clip_rect)
109IPC_STRUCT_TRAITS_END()
110
[email protected]4d2efd22011-08-18 21:58:02111IPC_STRUCT_TRAITS_BEGIN(ppapi::Preferences)
[email protected]208aad792011-05-26 19:05:28112 IPC_STRUCT_TRAITS_MEMBER(standard_font_family)
113 IPC_STRUCT_TRAITS_MEMBER(fixed_font_family)
114 IPC_STRUCT_TRAITS_MEMBER(serif_font_family)
115 IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family)
116 IPC_STRUCT_TRAITS_MEMBER(default_font_size)
117 IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size)
118IPC_STRUCT_TRAITS_END()
119
[email protected]4d2efd22011-08-18 21:58:02120IPC_STRUCT_TRAITS_BEGIN(ppapi::InputEventData)
[email protected]493d14212011-07-07 15:38:48121 IPC_STRUCT_TRAITS_MEMBER(is_filtered)
122 IPC_STRUCT_TRAITS_MEMBER(event_type)
123 IPC_STRUCT_TRAITS_MEMBER(event_time_stamp)
124 IPC_STRUCT_TRAITS_MEMBER(event_modifiers)
125 IPC_STRUCT_TRAITS_MEMBER(mouse_button)
126 IPC_STRUCT_TRAITS_MEMBER(mouse_position)
127 IPC_STRUCT_TRAITS_MEMBER(mouse_click_count)
[email protected]80473262011-08-31 17:15:18128 IPC_STRUCT_TRAITS_MEMBER(mouse_movement)
[email protected]493d14212011-07-07 15:38:48129 IPC_STRUCT_TRAITS_MEMBER(wheel_delta)
130 IPC_STRUCT_TRAITS_MEMBER(wheel_ticks)
131 IPC_STRUCT_TRAITS_MEMBER(wheel_scroll_by_page)
132 IPC_STRUCT_TRAITS_MEMBER(key_code)
[email protected]e1e08b42012-02-21 22:42:58133 IPC_STRUCT_TRAITS_MEMBER(usb_key_code)
[email protected]493d14212011-07-07 15:38:48134 IPC_STRUCT_TRAITS_MEMBER(character_text)
[email protected]2daba2f32011-09-29 04:23:09135 IPC_STRUCT_TRAITS_MEMBER(composition_segment_offsets)
136 IPC_STRUCT_TRAITS_MEMBER(composition_target_segment)
137 IPC_STRUCT_TRAITS_MEMBER(composition_selection_start)
138 IPC_STRUCT_TRAITS_MEMBER(composition_selection_end)
[email protected]493d14212011-07-07 15:38:48139IPC_STRUCT_TRAITS_END()
140
[email protected]6f75c952011-08-26 04:51:07141IPC_STRUCT_TRAITS_BEGIN(ppapi::PPB_URLRequestInfo_Data)
142 IPC_STRUCT_TRAITS_MEMBER(url)
143 IPC_STRUCT_TRAITS_MEMBER(method)
144 IPC_STRUCT_TRAITS_MEMBER(headers)
145 IPC_STRUCT_TRAITS_MEMBER(stream_to_file)
146 IPC_STRUCT_TRAITS_MEMBER(follow_redirects)
147 IPC_STRUCT_TRAITS_MEMBER(record_download_progress)
148 IPC_STRUCT_TRAITS_MEMBER(record_upload_progress)
149 IPC_STRUCT_TRAITS_MEMBER(has_custom_referrer_url)
150 IPC_STRUCT_TRAITS_MEMBER(custom_referrer_url)
151 IPC_STRUCT_TRAITS_MEMBER(allow_cross_origin_requests)
152 IPC_STRUCT_TRAITS_MEMBER(allow_credentials)
153 IPC_STRUCT_TRAITS_MEMBER(has_custom_content_transfer_encoding)
154 IPC_STRUCT_TRAITS_MEMBER(custom_content_transfer_encoding)
155 IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_upper_threshold)
156 IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_lower_threshold)
157 IPC_STRUCT_TRAITS_MEMBER(body)
158IPC_STRUCT_TRAITS_END()
159
160IPC_STRUCT_TRAITS_BEGIN(ppapi::PPB_URLRequestInfo_Data::BodyItem)
161 IPC_STRUCT_TRAITS_MEMBER(is_file)
162 IPC_STRUCT_TRAITS_MEMBER(data)
163 // Note: we don't serialize file_ref.
164 IPC_STRUCT_TRAITS_MEMBER(file_ref_host_resource)
165 IPC_STRUCT_TRAITS_MEMBER(start_offset)
166 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes)
167 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time)
168IPC_STRUCT_TRAITS_END()
169
[email protected]eb415bf0e2011-04-14 02:45:42170// These are from the browser to the plugin.
[email protected]631179b2011-03-14 22:26:20171// Loads the given plugin.
172IPC_MESSAGE_CONTROL1(PpapiMsg_LoadPlugin, FilePath /* path */)
173
174// Creates a channel to talk to a renderer. The plugin will respond with
175// PpapiHostMsg_ChannelCreated.
176IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel,
177 base::ProcessHandle /* host_process_handle */,
[email protected]e503a122011-03-17 18:20:52178 int /* renderer_id */)
[email protected]631179b2011-03-14 22:26:20179
180// Each plugin may be referenced by multiple renderers. We need the instance
181// IDs to be unique within a plugin, despite coming from different renderers,
182// and unique within a renderer, despite going to different plugins. This means
183// that neither the renderer nor the plugin can generate instance IDs without
184// consulting the other.
185//
186// We resolve this by having the renderer generate a unique instance ID inside
187// its process. It then asks the plugin to reserve that ID by sending this sync
188// message. If the plugin has not yet seen this ID, it will remember it as used
189// (to prevent a race condition if another renderer tries to then use the same
190// instance), and set usable as true.
191//
192// If the plugin has already seen the instance ID, it will set usable as false
193// and the renderer must retry a new instance ID.
194IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_ReserveInstanceId,
195 PP_Instance /* instance */,
196 bool /* usable */)
197
[email protected]208aad792011-05-26 19:05:28198// Passes the WebKit preferences to the plugin.
199IPC_MESSAGE_CONTROL1(PpapiMsg_SetPreferences,
[email protected]4d2efd22011-08-18 21:58:02200 ppapi::Preferences)
[email protected]208aad792011-05-26 19:05:28201
[email protected]f7c6f9a62011-07-14 04:17:40202// Network state notification from the browser for implementing
203// PPP_NetworkState_Dev.
204IPC_MESSAGE_CONTROL1(PpapiMsg_SetNetworkState,
205 bool /* online */)
206
[email protected]631179b2011-03-14 22:26:20207// Sent in both directions to see if the other side supports the given
208// interface.
209IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface,
210 std::string /* interface_name */,
211 bool /* result */)
212
[email protected]2b657fd2011-04-18 16:00:47213// Broker Process.
214
[email protected]6990e5d2011-09-30 18:10:57215IPC_SYNC_MESSAGE_CONTROL2_1(PpapiMsg_ConnectToPlugin,
[email protected]2b657fd2011-04-18 16:00:47216 PP_Instance /* instance */,
[email protected]6990e5d2011-09-30 18:10:57217 IPC::PlatformFileForTransit /* handle */,
218 int32_t /* result */)
[email protected]2b657fd2011-04-18 16:00:47219
[email protected]631179b2011-03-14 22:26:20220// PPB_Audio.
221
222// Notifies the result of the audio stream create call. This is called in
223// both error cases and in the normal success case. These cases are
224// differentiated by the result code, which is one of the standard PPAPI
225// result codes.
226//
227// The handler of this message should always close all of the handles passed
228// in, since some could be valid even in the error case.
229IPC_MESSAGE_ROUTED5(PpapiMsg_PPBAudio_NotifyAudioStreamCreated,
[email protected]be0a84b2011-08-13 04:18:44230 ppapi::HostResource /* audio_id */,
[email protected]631179b2011-03-14 22:26:20231 int32_t /* result_code (will be != PP_OK on failure) */,
232 IPC::PlatformFileForTransit /* socket_handle */,
233 base::SharedMemoryHandle /* handle */,
234 int32_t /* length */)
235
[email protected]1f8a0892011-11-18 00:14:24236// PPB_AudioInput_Dev.
237IPC_MESSAGE_ROUTED5(PpapiMsg_PPBAudioInput_NotifyAudioStreamCreated,
238 ppapi::HostResource /* audio_id */,
239 int32_t /* result_code (will be != PP_OK on failure) */,
240 IPC::PlatformFileForTransit /* socket_handle */,
241 base::SharedMemoryHandle /* handle */,
242 int32_t /* length */)
243
[email protected]ae971c22011-04-17 00:13:22244// PPB_Broker.
245IPC_MESSAGE_ROUTED3(
246 PpapiMsg_PPBBroker_ConnectComplete,
[email protected]be0a84b2011-08-13 04:18:44247 ppapi::HostResource /* broker */,
[email protected]ae971c22011-04-17 00:13:22248 IPC::PlatformFileForTransit /* handle */,
249 int32_t /* result */)
250
[email protected]631179b2011-03-14 22:26:20251// PPB_FileChooser.
252IPC_MESSAGE_ROUTED3(
253 PpapiMsg_PPBFileChooser_ChooseComplete,
[email protected]be0a84b2011-08-13 04:18:44254 ppapi::HostResource /* chooser */,
[email protected]631179b2011-03-14 22:26:20255 int32_t /* result_code (will be != PP_OK on failure */,
[email protected]6f75c952011-08-26 04:51:07256 std::vector<ppapi::PPB_FileRef_CreateInfo> /* chosen_files */)
[email protected]631179b2011-03-14 22:26:20257
[email protected]cc6db922011-12-10 16:54:22258// PPB_FileIO.
259IPC_MESSAGE_ROUTED2(PpapiMsg_PPBFileIO_GeneralComplete,
260 ppapi::HostResource /* file_io */,
261 int32_t /* result */)
262IPC_MESSAGE_ROUTED2(PpapiMsg_PPBFileIO_OpenFileComplete,
263 ppapi::HostResource /* file_io */,
264 int32_t /* result */)
265IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFileIO_QueryComplete,
266 ppapi::HostResource /* file_io */,
267 int32_t /* result */,
268 PP_FileInfo /* info */)
269IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFileIO_ReadComplete,
270 ppapi::HostResource /* file_io */,
271 int32_t /* result */,
272 std::string /* data */)
273
[email protected]0f41c012011-10-21 19:49:20274// PPB_FileRef.
275IPC_MESSAGE_ROUTED3(
276 PpapiMsg_PPBFileRef_CallbackComplete,
277 ppapi::HostResource /* resource */,
278 int /* callback_id */,
279 int32_t /* result */)
280
[email protected]631179b2011-03-14 22:26:20281// PPB_FileSystem.
282IPC_MESSAGE_ROUTED2(
283 PpapiMsg_PPBFileSystem_OpenComplete,
[email protected]be0a84b2011-08-13 04:18:44284 ppapi::HostResource /* filesystem */,
[email protected]631179b2011-03-14 22:26:20285 int32_t /* result */)
286
[email protected]7d3782f2011-03-29 19:16:23287// PPB_Flash_NetConnector.
288IPC_MESSAGE_ROUTED5(PpapiMsg_PPBFlashNetConnector_ConnectACK,
[email protected]be0a84b2011-08-13 04:18:44289 ppapi::HostResource /* net_connector */,
[email protected]7d3782f2011-03-29 19:16:23290 int32_t /* result */,
291 IPC::PlatformFileForTransit /* handle */,
292 std::string /* local_addr_as_string */,
293 std::string /* remote_addr_as_string */)
294
[email protected]fb575bc2011-11-16 07:06:24295// PPB_TCPSocket_Private.
296IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPSocket_ConnectACK,
[email protected]373a95a2011-07-01 16:58:14297 uint32 /* plugin_dispatcher_id */,
298 uint32 /* socket_id */,
299 bool /* succeeded */,
[email protected]5a2b68f2011-11-10 00:00:49300 PP_NetAddress_Private /* local_addr */,
301 PP_NetAddress_Private /* remote_addr */)
[email protected]fb575bc2011-11-16 07:06:24302IPC_MESSAGE_ROUTED3(PpapiMsg_PPBTCPSocket_SSLHandshakeACK,
[email protected]b442da32011-08-16 19:32:28303 uint32 /* plugin_dispatcher_id */,
304 uint32 /* socket_id */,
305 bool /* succeeded */)
[email protected]fb575bc2011-11-16 07:06:24306IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_ReadACK,
[email protected]373a95a2011-07-01 16:58:14307 uint32 /* plugin_dispatcher_id */,
308 uint32 /* socket_id */,
309 bool /* succeeded */,
310 std::string /* data */)
[email protected]fb575bc2011-11-16 07:06:24311IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_WriteACK,
[email protected]373a95a2011-07-01 16:58:14312 uint32 /* plugin_dispatcher_id */,
313 uint32 /* socket_id */,
314 bool /* succeeded */,
315 int32_t /* bytes_written */)
316
[email protected]fb575bc2011-11-16 07:06:24317// PPB_UDPSocket_Private
318IPC_MESSAGE_ROUTED3(PpapiMsg_PPBUDPSocket_BindACK,
[email protected]7813eb02011-09-26 22:12:56319 uint32 /* plugin_dispatcher_id */,
320 uint32 /* socket_id */,
321 bool /* succeeded */)
[email protected]fb575bc2011-11-16 07:06:24322IPC_MESSAGE_ROUTED5(PpapiMsg_PPBUDPSocket_RecvFromACK,
[email protected]7813eb02011-09-26 22:12:56323 uint32 /* plugin_dispatcher_id */,
324 uint32 /* socket_id */,
325 bool /* succeeded */,
326 std::string /* data */,
[email protected]5a2b68f2011-11-10 00:00:49327 PP_NetAddress_Private /* remote_addr */)
[email protected]fb575bc2011-11-16 07:06:24328IPC_MESSAGE_ROUTED4(PpapiMsg_PPBUDPSocket_SendToACK,
[email protected]7813eb02011-09-26 22:12:56329 uint32 /* plugin_dispatcher_id */,
330 uint32 /* socket_id */,
331 bool /* succeeded */,
332 int32_t /* bytes_written */)
333
[email protected]631179b2011-03-14 22:26:20334// PPB_Graphics2D.
335IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK,
[email protected]be0a84b2011-08-13 04:18:44336 ppapi::HostResource /* graphics_2d */,
[email protected]631179b2011-03-14 22:26:20337 int32_t /* pp_error */)
338
[email protected]eeb4e4a2011-07-19 16:22:06339// PPB_Graphics3D.
340IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK,
[email protected]be0a84b2011-08-13 04:18:44341 ppapi::HostResource /* graphics_3d */,
[email protected]eeb4e4a2011-07-19 16:22:06342 int32_t /* pp_error */)
343
[email protected]0f41c012011-10-21 19:49:20344// PPB_Instance.
345IPC_MESSAGE_ROUTED2(PpapiMsg_PPBInstance_MouseLockComplete,
346 PP_Instance /* instance */,
347 int32_t /* result */)
348
[email protected]631179b2011-03-14 22:26:20349// PPP_Class.
350IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty,
351 int64 /* ppp_class */,
352 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02353 ppapi::proxy::SerializedVar /* property */,
354 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:20355 bool /* result */)
356IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod,
357 int64 /* ppp_class */,
358 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02359 ppapi::proxy::SerializedVar /* method */,
360 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:20361 bool /* result */)
362IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_GetProperty,
363 int64 /* ppp_class */,
364 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02365 ppapi::proxy::SerializedVar /* property */,
366 ppapi::proxy::SerializedVar /* out_exception */,
367 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20368IPC_SYNC_MESSAGE_ROUTED2_2(PpapiMsg_PPPClass_EnumerateProperties,
369 int64 /* ppp_class */,
370 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02371 std::vector<ppapi::proxy::SerializedVar> /* props */,
372 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:20373IPC_SYNC_MESSAGE_ROUTED4_1(PpapiMsg_PPPClass_SetProperty,
374 int64 /* ppp_class */,
375 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02376 ppapi::proxy::SerializedVar /* name */,
377 ppapi::proxy::SerializedVar /* value */,
378 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:20379IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPClass_RemoveProperty,
380 int64 /* ppp_class */,
381 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02382 ppapi::proxy::SerializedVar /* property */,
383 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:20384IPC_SYNC_MESSAGE_ROUTED4_2(PpapiMsg_PPPClass_Call,
385 int64 /* ppp_class */,
386 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02387 ppapi::proxy::SerializedVar /* method_name */,
388 std::vector<ppapi::proxy::SerializedVar> /* args */,
389 ppapi::proxy::SerializedVar /* out_exception */,
390 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20391IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_Construct,
392 int64 /* ppp_class */,
393 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02394 std::vector<ppapi::proxy::SerializedVar> /* args */,
395 ppapi::proxy::SerializedVar /* out_exception */,
396 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20397IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate,
398 int64 /* ppp_class */,
399 int64 /* object */)
400
[email protected]8c3bd1d2011-04-12 20:01:42401// PPP_Graphics3D_Dev.
402IPC_MESSAGE_ROUTED1(PpapiMsg_PPPGraphics3D_ContextLost,
403 PP_Instance /* instance */)
404
[email protected]493d14212011-07-07 15:38:48405// PPP_InputEvent.
406IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInputEvent_HandleInputEvent,
407 PP_Instance /* instance */,
408 ppapi::InputEventData /* data */)
409IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInputEvent_HandleFilteredInputEvent,
410 PP_Instance /* instance */,
411 ppapi::InputEventData /* data */,
412 PP_Bool /* result */)
413
[email protected]631179b2011-03-14 22:26:20414// PPP_Instance.
415IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate,
416 PP_Instance /* instance */,
417 std::vector<std::string> /* argn */,
418 std::vector<std::string> /* argv */,
419 PP_Bool /* result */)
[email protected]5e5d0b02011-04-04 19:32:07420IPC_SYNC_MESSAGE_ROUTED1_0(PpapiMsg_PPPInstance_DidDestroy,
421 PP_Instance /* instance */)
[email protected]e8f07ac2012-01-03 17:43:36422IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_DidChangeView,
[email protected]631179b2011-03-14 22:26:20423 PP_Instance /* instance */,
[email protected]e8f07ac2012-01-03 17:43:36424 ppapi::ViewData /* new_data */,
[email protected]06e0a342011-09-27 04:24:30425 PP_Bool /* flash_fullscreen */)
[email protected]631179b2011-03-14 22:26:20426IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus,
427 PP_Instance /* instance */,
428 PP_Bool /* has_focus */)
[email protected]631179b2011-03-14 22:26:20429IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInstance_HandleDocumentLoad,
430 PP_Instance /* instance */,
[email protected]be0a84b2011-08-13 04:18:44431 ppapi::HostResource /* url_loader */,
[email protected]631179b2011-03-14 22:26:20432 PP_Bool /* result */)
[email protected]631179b2011-03-14 22:26:20433
[email protected]792f1ca32011-05-25 16:43:43434// PPP_Instance_Private.
435IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject,
436 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:02437 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20438
[email protected]b20df1c2011-08-03 14:38:24439// PPP_Messaging.
440IPC_MESSAGE_ROUTED2(PpapiMsg_PPPMessaging_HandleMessage,
441 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:02442 ppapi::proxy::SerializedVar /* message */)
[email protected]b20df1c2011-08-03 14:38:24443
[email protected]1314f5f2011-10-16 02:26:56444// PPP_MouseLock.
[email protected]18d871f2011-09-08 16:56:34445IPC_MESSAGE_ROUTED1(PpapiMsg_PPPMouseLock_MouseLockLost,
446 PP_Instance /* instance */)
447
[email protected]631179b2011-03-14 22:26:20448// PPB_URLLoader
449// (Messages from browser to plugin to notify it of changes in state.)
[email protected]bab65ef2011-08-20 04:53:22450IPC_MESSAGE_ROUTED1(
451 PpapiMsg_PPBURLLoader_UpdateProgress,
452 ppapi::proxy::PPBURLLoader_UpdateProgress_Params /* params */)
[email protected]631179b2011-03-14 22:26:20453IPC_MESSAGE_ROUTED3(PpapiMsg_PPBURLLoader_ReadResponseBody_Ack,
[email protected]be0a84b2011-08-13 04:18:44454 ppapi::HostResource /* loader */,
[email protected]631179b2011-03-14 22:26:20455 int32 /* result */,
456 std::string /* data */)
[email protected]0f41c012011-10-21 19:49:20457IPC_MESSAGE_ROUTED2(PpapiMsg_PPBURLLoader_CallbackComplete,
458 ppapi::HostResource /* loader */,
459 int32_t /* result */)
[email protected]631179b2011-03-14 22:26:20460
[email protected]cc7c2442012-02-15 22:58:15461// PPB_VideoCapture_Dev
462IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoCapture_EnumerateDevicesACK,
463 ppapi::HostResource /* video_capture */,
464 int32_t /* result */,
465 std::vector<ppapi::DeviceRefData> /* devices */)
466IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoCapture_OpenACK,
467 ppapi::HostResource /* video_capture */,
468 int32_t /* result */)
469
[email protected]0fa46e82011-08-09 07:31:49470// PPP_VideoCapture_Dev
471IPC_MESSAGE_ROUTED3(
472 PpapiMsg_PPPVideoCapture_OnDeviceInfo,
[email protected]be0a84b2011-08-13 04:18:44473 ppapi::HostResource /* video_capture */,
[email protected]0fa46e82011-08-09 07:31:49474 PP_VideoCaptureDeviceInfo_Dev /* info */,
[email protected]4d2efd22011-08-18 21:58:02475 std::vector<ppapi::proxy::PPPVideoCapture_Buffer> /* buffers */)
[email protected]0fa46e82011-08-09 07:31:49476IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnStatus,
[email protected]be0a84b2011-08-13 04:18:44477 ppapi::HostResource /* video_capture */,
[email protected]0fa46e82011-08-09 07:31:49478 uint32_t /* status */)
479IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnError,
[email protected]be0a84b2011-08-13 04:18:44480 ppapi::HostResource /* video_capture */,
[email protected]0fa46e82011-08-09 07:31:49481 uint32_t /* error_code */)
482IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnBufferReady,
[email protected]be0a84b2011-08-13 04:18:44483 ppapi::HostResource /* video_capture */,
[email protected]0fa46e82011-08-09 07:31:49484 uint32_t /* buffer */)
485
[email protected]7ace8ad2011-08-06 03:23:58486// PPB_VideoDecoder_Dev.
487// (Messages from renderer to plugin to notify it to run callbacks.)
488IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK,
[email protected]be0a84b2011-08-13 04:18:44489 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58490 int32_t /* bitstream buffer id */,
491 int32_t /* PP_CompletionCallback result */)
492IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_FlushACK,
[email protected]be0a84b2011-08-13 04:18:44493 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58494 int32_t /* PP_CompletionCallback result */)
495IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_ResetACK,
[email protected]be0a84b2011-08-13 04:18:44496 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58497 int32_t /* PP_CompletionCallback result */)
498
499// PPP_VideoDecoder_Dev.
500IPC_MESSAGE_ROUTED3(PpapiMsg_PPPVideoDecoder_ProvidePictureBuffers,
[email protected]be0a84b2011-08-13 04:18:44501 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58502 uint32_t /* requested number of buffers */,
503 PP_Size /* dimensions of buffers */)
504IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_DismissPictureBuffer,
[email protected]be0a84b2011-08-13 04:18:44505 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58506 int32_t /* picture buffer id */)
507IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_PictureReady,
[email protected]be0a84b2011-08-13 04:18:44508 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58509 PP_Picture_Dev /* output picture */)
[email protected]7ace8ad2011-08-06 03:23:58510IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_NotifyError,
[email protected]be0a84b2011-08-13 04:18:44511 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58512 PP_VideoDecodeError_Dev /* error */)
513
[email protected]631179b2011-03-14 22:26:20514// -----------------------------------------------------------------------------
515// These are from the plugin to the renderer.
516
517// Reply to PpapiMsg_CreateChannel. The handle will be NULL if the channel
518// could not be established. This could be because the IPC could not be created
519// for some weird reason, but more likely that the plugin failed to load or
520// initialize properly.
521IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated,
522 IPC::ChannelHandle /* handle */)
523
[email protected]a9b16dd2012-01-31 05:00:26524// Logs the given message to the console of all instances.
525IPC_MESSAGE_CONTROL4(PpapiHostMsg_LogWithSource,
526 PP_Instance /* instance */,
527 int /* log_level */,
528 std::string /* source */,
529 std::string /* value */)
530
[email protected]631179b2011-03-14 22:26:20531// PPB_Audio.
[email protected]55cdf6052011-05-13 19:22:53532IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudio_Create,
[email protected]631179b2011-03-14 22:26:20533 PP_Instance /* instance_id */,
[email protected]55cdf6052011-05-13 19:22:53534 int32_t /* sample_rate */,
535 uint32_t /* sample_frame_count */,
[email protected]be0a84b2011-08-13 04:18:44536 ppapi::HostResource /* result */)
[email protected]631179b2011-03-14 22:26:20537IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop,
[email protected]be0a84b2011-08-13 04:18:44538 ppapi::HostResource /* audio_id */,
[email protected]631179b2011-03-14 22:26:20539 bool /* play */)
540
[email protected]1f8a0892011-11-18 00:14:24541// PPB_AudioInput.
542IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudioInput_Create,
543 PP_Instance /* instance_id */,
544 int32_t /* sample_rate */,
545 uint32_t /* sample_frame_count */,
546 ppapi::HostResource /* result */)
547IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudioInput_StartOrStop,
548 ppapi::HostResource /* audio_id */,
549 bool /* capture */)
550
[email protected]ae971c22011-04-17 00:13:22551// PPB_Broker.
552IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBBroker_Create,
553 PP_Instance /* instance */,
[email protected]be0a84b2011-08-13 04:18:44554 ppapi::HostResource /* result_resource */)
[email protected]ae971c22011-04-17 00:13:22555IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBBroker_Connect,
[email protected]be0a84b2011-08-13 04:18:44556 ppapi::HostResource /* broker */)
[email protected]ae971c22011-04-17 00:13:22557
[email protected]631179b2011-03-14 22:26:20558// PPB_Buffer.
559IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBBuffer_Create,
560 PP_Instance /* instance */,
561 uint32_t /* size */,
[email protected]be0a84b2011-08-13 04:18:44562 ppapi::HostResource /* result_resource */,
[email protected]32523382011-06-10 02:30:00563 base::SharedMemoryHandle /* result_shm_handle */)
[email protected]631179b2011-03-14 22:26:20564
[email protected]631179b2011-03-14 22:26:20565// PPB_Core.
566IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource,
[email protected]be0a84b2011-08-13 04:18:44567 ppapi::HostResource)
[email protected]631179b2011-03-14 22:26:20568IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource,
[email protected]be0a84b2011-08-13 04:18:44569 ppapi::HostResource)
[email protected]631179b2011-03-14 22:26:20570
[email protected]631179b2011-03-14 22:26:20571// PPB_CursorControl.
572IPC_SYNC_MESSAGE_ROUTED4_1(PpapiHostMsg_PPBCursorControl_SetCursor,
573 PP_Instance /* instance */,
574 int32_t /* type */,
[email protected]be0a84b2011-08-13 04:18:44575 ppapi::HostResource /* custom_image */,
[email protected]631179b2011-03-14 22:26:20576 PP_Point /* hot_spot */,
577 PP_Bool /* result */)
578IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_LockCursor,
579 PP_Instance /* instance */,
580 PP_Bool /* result */)
581IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_UnlockCursor,
582 PP_Instance /* instance */,
583 PP_Bool /* result */)
584IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_HasCursorLock,
585 PP_Instance /* instance */,
586 PP_Bool /* result */)
587IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_CanLockCursor,
588 PP_Instance /* instance */,
589 PP_Bool /* result */)
590
591// PPB_FileChooser.
592IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFileChooser_Create,
593 PP_Instance /* instance */,
594 int /* mode */,
[email protected]459fba82011-10-13 02:48:50595 std::string /* accept_mime_types */,
[email protected]be0a84b2011-08-13 04:18:44596 ppapi::HostResource /* result */)
[email protected]459fba82011-10-13 02:48:50597IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileChooser_Show,
598 ppapi::HostResource /* file_chooser */,
599 bool /* save_as */,
600 std::string /* suggested_file_name */,
601 bool /* require_user_gesture */)
[email protected]631179b2011-03-14 22:26:20602
[email protected]cc6db922011-12-10 16:54:22603// PPB_FileIO.
604IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileIO_Create,
605 PP_Instance /* instance */,
606 ppapi::HostResource /* result */)
607IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Open,
608 ppapi::HostResource /* host_resource */,
609 ppapi::HostResource /* file_ref_resource */,
610 int32_t /* open_flags */)
611IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Close,
612 ppapi::HostResource /* host_resource */)
613IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Query,
614 ppapi::HostResource /* host_resource */)
615IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Touch,
616 ppapi::HostResource /* host_resource */,
617 PP_Time /* last_access_time */,
618 PP_Time /* last_modified_time */)
619IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Read,
620 ppapi::HostResource /* host_resource */,
621 int64_t /* offset */,
622 int32_t /* bytes_to_read */)
623IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Write,
624 ppapi::HostResource /* host_resource */,
625 int64_t /* offset */,
626 std::string /* data */)
627IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileIO_SetLength,
628 ppapi::HostResource /* host_resource */,
629 int64_t /* length */)
630IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Flush,
631 ppapi::HostResource /* host_resource */)
632IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_WillWrite,
633 ppapi::HostResource /* host_resource */,
634 int64_t /* offset */,
635 int32_t /* bytes_to_write */)
636IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileIO_WillSetLength,
637 ppapi::HostResource /* host_resource */,
638 int64_t /* length */)
639
[email protected]631179b2011-03-14 22:26:20640// PPB_FileRef.
641IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileRef_Create,
[email protected]be0a84b2011-08-13 04:18:44642 ppapi::HostResource /* file_system */,
[email protected]631179b2011-03-14 22:26:20643 std::string /* path */,
[email protected]6f75c952011-08-26 04:51:07644 ppapi::PPB_FileRef_CreateInfo /* result */)
[email protected]631179b2011-03-14 22:26:20645IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent,
[email protected]be0a84b2011-08-13 04:18:44646 ppapi::HostResource /* file_ref */,
[email protected]6f75c952011-08-26 04:51:07647 ppapi::PPB_FileRef_CreateInfo /* result */)
[email protected]631179b2011-03-14 22:26:20648IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory,
[email protected]be0a84b2011-08-13 04:18:44649 ppapi::HostResource /* file_ref */,
[email protected]631179b2011-03-14 22:26:20650 PP_Bool /* make_ancestors */,
[email protected]0f41c012011-10-21 19:49:20651 int /* callback_id */)
[email protected]631179b2011-03-14 22:26:20652IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileRef_Touch,
[email protected]be0a84b2011-08-13 04:18:44653 ppapi::HostResource /* file_ref */,
[email protected]631179b2011-03-14 22:26:20654 PP_Time /* last_access */,
655 PP_Time /* last_modified */,
[email protected]0f41c012011-10-21 19:49:20656 int /* callback_id */)
[email protected]631179b2011-03-14 22:26:20657IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Delete,
[email protected]be0a84b2011-08-13 04:18:44658 ppapi::HostResource /* file_ref */,
[email protected]0f41c012011-10-21 19:49:20659 int /* callback_id */)
[email protected]631179b2011-03-14 22:26:20660IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_Rename,
[email protected]be0a84b2011-08-13 04:18:44661 ppapi::HostResource /* file_ref */,
662 ppapi::HostResource /* new_file_ref */,
[email protected]0f41c012011-10-21 19:49:20663 int /* callback_id */)
[email protected]f12a3832011-11-28 23:11:45664IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetAbsolutePath,
665 ppapi::HostResource /* file_ref */,
666 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20667
668// PPB_FileSystem.
669IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create,
670 PP_Instance /* instance */,
671 int /* type */,
[email protected]be0a84b2011-08-13 04:18:44672 ppapi::HostResource /* result */)
[email protected]631179b2011-03-14 22:26:20673IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open,
[email protected]be0a84b2011-08-13 04:18:44674 ppapi::HostResource /* result */,
[email protected]631179b2011-03-14 22:26:20675 int64_t /* expected_size */)
676
677// PPB_Flash.
678IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlash_SetInstanceAlwaysOnTop,
679 PP_Instance /* instance */,
680 PP_Bool /* on_top */)
681// This has to be synchronous becuase the caller may want to composite on
682// top of the resulting text after the call is complete.
[email protected]bab65ef2011-08-20 04:53:22683IPC_SYNC_MESSAGE_ROUTED1_1(
684 PpapiHostMsg_PPBFlash_DrawGlyphs,
685 ppapi::proxy::PPBFlash_DrawGlyphs_Params /* params */,
686 PP_Bool /* result */)
[email protected]631179b2011-03-14 22:26:20687IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetProxyForURL,
688 PP_Instance /* instance */,
689 std::string /* url */,
[email protected]4d2efd22011-08-18 21:58:02690 ppapi::proxy::SerializedVar /* result */)
[email protected]6f75c952011-08-26 04:51:07691IPC_SYNC_MESSAGE_ROUTED4_1(PpapiHostMsg_PPBFlash_Navigate,
692 PP_Instance /* instance */,
693 ppapi::PPB_URLRequestInfo_Data /* request_data */,
[email protected]631179b2011-03-14 22:26:20694 std::string /* target */,
[email protected]2e4361ae2011-12-15 00:03:35695 PP_Bool /* from_user_action */,
[email protected]181220ba2011-03-28 18:21:05696 int32_t /* result */)
[email protected]631179b2011-03-14 22:26:20697IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlash_RunMessageLoop,
698 PP_Instance /* instance */)
699IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlash_QuitMessageLoop,
700 PP_Instance /* instance */)
[email protected]4d3aec12011-04-21 23:07:45701IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetLocalTimeZoneOffset,
702 PP_Instance /* instance */,
703 PP_Time /* t */,
704 double /* offset */)
[email protected]ffadb712012-02-18 08:16:22705IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_IsRectTopmost,
706 PP_Instance /* instance */,
707 PP_Rect /* rect */,
708 PP_Bool /* result */)
[email protected]631179b2011-03-14 22:26:20709
710// PPB_Flash_Clipboard.
[email protected]606876c2011-03-24 17:13:38711IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFlashClipboard_IsFormatAvailable,
712 PP_Instance /* instance */,
713 int /* clipboard_type */,
714 int /* format */,
715 bool /* result */)
[email protected]631179b2011-03-14 22:26:20716IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlashClipboard_ReadPlainText,
717 PP_Instance /* instance */,
718 int /* clipboard_type */,
[email protected]4d2efd22011-08-18 21:58:02719 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20720IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFlashClipboard_WritePlainText,
721 PP_Instance /* instance */,
722 int /* clipboard_type */,
[email protected]4d2efd22011-08-18 21:58:02723 ppapi::proxy::SerializedVar /* text */)
[email protected]631179b2011-03-14 22:26:20724
725// PPB_Flash_File_FileRef.
726IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBFlashFile_FileRef_OpenFile,
[email protected]be0a84b2011-08-13 04:18:44727 ppapi::HostResource /* file_ref */,
[email protected]631179b2011-03-14 22:26:20728 int32_t /* mode */,
729 IPC::PlatformFileForTransit /* file_handle */,
730 int32_t /* result */)
731IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBFlashFile_FileRef_QueryFile,
[email protected]be0a84b2011-08-13 04:18:44732 ppapi::HostResource /* file_ref */,
[email protected]ea505a9d2011-07-07 18:34:40733 PP_FileInfo /* info */,
[email protected]631179b2011-03-14 22:26:20734 int32_t /* result */)
735
736// PPB_Flash_File_ModuleLocal.
737IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBFlashFile_ModuleLocal_OpenFile,
738 PP_Instance /* instance */,
739 std::string /* path */,
740 int32_t /* mode */,
741 IPC::PlatformFileForTransit /* file_handle */,
742 int32_t /* result */)
743IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFlashFile_ModuleLocal_RenameFile,
744 PP_Instance /* instance */,
745 std::string /* path_from */,
746 std::string /* path_to */,
747 int32_t /* result */)
748IPC_SYNC_MESSAGE_ROUTED3_1(
749 PpapiHostMsg_PPBFlashFile_ModuleLocal_DeleteFileOrDir,
750 PP_Instance /* instance */,
751 std::string /* path */,
752 PP_Bool /* recursive */,
753 int32_t /* result */)
754IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlashFile_ModuleLocal_CreateDir,
755 PP_Instance /* instance */,
756 std::string /* path */,
757 int32_t /* result */)
758IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBFlashFile_ModuleLocal_QueryFile,
759 PP_Instance /* instance */,
760 std::string /* path */,
[email protected]ea505a9d2011-07-07 18:34:40761 PP_FileInfo /* info */,
[email protected]631179b2011-03-14 22:26:20762 int32_t /* result */)
763IPC_SYNC_MESSAGE_ROUTED2_2(
764 PpapiHostMsg_PPBFlashFile_ModuleLocal_GetDirContents,
765 PP_Instance /* instance */,
766 std::string /* path */,
[email protected]4d2efd22011-08-18 21:58:02767 std::vector<ppapi::proxy::SerializedDirEntry> /* entries */,
[email protected]631179b2011-03-14 22:26:20768 int32_t /* result */)
769
770// PPB_Flash_Menu
771IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlashMenu_Create,
772 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:02773 ppapi::proxy::SerializedFlashMenu /* menu_data */,
[email protected]be0a84b2011-08-13 04:18:44774 ppapi::HostResource /* result */)
[email protected]ea192e82011-04-11 19:16:02775IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBFlashMenu_Show,
[email protected]be0a84b2011-08-13 04:18:44776 ppapi::HostResource /* menu */,
[email protected]ea192e82011-04-11 19:16:02777 PP_Point /* location */)
[email protected]631179b2011-03-14 22:26:20778IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFlashMenu_ShowACK,
[email protected]be0a84b2011-08-13 04:18:44779 ppapi::HostResource /* menu */,
[email protected]631179b2011-03-14 22:26:20780 int32_t /* selected_id */,
781 int32_t /* result */)
782
[email protected]cd2af392012-01-31 09:19:17783// PPB_Flash_MessageLoop.
784IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Create,
785 PP_Instance /* instance */,
786 ppapi::HostResource /* result */)
787IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Run,
788 ppapi::HostResource /* flash_message_loop */,
789 int32_t /* result */)
790IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlashMessageLoop_Quit,
791 ppapi::HostResource /* flash_message_loop */)
792
[email protected]7d3782f2011-03-29 19:16:23793// PPB_Flash_NetConnector.
794IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashNetConnector_Create,
795 PP_Instance /* instance_id */,
[email protected]be0a84b2011-08-13 04:18:44796 ppapi::HostResource /* result */)
[email protected]7d3782f2011-03-29 19:16:23797IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFlashNetConnector_ConnectTcp,
[email protected]be0a84b2011-08-13 04:18:44798 ppapi::HostResource /* connector */,
[email protected]7d3782f2011-03-29 19:16:23799 std::string /* host */,
800 uint16_t /* port */)
801IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlashNetConnector_ConnectTcpAddress,
[email protected]be0a84b2011-08-13 04:18:44802 ppapi::HostResource /* connector */,
[email protected]7d3782f2011-03-29 19:16:23803 std::string /* net_address_as_string */)
[email protected]631179b2011-03-14 22:26:20804
[email protected]fb575bc2011-11-16 07:06:24805// PPB_TCPSocket_Private.
806IPC_SYNC_MESSAGE_CONTROL2_1(PpapiHostMsg_PPBTCPSocket_Create,
[email protected]373a95a2011-07-01 16:58:14807 int32 /* routing_id */,
808 uint32 /* plugin_dispatcher_id */,
809 uint32 /* socket_id */)
[email protected]e461da2f2012-02-16 19:06:40810IPC_MESSAGE_CONTROL4(PpapiHostMsg_PPBTCPSocket_Connect,
811 int32 /* routing_id */,
[email protected]373a95a2011-07-01 16:58:14812 uint32 /* socket_id */,
813 std::string /* host */,
814 uint16_t /* port */)
[email protected]e461da2f2012-02-16 19:06:40815IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBTCPSocket_ConnectWithNetAddress,
816 int32 /* routing_id */,
[email protected]373a95a2011-07-01 16:58:14817 uint32 /* socket_id */,
[email protected]5a2b68f2011-11-10 00:00:49818 PP_NetAddress_Private /* net_addr */)
[email protected]fb575bc2011-11-16 07:06:24819IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBTCPSocket_SSLHandshake,
[email protected]b442da32011-08-16 19:32:28820 uint32 /* socket_id */,
821 std::string /* server_name */,
822 uint16_t /* server_port */)
[email protected]fb575bc2011-11-16 07:06:24823IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Read,
[email protected]373a95a2011-07-01 16:58:14824 uint32 /* socket_id */,
825 int32_t /* bytes_to_read */)
[email protected]fb575bc2011-11-16 07:06:24826IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Write,
[email protected]373a95a2011-07-01 16:58:14827 uint32 /* socket_id */,
828 std::string /* data */)
[email protected]fb575bc2011-11-16 07:06:24829IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPSocket_Disconnect,
[email protected]373a95a2011-07-01 16:58:14830 uint32 /* socket_id */)
831
[email protected]fb575bc2011-11-16 07:06:24832// PPB_UDPSocket_Private.
833IPC_SYNC_MESSAGE_CONTROL2_1(PpapiHostMsg_PPBUDPSocket_Create,
[email protected]7813eb02011-09-26 22:12:56834 int32 /* routing_id */,
835 uint32 /* plugin_dispatcher_id */,
836 uint32 /* socket_id */)
[email protected]e461da2f2012-02-16 19:06:40837IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBUDPSocket_Bind,
838 int32 /* routing_id */,
[email protected]7813eb02011-09-26 22:12:56839 uint32 /* socket_id */,
[email protected]5a2b68f2011-11-10 00:00:49840 PP_NetAddress_Private /* net_addr */)
[email protected]fb575bc2011-11-16 07:06:24841IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBUDPSocket_RecvFrom,
[email protected]7813eb02011-09-26 22:12:56842 uint32 /* socket_id */,
843 int32_t /* num_bytes */)
[email protected]fb575bc2011-11-16 07:06:24844IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBUDPSocket_SendTo,
[email protected]7813eb02011-09-26 22:12:56845 uint32 /* socket_id */,
846 std::string /* data */,
[email protected]5a2b68f2011-11-10 00:00:49847 PP_NetAddress_Private /* net_addr */)
[email protected]fb575bc2011-11-16 07:06:24848IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBUDPSocket_Close,
[email protected]7813eb02011-09-26 22:12:56849 uint32 /* socket_id */)
850
[email protected]631179b2011-03-14 22:26:20851// PPB_Graphics2D.
[email protected]2a1d6d912011-12-04 23:29:06852IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create,
853 PP_Instance /* instance */,
854 PP_Size /* size */,
855 PP_Bool /* is_always_opaque */,
856 ppapi::HostResource /* result */)
[email protected]631179b2011-03-14 22:26:20857IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData,
[email protected]be0a84b2011-08-13 04:18:44858 ppapi::HostResource /* graphics_2d */,
859 ppapi::HostResource /* image_data */,
[email protected]631179b2011-03-14 22:26:20860 PP_Point /* top_left */,
861 bool /* src_rect_specified */,
862 PP_Rect /* src_rect */)
863IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBGraphics2D_Scroll,
[email protected]be0a84b2011-08-13 04:18:44864 ppapi::HostResource /* graphics_2d */,
[email protected]631179b2011-03-14 22:26:20865 bool /* clip_specified */,
866 PP_Rect /* clip */,
867 PP_Point /* amount */)
868IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics2D_ReplaceContents,
[email protected]be0a84b2011-08-13 04:18:44869 ppapi::HostResource /* graphics_2d */,
870 ppapi::HostResource /* image_data */)
[email protected]631179b2011-03-14 22:26:20871IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics2D_Flush,
[email protected]be0a84b2011-08-13 04:18:44872 ppapi::HostResource /* graphics_2d */)
[email protected]631179b2011-03-14 22:26:20873
[email protected]eeb4e4a2011-07-19 16:22:06874// PPB_Graphics3D.
[email protected]9d8fe822011-08-16 21:02:52875IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBGraphics3D_Create,
[email protected]eeb4e4a2011-07-19 16:22:06876 PP_Instance /* instance */,
[email protected]eeb4e4a2011-07-19 16:22:06877 std::vector<int32_t> /* attrib_list */,
[email protected]be0a84b2011-08-13 04:18:44878 ppapi::HostResource /* result */)
[email protected]503b3a22011-12-12 23:29:40879IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBGraphics3D_InitCommandBuffer,
880 ppapi::HostResource /* context */)
881IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer,
[email protected]be0a84b2011-08-13 04:18:44882 ppapi::HostResource /* context */,
[email protected]503b3a22011-12-12 23:29:40883 int32 /* transfer_buffer_id */)
[email protected]eeb4e4a2011-07-19 16:22:06884IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBGraphics3D_GetState,
[email protected]be0a84b2011-08-13 04:18:44885 ppapi::HostResource /* context */,
[email protected]eeb4e4a2011-07-19 16:22:06886 gpu::CommandBuffer::State /* state */)
[email protected]eeb4e4a2011-07-19 16:22:06887IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Flush,
[email protected]be0a84b2011-08-13 04:18:44888 ppapi::HostResource /* context */,
[email protected]eeb4e4a2011-07-19 16:22:06889 int32 /* put_offset */,
890 int32 /* last_known_get */,
891 gpu::CommandBuffer::State /* state */)
[email protected]eeb4e4a2011-07-19 16:22:06892IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics3D_AsyncFlush,
[email protected]be0a84b2011-08-13 04:18:44893 ppapi::HostResource /* context */,
[email protected]eeb4e4a2011-07-19 16:22:06894 int32 /* put_offset */)
[email protected]eeb4e4a2011-07-19 16:22:06895IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer,
[email protected]be0a84b2011-08-13 04:18:44896 ppapi::HostResource /* context */,
[email protected]eeb4e4a2011-07-19 16:22:06897 int32 /* size */,
898 int32 /* id */)
[email protected]eeb4e4a2011-07-19 16:22:06899IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer,
[email protected]be0a84b2011-08-13 04:18:44900 ppapi::HostResource /* context */,
[email protected]eeb4e4a2011-07-19 16:22:06901 int32 /* id */)
[email protected]eeb4e4a2011-07-19 16:22:06902IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBGraphics3D_GetTransferBuffer,
[email protected]be0a84b2011-08-13 04:18:44903 ppapi::HostResource /* context */,
[email protected]eeb4e4a2011-07-19 16:22:06904 int32 /* id */,
905 base::SharedMemoryHandle /* transfer_buffer */,
906 uint32 /* size */)
[email protected]eeb4e4a2011-07-19 16:22:06907IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics3D_SwapBuffers,
[email protected]be0a84b2011-08-13 04:18:44908 ppapi::HostResource /* graphics_3d */)
[email protected]eeb4e4a2011-07-19 16:22:06909
[email protected]2a1d6d912011-12-04 23:29:06910// PPB_ImageData.
911IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_Create,
912 PP_Instance /* instance */,
913 int32 /* format */,
914 PP_Size /* size */,
915 PP_Bool /* init_to_zero */,
916 ppapi::HostResource /* result_resource */,
917 std::string /* image_data_desc */,
918 ppapi::proxy::ImageHandle /* result */)
919
[email protected]631179b2011-03-14 22:26:20920// PPB_Instance.
921IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject,
922 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:02923 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20924IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject,
925 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:02926 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20927IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_BindGraphics,
928 PP_Instance /* instance */,
[email protected]be0a84b2011-08-13 04:18:44929 ppapi::HostResource /* device */,
[email protected]631179b2011-03-14 22:26:20930 PP_Bool /* result */)
[email protected]c59ed5892012-02-18 01:10:19931IPC_SYNC_MESSAGE_ROUTED1_1(
932 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputSampleRate,
933 PP_Instance /* instance */,
934 uint32_t /* result */)
935IPC_SYNC_MESSAGE_ROUTED1_1(
936 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputBufferSize,
937 PP_Instance /* instance */,
938 uint32_t /* result */)
[email protected]631179b2011-03-14 22:26:20939IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_IsFullFrame,
940 PP_Instance /* instance */,
941 PP_Bool /* result */)
942IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBInstance_ExecuteScript,
943 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:02944 ppapi::proxy::SerializedVar /* script */,
945 ppapi::proxy::SerializedVar /* out_exception */,
946 ppapi::proxy::SerializedVar /* result */)
[email protected]8d770e492011-10-11 04:54:31947IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetDefaultCharSet,
948 PP_Instance /* instance */,
949 ppapi::proxy::SerializedVar /* result */)
[email protected]7a26d92e2012-02-17 20:15:25950IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBInstance_GetFontFamilies,
951 std::string /* result */)
[email protected]06e0a342011-09-27 04:24:30952IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_SetFullscreen,
953 PP_Instance /* instance */,
954 PP_Bool /* fullscreen */,
955 PP_Bool /* result */)
956IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetScreenSize,
957 PP_Instance /* instance */,
958 PP_Bool /* result */,
959 PP_Size /* size */)
[email protected]dafab752011-09-20 20:08:40960IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_FlashSetFullscreen,
[email protected]792f1ca32011-05-25 16:43:43961 PP_Instance /* instance */,
[email protected]ceadc392011-06-15 23:04:24962 PP_Bool /* fullscreen */,
963 PP_Bool /* result */)
[email protected]dafab752011-09-20 20:08:40964IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_FlashGetScreenSize,
[email protected]792f1ca32011-05-25 16:43:43965 PP_Instance /* instance */,
[email protected]ceadc392011-06-15 23:04:24966 PP_Bool /* result */,
967 PP_Size /* size */)
[email protected]493d14212011-07-07 15:38:48968IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_RequestInputEvents,
969 PP_Instance /* instance */,
970 bool /* is_filtering */,
971 uint32_t /* event_classes */)
972IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_ClearInputEvents,
973 PP_Instance /* instance */,
974 uint32_t /* event_classes */)
[email protected]55a5a522011-07-06 22:52:40975IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PostMessage,
976 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:02977 ppapi::proxy::SerializedVar /* message */)
[email protected]0f41c012011-10-21 19:49:20978IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_LockMouse,
979 PP_Instance /* instance */)
[email protected]18d871f2011-09-08 16:56:34980IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_UnlockMouse,
981 PP_Instance /* instance */)
[email protected]03460232011-10-10 17:23:57982IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_ResolveRelativeToDocument,
983 PP_Instance /* instance */,
984 ppapi::proxy::SerializedVar /* relative */,
985 ppapi::proxy::SerializedVar /* result */)
986IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanRequest,
987 PP_Instance /* instance */,
988 ppapi::proxy::SerializedVar /* relative */,
989 PP_Bool /* result */)
990IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanAccessDocument,
991 PP_Instance /* active */,
992 PP_Instance /* target */,
993 PP_Bool /* result */)
994IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetDocumentURL,
995 PP_Instance /* active */,
996 ppapi::proxy::SerializedVar /* result */)
997IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetPluginInstanceURL,
998 PP_Instance /* active */,
999 ppapi::proxy::SerializedVar /* result */)
[email protected]792f1ca32011-05-25 16:43:431000
[email protected]631179b2011-03-14 22:26:201001IPC_SYNC_MESSAGE_ROUTED3_1(
1002 PpapiHostMsg_PPBPDF_GetFontFileWithFallback,
1003 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:021004 ppapi::proxy::SerializedFontDescription /* description */,
[email protected]631179b2011-03-14 22:26:201005 int32_t /* charset */,
[email protected]be0a84b2011-08-13 04:18:441006 ppapi::HostResource /* result */)
[email protected]631179b2011-03-14 22:26:201007IPC_SYNC_MESSAGE_ROUTED2_1(
1008 PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile,
[email protected]be0a84b2011-08-13 04:18:441009 ppapi::HostResource /* font_file */,
[email protected]631179b2011-03-14 22:26:201010 uint32_t /* table */,
1011 std::string /* result */)
1012
[email protected]631179b2011-03-14 22:26:201013// PPB_Testing.
1014IPC_SYNC_MESSAGE_ROUTED3_1(
1015 PpapiHostMsg_PPBTesting_ReadImageData,
[email protected]be0a84b2011-08-13 04:18:441016 ppapi::HostResource /* device_context_2d */,
1017 ppapi::HostResource /* image */,
[email protected]631179b2011-03-14 22:26:201018 PP_Point /* top_left */,
1019 PP_Bool /* result */)
[email protected]631179b2011-03-14 22:26:201020IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance,
1021 PP_Instance /* instance */,
1022 uint32 /* result */)
[email protected]ed33e2e2011-11-20 21:18:071023IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTesting_SimulateInputEvent,
1024 PP_Instance /* instance */,
1025 ppapi::InputEventData /* input_event */)
[email protected]631179b2011-03-14 22:26:201026
[email protected]2daba2f32011-09-29 04:23:091027// PPB_TextInput.
1028IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTextInput_SetTextInputType,
1029 PP_Instance /* instance */,
1030 PP_TextInput_Type /* type */)
1031IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBTextInput_UpdateCaretPosition,
1032 PP_Instance /* instance */,
1033 PP_Rect /* caret */,
1034 PP_Rect /* bounding_box */)
1035IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBTextInput_CancelCompositionText,
1036 PP_Instance /* instance */)
1037
[email protected]631179b2011-03-14 22:26:201038// PPB_URLLoader.
1039IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create,
1040 PP_Instance /* instance */,
[email protected]be0a84b2011-08-13 04:18:441041 ppapi::HostResource /* result */)
[email protected]0f41c012011-10-21 19:49:201042IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_Open,
[email protected]be0a84b2011-08-13 04:18:441043 ppapi::HostResource /* loader */,
[email protected]0f41c012011-10-21 19:49:201044 ppapi::PPB_URLRequestInfo_Data /* request_data */)
1045IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FollowRedirect,
1046 ppapi::HostResource /* loader */)
[email protected]631179b2011-03-14 22:26:201047IPC_SYNC_MESSAGE_ROUTED1_1(
1048 PpapiHostMsg_PPBURLLoader_GetResponseInfo,
[email protected]be0a84b2011-08-13 04:18:441049 ppapi::HostResource /* loader */,
1050 ppapi::HostResource /* response_info_out */)
[email protected]631179b2011-03-14 22:26:201051IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_ReadResponseBody,
[email protected]be0a84b2011-08-13 04:18:441052 ppapi::HostResource /* loader */,
[email protected]631179b2011-03-14 22:26:201053 int32_t /* bytes_to_read */)
[email protected]0f41c012011-10-21 19:49:201054IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FinishStreamingToFile,
1055 ppapi::HostResource /* loader */)
[email protected]631179b2011-03-14 22:26:201056IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_Close,
[email protected]be0a84b2011-08-13 04:18:441057 ppapi::HostResource /* loader */)
[email protected]bf712f8e2011-06-17 02:10:451058IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_GrantUniversalAccess,
[email protected]be0a84b2011-08-13 04:18:441059 ppapi::HostResource /* loader */)
[email protected]631179b2011-03-14 22:26:201060
[email protected]631179b2011-03-14 22:26:201061// PPB_URLResponseInfo.
1062IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBURLResponseInfo_GetProperty,
[email protected]be0a84b2011-08-13 04:18:441063 ppapi::HostResource /* response */,
[email protected]631179b2011-03-14 22:26:201064 int32_t /* property */,
[email protected]4d2efd22011-08-18 21:58:021065 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201066IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLResponseInfo_GetBodyAsFileRef,
[email protected]be0a84b2011-08-13 04:18:441067 ppapi::HostResource /* response */,
[email protected]6f75c952011-08-26 04:51:071068 ppapi::PPB_FileRef_CreateInfo /* result */)
[email protected]631179b2011-03-14 22:26:201069
1070// PPB_Var.
[email protected]5b2d3852011-04-19 23:22:401071IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVar_AddRefObject,
1072 int64 /* object_id */,
1073 int /* unused - need a return value for sync msgs */)
[email protected]631179b2011-03-14 22:26:201074IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_ReleaseObject,
1075 int64 /* object_id */)
1076IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_ConvertType,
1077 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:021078 ppapi::proxy::SerializedVar /* var */,
[email protected]631179b2011-03-14 22:26:201079 int /* new_type */,
[email protected]4d2efd22011-08-18 21:58:021080 ppapi::proxy::SerializedVar /* exception */,
1081 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201082IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasProperty,
[email protected]4d2efd22011-08-18 21:58:021083 ppapi::proxy::SerializedVar /* object */,
1084 ppapi::proxy::SerializedVar /* property */,
1085 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:201086 PP_Bool /* result */)
1087IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasMethodDeprecated,
[email protected]4d2efd22011-08-18 21:58:021088 ppapi::proxy::SerializedVar /* object */,
1089 ppapi::proxy::SerializedVar /* method */,
1090 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:201091 PP_Bool /* result */)
1092IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_GetProperty,
[email protected]4d2efd22011-08-18 21:58:021093 ppapi::proxy::SerializedVar /* object */,
1094 ppapi::proxy::SerializedVar /* property */,
1095 ppapi::proxy::SerializedVar /* out_exception */,
1096 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201097IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_DeleteProperty,
[email protected]4d2efd22011-08-18 21:58:021098 ppapi::proxy::SerializedVar /* object */,
1099 ppapi::proxy::SerializedVar /* property */,
1100 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:201101 PP_Bool /* result */)
1102IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBVar_EnumerateProperties,
[email protected]4d2efd22011-08-18 21:58:021103 ppapi::proxy::SerializedVar /* object */,
1104 std::vector<ppapi::proxy::SerializedVar> /* props */,
1105 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:201106IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_SetPropertyDeprecated,
[email protected]4d2efd22011-08-18 21:58:021107 ppapi::proxy::SerializedVar /* object */,
1108 ppapi::proxy::SerializedVar /* name */,
1109 ppapi::proxy::SerializedVar /* value */,
1110 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:201111IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_CallDeprecated,
[email protected]4d2efd22011-08-18 21:58:021112 ppapi::proxy::SerializedVar /* object */,
1113 ppapi::proxy::SerializedVar /* method_name */,
1114 std::vector<ppapi::proxy::SerializedVar> /* args */,
1115 ppapi::proxy::SerializedVar /* out_exception */,
1116 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201117IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_Construct,
[email protected]4d2efd22011-08-18 21:58:021118 ppapi::proxy::SerializedVar /* object */,
1119 std::vector<ppapi::proxy::SerializedVar> /* args */,
1120 ppapi::proxy::SerializedVar /* out_exception */,
1121 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201122IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated,
[email protected]4d2efd22011-08-18 21:58:021123 ppapi::proxy::SerializedVar /* var */,
[email protected]631179b2011-03-14 22:26:201124 int64 /* object_class */,
1125 int64 /* object-data */,
1126 PP_Bool /* result */)
1127IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated,
1128 PP_Instance /* instance */,
1129 int64 /* object_class */,
1130 int64 /* object_data */,
[email protected]4d2efd22011-08-18 21:58:021131 ppapi::proxy::SerializedVar /* result */)
[email protected]6239d342011-05-06 22:55:471132
[email protected]0fa46e82011-08-09 07:31:491133// PPB_VideoCapture_Dev.
1134IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVideoCapture_Create,
1135 PP_Instance /* instance */,
[email protected]be0a84b2011-08-13 04:18:441136 ppapi::HostResource /* result */)
[email protected]cc7c2442012-02-15 22:58:151137IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_EnumerateDevices,
1138 ppapi::HostResource /* video_capture */)
1139IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoCapture_Open,
[email protected]be0a84b2011-08-13 04:18:441140 ppapi::HostResource /* video_capture */,
[email protected]cc7c2442012-02-15 22:58:151141 std::string /* device_id */,
[email protected]0fa46e82011-08-09 07:31:491142 PP_VideoCaptureDeviceInfo_Dev /* requested_info */,
1143 uint32_t /* buffer_count */)
[email protected]cc7c2442012-02-15 22:58:151144IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_StartCapture,
1145 ppapi::HostResource /* video_capture */)
[email protected]0fa46e82011-08-09 07:31:491146IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoCapture_ReuseBuffer,
[email protected]be0a84b2011-08-13 04:18:441147 ppapi::HostResource /* video_capture */,
[email protected]0fa46e82011-08-09 07:31:491148 uint32_t /* buffer */)
1149IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_StopCapture,
[email protected]be0a84b2011-08-13 04:18:441150 ppapi::HostResource /* video_capture */)
[email protected]cc7c2442012-02-15 22:58:151151IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_Close,
1152 ppapi::HostResource /* video_capture */)
1153IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBVideoCapture_StartCapture0_1,
1154 ppapi::HostResource /* video_capture */,
1155 PP_VideoCaptureDeviceInfo_Dev /* requested_info */,
1156 uint32_t /* buffer_count */)
[email protected]0fa46e82011-08-09 07:31:491157
[email protected]7ace8ad2011-08-06 03:23:581158// PPB_VideoDecoder.
1159IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVideoDecoder_Create,
1160 PP_Instance /* instance */,
[email protected]be0a84b2011-08-13 04:18:441161 ppapi::HostResource /* context */,
[email protected]2ffc31a2011-09-01 03:18:281162 PP_VideoDecoder_Profile /* profile */,
[email protected]be0a84b2011-08-13 04:18:441163 ppapi::HostResource /* result */)
[email protected]7ace8ad2011-08-06 03:23:581164IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoDecoder_Decode,
[email protected]be0a84b2011-08-13 04:18:441165 ppapi::HostResource /* video_decoder */,
1166 ppapi::HostResource /* bitstream buffer */,
[email protected]7ace8ad2011-08-06 03:23:581167 int32 /* bitstream buffer id */,
1168 int32 /* size of buffer */)
1169IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_AssignPictureBuffers,
[email protected]be0a84b2011-08-13 04:18:441170 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:581171 std::vector<PP_PictureBuffer_Dev> /* picture buffers */)
1172IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer,
[email protected]be0a84b2011-08-13 04:18:441173 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:581174 int32_t /* picture buffer id */)
1175IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush,
[email protected]be0a84b2011-08-13 04:18:441176 ppapi::HostResource /* video_decoder */)
[email protected]7ace8ad2011-08-06 03:23:581177IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset,
[email protected]be0a84b2011-08-13 04:18:441178 ppapi::HostResource /* video_decoder */)
[email protected]7ace8ad2011-08-06 03:23:581179IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy,
[email protected]be0a84b2011-08-13 04:18:441180 ppapi::HostResource /* video_decoder */)