blob: 1c8a3def8bacdf46a91dbe3f65a65185943c2a99 [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]32938de2012-10-19 18:42:3224#include "ppapi/c/dev/ppb_url_util_dev.h"
[email protected]3890cfff2012-02-29 07:54:1825#include "ppapi/c/dev/ppp_printing_dev.h"
[email protected]19d2b012010-11-08 16:32:1826#include "ppapi/c/pp_bool.h"
[email protected]ea505a9d2011-07-07 18:34:4027#include "ppapi/c/pp_file_info.h"
[email protected]c2932f5e2010-11-03 03:22:3328#include "ppapi/c/pp_instance.h"
29#include "ppapi/c/pp_module.h"
[email protected]9b7cc082011-04-20 20:25:5530#include "ppapi/c/pp_point.h"
31#include "ppapi/c/pp_rect.h"
[email protected]c2932f5e2010-11-03 03:22:3332#include "ppapi/c/pp_resource.h"
[email protected]9b7cc082011-04-20 20:25:5533#include "ppapi/c/pp_size.h"
[email protected]3b98ced72012-03-09 02:08:3334#include "ppapi/c/pp_time.h"
[email protected]77b55502012-11-08 22:20:2035#include "ppapi/c/ppb_audio_config.h"
[email protected]23de87452012-10-12 07:03:0936#include "ppapi/c/private/pp_content_decryptor.h"
[email protected]cb65f132012-10-09 17:06:0937#include "ppapi/c/private/pp_private_font_charset.h"
[email protected]ea628e32012-08-02 21:50:1638#include "ppapi/c/private/ppb_flash.h"
[email protected]24931102012-03-15 01:21:2739#include "ppapi/c/private/ppb_host_resolver_private.h"
40#include "ppapi/c/private/ppb_net_address_private.h"
[email protected]fb575bc2011-11-16 07:06:2441#include "ppapi/c/private/ppb_tcp_socket_private.h"
[email protected]0addda92012-08-31 08:55:2842#include "ppapi/c/private/ppb_udp_socket_private.h"
[email protected]1a559442012-05-27 07:18:4643#include "ppapi/c/private/ppp_flash_browser_operations.h"
[email protected]c2932f5e2010-11-03 03:22:3344#include "ppapi/proxy/ppapi_param_traits.h"
[email protected]f0a04c42011-08-26 22:43:2045#include "ppapi/proxy/ppapi_proxy_export.h"
[email protected]077ecfd42012-06-21 21:46:2646#include "ppapi/proxy/resource_message_params.h"
[email protected]7358d572011-02-15 18:44:4047#include "ppapi/proxy/serialized_flash_menu.h"
[email protected]fb35dcf2010-11-14 17:08:0048#include "ppapi/proxy/serialized_structs.h"
[email protected]cb65f132012-10-09 17:06:0949#include "ppapi/proxy/serialized_var.h"
[email protected]208aad792011-05-26 19:05:2850#include "ppapi/shared_impl/ppapi_preferences.h"
[email protected]dca65e12012-01-21 07:54:1751#include "ppapi/shared_impl/ppb_device_ref_shared.h"
[email protected]9a578392011-12-07 18:59:2752#include "ppapi/shared_impl/ppb_input_event_shared.h"
[email protected]5b9b80e2012-03-20 20:19:3953#include "ppapi/shared_impl/ppb_network_list_private_shared.h"
[email protected]e8f07ac2012-01-03 17:43:3654#include "ppapi/shared_impl/ppb_view_shared.h"
[email protected]ee4dd682012-06-12 15:49:3355#include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h"
[email protected]24931102012-03-15 01:21:2756#include "ppapi/shared_impl/private/ppb_host_resolver_shared.h"
[email protected]de2895262012-04-04 17:15:4857#include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h"
[email protected]7b2f7292012-09-19 19:52:1258#include "ppapi/shared_impl/url_request_info_data.h"
[email protected]19d2b012010-11-08 16:32:1859
[email protected]f0a04c42011-08-26 22:43:2060#undef IPC_MESSAGE_EXPORT
61#define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT
62
[email protected]631179b2011-03-14 22:26:2063#define IPC_MESSAGE_START PpapiMsgStart
[email protected]c2932f5e2010-11-03 03:22:3364
[email protected]77b55502012-11-08 22:20:2065IPC_ENUM_TRAITS(PP_AudioSampleRate)
[email protected]dca65e12012-01-21 07:54:1766IPC_ENUM_TRAITS(PP_DeviceType_Dev)
[email protected]23de87452012-10-12 07:03:0967IPC_ENUM_TRAITS(PP_DecryptorStreamType)
[email protected]1a559442012-05-27 07:18:4668IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission)
69IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType)
[email protected]ea628e32012-08-02 21:50:1670IPC_ENUM_TRAITS(PP_FlashSetting)
[email protected]493d14212011-07-07 15:38:4871IPC_ENUM_TRAITS(PP_InputEvent_MouseButton)
[email protected]24931102012-03-15 01:21:2772IPC_ENUM_TRAITS(PP_InputEvent_Type)
73IPC_ENUM_TRAITS(PP_NetAddressFamily_Private)
[email protected]5b9b80e2012-03-20 20:19:3974IPC_ENUM_TRAITS(PP_NetworkListState_Private)
[email protected]0addda92012-08-31 08:55:2875IPC_ENUM_TRAITS(PP_NetworkListType_Private)
[email protected]772a74622012-06-14 21:15:5076IPC_ENUM_TRAITS(PP_PrintOrientation_Dev)
77IPC_ENUM_TRAITS(PP_PrintOutputFormat_Dev)
78IPC_ENUM_TRAITS(PP_PrintScalingOption_Dev)
[email protected]cb65f132012-10-09 17:06:0979IPC_ENUM_TRAITS(PP_PrivateFontCharset)
[email protected]2daba2f32011-09-29 04:23:0980IPC_ENUM_TRAITS(PP_TextInput_Type)
[email protected]7ace8ad2011-08-06 03:23:5881IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev)
[email protected]24931102012-03-15 01:21:2782IPC_ENUM_TRAITS(PP_VideoDecoder_Profile)
[email protected]493d14212011-07-07 15:38:4883
[email protected]9b7cc082011-04-20 20:25:5584IPC_STRUCT_TRAITS_BEGIN(PP_Point)
85 IPC_STRUCT_TRAITS_MEMBER(x)
86 IPC_STRUCT_TRAITS_MEMBER(y)
87IPC_STRUCT_TRAITS_END()
88
[email protected]493d14212011-07-07 15:38:4889IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint)
90 IPC_STRUCT_TRAITS_MEMBER(x)
91 IPC_STRUCT_TRAITS_MEMBER(y)
92IPC_STRUCT_TRAITS_END()
93
[email protected]9b7cc082011-04-20 20:25:5594IPC_STRUCT_TRAITS_BEGIN(PP_Size)
95 IPC_STRUCT_TRAITS_MEMBER(height)
96 IPC_STRUCT_TRAITS_MEMBER(width)
97IPC_STRUCT_TRAITS_END()
98
99IPC_STRUCT_TRAITS_BEGIN(PP_Rect)
100 IPC_STRUCT_TRAITS_MEMBER(point)
101 IPC_STRUCT_TRAITS_MEMBER(size)
102IPC_STRUCT_TRAITS_END()
103
[email protected]7ace8ad2011-08-06 03:23:58104IPC_STRUCT_TRAITS_BEGIN(PP_PictureBuffer_Dev)
105 IPC_STRUCT_TRAITS_MEMBER(id)
106 IPC_STRUCT_TRAITS_MEMBER(size)
107 IPC_STRUCT_TRAITS_MEMBER(texture_id)
108IPC_STRUCT_TRAITS_END()
109
110IPC_STRUCT_TRAITS_BEGIN(PP_Picture_Dev)
111 IPC_STRUCT_TRAITS_MEMBER(picture_buffer_id)
112 IPC_STRUCT_TRAITS_MEMBER(bitstream_buffer_id)
113IPC_STRUCT_TRAITS_END()
114
[email protected]3890cfff2012-02-29 07:54:18115IPC_STRUCT_TRAITS_BEGIN(PP_PrintPageNumberRange_Dev)
116 IPC_STRUCT_TRAITS_MEMBER(first_page_number)
117 IPC_STRUCT_TRAITS_MEMBER(last_page_number)
118IPC_STRUCT_TRAITS_END()
119
[email protected]0fa46e82011-08-09 07:31:49120IPC_STRUCT_TRAITS_BEGIN(PP_VideoCaptureDeviceInfo_Dev)
121 IPC_STRUCT_TRAITS_MEMBER(width)
122 IPC_STRUCT_TRAITS_MEMBER(height)
123 IPC_STRUCT_TRAITS_MEMBER(frames_per_second)
124IPC_STRUCT_TRAITS_END()
125
[email protected]24931102012-03-15 01:21:27126IPC_STRUCT_TRAITS_BEGIN(PP_HostResolver_Private_Hint)
127 IPC_STRUCT_TRAITS_MEMBER(family)
128 IPC_STRUCT_TRAITS_MEMBER(flags)
129IPC_STRUCT_TRAITS_END()
130
[email protected]772a74622012-06-14 21:15:50131IPC_STRUCT_TRAITS_BEGIN(PP_PrintSettings_Dev)
132 IPC_STRUCT_TRAITS_MEMBER(printable_area)
133 IPC_STRUCT_TRAITS_MEMBER(content_area)
134 IPC_STRUCT_TRAITS_MEMBER(paper_size)
135 IPC_STRUCT_TRAITS_MEMBER(dpi)
136 IPC_STRUCT_TRAITS_MEMBER(orientation)
137 IPC_STRUCT_TRAITS_MEMBER(print_scaling_option)
138 IPC_STRUCT_TRAITS_MEMBER(grayscale)
139 IPC_STRUCT_TRAITS_MEMBER(format)
140IPC_STRUCT_TRAITS_END()
141
[email protected]32938de2012-10-19 18:42:32142IPC_STRUCT_TRAITS_BEGIN(PP_URLComponent_Dev)
143 IPC_STRUCT_TRAITS_MEMBER(begin)
144 IPC_STRUCT_TRAITS_MEMBER(len)
145IPC_STRUCT_TRAITS_END()
146
147IPC_STRUCT_TRAITS_BEGIN(PP_URLComponents_Dev)
148 IPC_STRUCT_TRAITS_MEMBER(scheme)
149 IPC_STRUCT_TRAITS_MEMBER(username)
150 IPC_STRUCT_TRAITS_MEMBER(password)
151 IPC_STRUCT_TRAITS_MEMBER(host)
152 IPC_STRUCT_TRAITS_MEMBER(port)
153 IPC_STRUCT_TRAITS_MEMBER(path)
154 IPC_STRUCT_TRAITS_MEMBER(query)
155 IPC_STRUCT_TRAITS_MEMBER(ref)
156IPC_STRUCT_TRAITS_END()
157
[email protected]dca65e12012-01-21 07:54:17158IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData)
159 IPC_STRUCT_TRAITS_MEMBER(type)
160 IPC_STRUCT_TRAITS_MEMBER(name)
161 IPC_STRUCT_TRAITS_MEMBER(id)
162IPC_STRUCT_TRAITS_END()
163
[email protected]ee4dd682012-06-12 15:49:33164IPC_STRUCT_TRAITS_BEGIN(ppapi::FlashSiteSetting)
165 IPC_STRUCT_TRAITS_MEMBER(site)
166 IPC_STRUCT_TRAITS_MEMBER(permission)
167IPC_STRUCT_TRAITS_END()
168
[email protected]e8f07ac2012-01-03 17:43:36169IPC_STRUCT_TRAITS_BEGIN(ppapi::ViewData)
170 IPC_STRUCT_TRAITS_MEMBER(rect)
171 IPC_STRUCT_TRAITS_MEMBER(is_fullscreen)
172 IPC_STRUCT_TRAITS_MEMBER(is_page_visible)
173 IPC_STRUCT_TRAITS_MEMBER(clip_rect)
[email protected]0cd5b9df2012-06-28 19:33:33174 IPC_STRUCT_TRAITS_MEMBER(device_scale)
175 IPC_STRUCT_TRAITS_MEMBER(css_scale)
[email protected]e8f07ac2012-01-03 17:43:36176IPC_STRUCT_TRAITS_END()
177
[email protected]cdf4e912012-06-21 23:15:10178IPC_STRUCT_TRAITS_BEGIN(PP_TouchPoint)
179 IPC_STRUCT_TRAITS_MEMBER(id)
180 IPC_STRUCT_TRAITS_MEMBER(position)
181 IPC_STRUCT_TRAITS_MEMBER(radius)
182 IPC_STRUCT_TRAITS_MEMBER(rotation_angle)
183 IPC_STRUCT_TRAITS_MEMBER(pressure)
184IPC_STRUCT_TRAITS_END()
185
[email protected]4d2efd22011-08-18 21:58:02186IPC_STRUCT_TRAITS_BEGIN(ppapi::Preferences)
[email protected]966d1e12012-05-18 07:20:32187 IPC_STRUCT_TRAITS_MEMBER(standard_font_family_map)
188 IPC_STRUCT_TRAITS_MEMBER(fixed_font_family_map)
189 IPC_STRUCT_TRAITS_MEMBER(serif_font_family_map)
190 IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family_map)
[email protected]208aad792011-05-26 19:05:28191 IPC_STRUCT_TRAITS_MEMBER(default_font_size)
192 IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size)
[email protected]6b4dcb072012-06-18 22:26:51193 IPC_STRUCT_TRAITS_MEMBER(number_of_cpu_cores)
[email protected]e0d8c422012-06-04 22:57:19194 IPC_STRUCT_TRAITS_MEMBER(is_3d_supported)
195 IPC_STRUCT_TRAITS_MEMBER(is_stage3d_supported)
[email protected]208aad792011-05-26 19:05:28196IPC_STRUCT_TRAITS_END()
197
[email protected]4d2efd22011-08-18 21:58:02198IPC_STRUCT_TRAITS_BEGIN(ppapi::InputEventData)
[email protected]493d14212011-07-07 15:38:48199 IPC_STRUCT_TRAITS_MEMBER(is_filtered)
200 IPC_STRUCT_TRAITS_MEMBER(event_type)
201 IPC_STRUCT_TRAITS_MEMBER(event_time_stamp)
202 IPC_STRUCT_TRAITS_MEMBER(event_modifiers)
203 IPC_STRUCT_TRAITS_MEMBER(mouse_button)
204 IPC_STRUCT_TRAITS_MEMBER(mouse_position)
205 IPC_STRUCT_TRAITS_MEMBER(mouse_click_count)
[email protected]80473262011-08-31 17:15:18206 IPC_STRUCT_TRAITS_MEMBER(mouse_movement)
[email protected]493d14212011-07-07 15:38:48207 IPC_STRUCT_TRAITS_MEMBER(wheel_delta)
208 IPC_STRUCT_TRAITS_MEMBER(wheel_ticks)
209 IPC_STRUCT_TRAITS_MEMBER(wheel_scroll_by_page)
210 IPC_STRUCT_TRAITS_MEMBER(key_code)
[email protected]e1e08b42012-02-21 22:42:58211 IPC_STRUCT_TRAITS_MEMBER(usb_key_code)
[email protected]493d14212011-07-07 15:38:48212 IPC_STRUCT_TRAITS_MEMBER(character_text)
[email protected]2daba2f32011-09-29 04:23:09213 IPC_STRUCT_TRAITS_MEMBER(composition_segment_offsets)
214 IPC_STRUCT_TRAITS_MEMBER(composition_target_segment)
215 IPC_STRUCT_TRAITS_MEMBER(composition_selection_start)
216 IPC_STRUCT_TRAITS_MEMBER(composition_selection_end)
[email protected]cdf4e912012-06-21 23:15:10217 IPC_STRUCT_TRAITS_MEMBER(touches)
218 IPC_STRUCT_TRAITS_MEMBER(changed_touches)
219 IPC_STRUCT_TRAITS_MEMBER(target_touches)
[email protected]493d14212011-07-07 15:38:48220IPC_STRUCT_TRAITS_END()
221
[email protected]24931102012-03-15 01:21:27222IPC_STRUCT_TRAITS_BEGIN(ppapi::HostPortPair)
223 IPC_STRUCT_TRAITS_MEMBER(host)
224 IPC_STRUCT_TRAITS_MEMBER(port)
225IPC_STRUCT_TRAITS_END()
226
[email protected]7b2f7292012-09-19 19:52:12227IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData)
[email protected]6f75c952011-08-26 04:51:07228 IPC_STRUCT_TRAITS_MEMBER(url)
229 IPC_STRUCT_TRAITS_MEMBER(method)
230 IPC_STRUCT_TRAITS_MEMBER(headers)
231 IPC_STRUCT_TRAITS_MEMBER(stream_to_file)
232 IPC_STRUCT_TRAITS_MEMBER(follow_redirects)
233 IPC_STRUCT_TRAITS_MEMBER(record_download_progress)
234 IPC_STRUCT_TRAITS_MEMBER(record_upload_progress)
235 IPC_STRUCT_TRAITS_MEMBER(has_custom_referrer_url)
236 IPC_STRUCT_TRAITS_MEMBER(custom_referrer_url)
237 IPC_STRUCT_TRAITS_MEMBER(allow_cross_origin_requests)
238 IPC_STRUCT_TRAITS_MEMBER(allow_credentials)
239 IPC_STRUCT_TRAITS_MEMBER(has_custom_content_transfer_encoding)
240 IPC_STRUCT_TRAITS_MEMBER(custom_content_transfer_encoding)
241 IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_upper_threshold)
242 IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_lower_threshold)
[email protected]c094eaf2012-07-10 16:09:01243 IPC_STRUCT_TRAITS_MEMBER(has_custom_user_agent)
244 IPC_STRUCT_TRAITS_MEMBER(custom_user_agent)
[email protected]6f75c952011-08-26 04:51:07245 IPC_STRUCT_TRAITS_MEMBER(body)
246IPC_STRUCT_TRAITS_END()
247
[email protected]7b2f7292012-09-19 19:52:12248IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData::BodyItem)
[email protected]6f75c952011-08-26 04:51:07249 IPC_STRUCT_TRAITS_MEMBER(is_file)
250 IPC_STRUCT_TRAITS_MEMBER(data)
251 // Note: we don't serialize file_ref.
252 IPC_STRUCT_TRAITS_MEMBER(file_ref_host_resource)
253 IPC_STRUCT_TRAITS_MEMBER(start_offset)
254 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes)
255 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time)
256IPC_STRUCT_TRAITS_END()
257
[email protected]5b9b80e2012-03-20 20:19:39258IPC_STRUCT_TRAITS_BEGIN(ppapi::NetworkInfo)
259 IPC_STRUCT_TRAITS_MEMBER(name)
260 IPC_STRUCT_TRAITS_MEMBER(type)
261 IPC_STRUCT_TRAITS_MEMBER(state)
262 IPC_STRUCT_TRAITS_MEMBER(addresses)
263 IPC_STRUCT_TRAITS_MEMBER(display_name)
264 IPC_STRUCT_TRAITS_MEMBER(mtu)
265IPC_STRUCT_TRAITS_END()
[email protected]e5aeef02012-08-17 00:18:43266
[email protected]e8f578d2012-09-17 19:27:10267#if !defined(OS_NACL) && !defined(NACL_WIN64)
268IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPVideoCapture_Buffer)
269 IPC_STRUCT_TRAITS_MEMBER(resource)
270 IPC_STRUCT_TRAITS_MEMBER(handle)
271 IPC_STRUCT_TRAITS_MEMBER(size)
272IPC_STRUCT_TRAITS_END()
273
[email protected]e5aeef02012-08-17 00:18:43274// TODO(tomfinegan): This is identical to PPPVideoCapture_Buffer, maybe replace
275// both with a single type?
276IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer)
277 IPC_STRUCT_TRAITS_MEMBER(resource)
278 IPC_STRUCT_TRAITS_MEMBER(handle)
279 IPC_STRUCT_TRAITS_MEMBER(size)
280IPC_STRUCT_TRAITS_END()
281
[email protected]667591d2012-09-04 21:30:12282#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]5b9b80e2012-03-20 20:19:39283
[email protected]eb415bf0e2011-04-14 02:45:42284// These are from the browser to the plugin.
[email protected]631179b2011-03-14 22:26:20285// Loads the given plugin.
[email protected]195d4cde2012-10-02 18:12:41286IPC_MESSAGE_CONTROL2(PpapiMsg_LoadPlugin,
287 FilePath /* path */,
288 ppapi::PpapiPermissions /* permissions */)
[email protected]631179b2011-03-14 22:26:20289
290// Creates a channel to talk to a renderer. The plugin will respond with
291// PpapiHostMsg_ChannelCreated.
[email protected]f0ecb552012-05-11 22:09:11292IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel,
[email protected]bc2eeb42012-05-02 22:35:53293 int /* renderer_id */,
294 bool /* incognito */)
[email protected]631179b2011-03-14 22:26:20295
[email protected]8510d282012-08-30 19:47:38296// Creates a channel to talk to a renderer. This message is only used by the
297// NaCl IPC proxy. It is intercepted by NaClIPCAdapter, which creates the
298// actual channel and rewrites the message for the untrusted side.
[email protected]195d4cde2012-10-02 18:12:41299IPC_MESSAGE_CONTROL4(PpapiMsg_CreateNaClChannel,
[email protected]8510d282012-08-30 19:47:38300 int /* renderer_id */,
[email protected]195d4cde2012-10-02 18:12:41301 ppapi::PpapiPermissions /* permissions */,
[email protected]8510d282012-08-30 19:47:38302 bool /* incognito */,
303 ppapi::proxy::SerializedHandle /* channel_handle */)
304
[email protected]631179b2011-03-14 22:26:20305// Each plugin may be referenced by multiple renderers. We need the instance
306// IDs to be unique within a plugin, despite coming from different renderers,
307// and unique within a renderer, despite going to different plugins. This means
308// that neither the renderer nor the plugin can generate instance IDs without
309// consulting the other.
310//
311// We resolve this by having the renderer generate a unique instance ID inside
312// its process. It then asks the plugin to reserve that ID by sending this sync
313// message. If the plugin has not yet seen this ID, it will remember it as used
314// (to prevent a race condition if another renderer tries to then use the same
315// instance), and set usable as true.
316//
317// If the plugin has already seen the instance ID, it will set usable as false
318// and the renderer must retry a new instance ID.
319IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_ReserveInstanceId,
320 PP_Instance /* instance */,
321 bool /* usable */)
322
[email protected]208aad792011-05-26 19:05:28323// Passes the WebKit preferences to the plugin.
324IPC_MESSAGE_CONTROL1(PpapiMsg_SetPreferences,
[email protected]4d2efd22011-08-18 21:58:02325 ppapi::Preferences)
[email protected]208aad792011-05-26 19:05:28326
[email protected]631179b2011-03-14 22:26:20327// Sent in both directions to see if the other side supports the given
328// interface.
329IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface,
330 std::string /* interface_name */,
331 bool /* result */)
332
[email protected]246fc492012-08-27 20:28:18333#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:49334// Network state notification from the browser for implementing
335// PPP_NetworkState_Dev.
336IPC_MESSAGE_CONTROL1(PpapiMsg_SetNetworkState,
337 bool /* online */)
338
[email protected]951ef0b2012-07-27 22:46:53339// Requests a list of sites that have data stored from the plugin. The plugin
340// process will respond with PpapiHostMsg_GetSitesWithDataResult. This is used
341// for Flash.
342IPC_MESSAGE_CONTROL2(PpapiMsg_GetSitesWithData,
343 uint32 /* request_id */,
344 FilePath /* plugin_data_path */)
345IPC_MESSAGE_CONTROL2(PpapiHostMsg_GetSitesWithDataResult,
346 uint32 /* request_id */,
347 std::vector<std::string> /* sites */)
348
[email protected]1bf0fb22012-04-12 21:44:16349// Instructs the plugin to clear data for the given site & time. The plugin
350// process will respond with PpapiHostMsg_ClearSiteDataResult. This is used
351// for Flash.
[email protected]951ef0b2012-07-27 22:46:53352IPC_MESSAGE_CONTROL5(PpapiMsg_ClearSiteData,
353 uint32 /* request_id */,
[email protected]1bf0fb22012-04-12 21:44:16354 FilePath /* plugin_data_path */,
355 std::string /* site */,
356 uint64 /* flags */,
357 uint64 /* max_age */)
[email protected]951ef0b2012-07-27 22:46:53358IPC_MESSAGE_CONTROL2(PpapiHostMsg_ClearSiteDataResult,
359 uint32 /* request_id */,
[email protected]1bf0fb22012-04-12 21:44:16360 bool /* success */)
[email protected]2b657fd2011-04-18 16:00:47361
[email protected]1a559442012-05-27 07:18:46362IPC_MESSAGE_CONTROL2(PpapiMsg_DeauthorizeContentLicenses,
363 uint32 /* request_id */,
364 FilePath /* plugin_data_path */)
365IPC_MESSAGE_CONTROL2(PpapiHostMsg_DeauthorizeContentLicensesResult,
366 uint32 /* request_id */,
367 bool /* success */)
368
[email protected]ee4dd682012-06-12 15:49:33369IPC_MESSAGE_CONTROL3(PpapiMsg_GetPermissionSettings,
370 uint32 /* request_id */,
371 FilePath /* plugin_data_path */,
372 PP_Flash_BrowserOperations_SettingType /* setting_type */)
373IPC_MESSAGE_CONTROL4(
374 PpapiHostMsg_GetPermissionSettingsResult,
375 uint32 /* request_id */,
376 bool /* success */,
377 PP_Flash_BrowserOperations_Permission /* default_permission */,
378 ppapi::FlashSiteSettings /* sites */)
379
380IPC_MESSAGE_CONTROL5(PpapiMsg_SetDefaultPermission,
381 uint32 /* request_id */,
382 FilePath /* plugin_data_path */,
383 PP_Flash_BrowserOperations_SettingType /* setting_type */,
384 PP_Flash_BrowserOperations_Permission /* permission */,
385 bool /* clear_site_specific */)
386IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetDefaultPermissionResult,
387 uint32 /* request_id */,
388 bool /* success */)
389
390IPC_MESSAGE_CONTROL4(PpapiMsg_SetSitePermission,
391 uint32 /* request_id */,
392 FilePath /* plugin_data_path */,
393 PP_Flash_BrowserOperations_SettingType /* setting_type */,
394 ppapi::FlashSiteSettings /* sites */)
395IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetSitePermissionResult,
396 uint32 /* request_id */,
397 bool /* success */)
398
[email protected]1bf0fb22012-04-12 21:44:16399// Broker Process.
[email protected]6990e5d2011-09-30 18:10:57400IPC_SYNC_MESSAGE_CONTROL2_1(PpapiMsg_ConnectToPlugin,
[email protected]2b657fd2011-04-18 16:00:47401 PP_Instance /* instance */,
[email protected]6990e5d2011-09-30 18:10:57402 IPC::PlatformFileForTransit /* handle */,
403 int32_t /* result */)
[email protected]246fc492012-08-27 20:28:18404#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]2b657fd2011-04-18 16:00:47405
[email protected]631179b2011-03-14 22:26:20406// PPB_Audio.
407
408// Notifies the result of the audio stream create call. This is called in
409// both error cases and in the normal success case. These cases are
410// differentiated by the result code, which is one of the standard PPAPI
411// result codes.
412//
413// The handler of this message should always close all of the handles passed
414// in, since some could be valid even in the error case.
[email protected]246fc492012-08-27 20:28:18415IPC_MESSAGE_ROUTED4(PpapiMsg_PPBAudio_NotifyAudioStreamCreated,
[email protected]be0a84b2011-08-13 04:18:44416 ppapi::HostResource /* audio_id */,
[email protected]631179b2011-03-14 22:26:20417 int32_t /* result_code (will be != PP_OK on failure) */,
[email protected]246fc492012-08-27 20:28:18418 ppapi::proxy::SerializedHandle /* socket_handle */,
419 ppapi::proxy::SerializedHandle /* handle */)
[email protected]631179b2011-03-14 22:26:20420
[email protected]cc6db922011-12-10 16:54:22421// PPB_FileIO.
422IPC_MESSAGE_ROUTED2(PpapiMsg_PPBFileIO_GeneralComplete,
423 ppapi::HostResource /* file_io */,
424 int32_t /* result */)
425IPC_MESSAGE_ROUTED2(PpapiMsg_PPBFileIO_OpenFileComplete,
426 ppapi::HostResource /* file_io */,
427 int32_t /* result */)
428IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFileIO_QueryComplete,
429 ppapi::HostResource /* file_io */,
430 int32_t /* result */,
431 PP_FileInfo /* info */)
432IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFileIO_ReadComplete,
433 ppapi::HostResource /* file_io */,
434 int32_t /* result */,
435 std::string /* data */)
436
[email protected]0f41c012011-10-21 19:49:20437// PPB_FileRef.
438IPC_MESSAGE_ROUTED3(
439 PpapiMsg_PPBFileRef_CallbackComplete,
440 ppapi::HostResource /* resource */,
441 int /* callback_id */,
442 int32_t /* result */)
443
[email protected]631179b2011-03-14 22:26:20444// PPB_FileSystem.
445IPC_MESSAGE_ROUTED2(
446 PpapiMsg_PPBFileSystem_OpenComplete,
[email protected]be0a84b2011-08-13 04:18:44447 ppapi::HostResource /* filesystem */,
[email protected]631179b2011-03-14 22:26:20448 int32_t /* result */)
449
450// PPB_Graphics2D.
451IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK,
[email protected]be0a84b2011-08-13 04:18:44452 ppapi::HostResource /* graphics_2d */,
[email protected]631179b2011-03-14 22:26:20453 int32_t /* pp_error */)
454
[email protected]eeb4e4a2011-07-19 16:22:06455// PPB_Graphics3D.
456IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK,
[email protected]be0a84b2011-08-13 04:18:44457 ppapi::HostResource /* graphics_3d */,
[email protected]eeb4e4a2011-07-19 16:22:06458 int32_t /* pp_error */)
459
[email protected]c42835772012-08-22 18:22:13460// PPB_ImageData.
461IPC_MESSAGE_ROUTED1(PpapiMsg_PPBImageData_NotifyUnusedImageData,
462 ppapi::HostResource /* old_image_data */)
463
[email protected]0f41c012011-10-21 19:49:20464// PPB_Instance.
465IPC_MESSAGE_ROUTED2(PpapiMsg_PPBInstance_MouseLockComplete,
466 PP_Instance /* instance */,
467 int32_t /* result */)
468
[email protected]631179b2011-03-14 22:26:20469// PPP_Class.
470IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty,
471 int64 /* ppp_class */,
472 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02473 ppapi::proxy::SerializedVar /* property */,
474 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:20475 bool /* result */)
476IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod,
477 int64 /* ppp_class */,
478 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02479 ppapi::proxy::SerializedVar /* method */,
480 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:20481 bool /* result */)
482IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_GetProperty,
483 int64 /* ppp_class */,
484 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02485 ppapi::proxy::SerializedVar /* property */,
486 ppapi::proxy::SerializedVar /* out_exception */,
487 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20488IPC_SYNC_MESSAGE_ROUTED2_2(PpapiMsg_PPPClass_EnumerateProperties,
489 int64 /* ppp_class */,
490 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02491 std::vector<ppapi::proxy::SerializedVar> /* props */,
492 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:20493IPC_SYNC_MESSAGE_ROUTED4_1(PpapiMsg_PPPClass_SetProperty,
494 int64 /* ppp_class */,
495 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02496 ppapi::proxy::SerializedVar /* name */,
497 ppapi::proxy::SerializedVar /* value */,
498 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:20499IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPClass_RemoveProperty,
500 int64 /* ppp_class */,
501 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02502 ppapi::proxy::SerializedVar /* property */,
503 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:20504IPC_SYNC_MESSAGE_ROUTED4_2(PpapiMsg_PPPClass_Call,
505 int64 /* ppp_class */,
506 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02507 ppapi::proxy::SerializedVar /* method_name */,
508 std::vector<ppapi::proxy::SerializedVar> /* args */,
509 ppapi::proxy::SerializedVar /* out_exception */,
510 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20511IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_Construct,
512 int64 /* ppp_class */,
513 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02514 std::vector<ppapi::proxy::SerializedVar> /* args */,
515 ppapi::proxy::SerializedVar /* out_exception */,
516 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20517IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate,
518 int64 /* ppp_class */,
519 int64 /* object */)
520
[email protected]502ec4dd2012-06-11 20:45:01521// PPB_Flash_DeviceID.
522IPC_MESSAGE_ROUTED4(PpapiMsg_PPBFlashDeviceID_GetReply,
523 int32 /* routing_id */,
524 PP_Resource /* resource */,
525 int32 /* result */,
526 std::string /* value */)
527
[email protected]8c3bd1d2011-04-12 20:01:42528// PPP_Graphics3D_Dev.
529IPC_MESSAGE_ROUTED1(PpapiMsg_PPPGraphics3D_ContextLost,
530 PP_Instance /* instance */)
531
[email protected]493d14212011-07-07 15:38:48532// PPP_InputEvent.
533IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInputEvent_HandleInputEvent,
534 PP_Instance /* instance */,
535 ppapi::InputEventData /* data */)
536IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInputEvent_HandleFilteredInputEvent,
537 PP_Instance /* instance */,
538 ppapi::InputEventData /* data */,
539 PP_Bool /* result */)
[email protected]3b98ced72012-03-09 02:08:33540// (Message from the plugin to the browser that it handled an input event.)
541IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInputEvent_HandleInputEvent_ACK,
542 PP_Instance /* instance */,
543 PP_TimeTicks /* timestamp */)
[email protected]493d14212011-07-07 15:38:48544
[email protected]631179b2011-03-14 22:26:20545// PPP_Instance.
546IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate,
547 PP_Instance /* instance */,
548 std::vector<std::string> /* argn */,
549 std::vector<std::string> /* argv */,
550 PP_Bool /* result */)
[email protected]5e5d0b02011-04-04 19:32:07551IPC_SYNC_MESSAGE_ROUTED1_0(PpapiMsg_PPPInstance_DidDestroy,
552 PP_Instance /* instance */)
[email protected]e8f07ac2012-01-03 17:43:36553IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_DidChangeView,
[email protected]631179b2011-03-14 22:26:20554 PP_Instance /* instance */,
[email protected]e8f07ac2012-01-03 17:43:36555 ppapi::ViewData /* new_data */,
[email protected]06e0a342011-09-27 04:24:30556 PP_Bool /* flash_fullscreen */)
[email protected]631179b2011-03-14 22:26:20557IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus,
558 PP_Instance /* instance */,
559 PP_Bool /* has_focus */)
[email protected]631179b2011-03-14 22:26:20560IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInstance_HandleDocumentLoad,
561 PP_Instance /* instance */,
[email protected]be0a84b2011-08-13 04:18:44562 ppapi::HostResource /* url_loader */,
[email protected]631179b2011-03-14 22:26:20563 PP_Bool /* result */)
[email protected]631179b2011-03-14 22:26:20564
[email protected]b20df1c2011-08-03 14:38:24565// PPP_Messaging.
566IPC_MESSAGE_ROUTED2(PpapiMsg_PPPMessaging_HandleMessage,
567 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:02568 ppapi::proxy::SerializedVar /* message */)
[email protected]b20df1c2011-08-03 14:38:24569
[email protected]1314f5f2011-10-16 02:26:56570// PPP_MouseLock.
[email protected]18d871f2011-09-08 16:56:34571IPC_MESSAGE_ROUTED1(PpapiMsg_PPPMouseLock_MouseLockLost,
572 PP_Instance /* instance */)
573
[email protected]e8f578d2012-09-17 19:27:10574// PPB_NetworkMonitor_Private.
575IPC_MESSAGE_ROUTED2(PpapiMsg_PPBNetworkMonitor_NetworkList,
576 uint32 /* plugin_dispatcher_id */,
577 ppapi::NetworkList /* network_list */)
578
[email protected]3890cfff2012-02-29 07:54:18579// PPP_Printing
580IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_QuerySupportedFormats,
581 PP_Instance /* instance */,
582 uint32_t /* result */)
583IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_Begin,
584 PP_Instance /* instance */,
585 std::string /* settings_string */,
586 int32_t /* result */)
587IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_PrintPages,
588 PP_Instance /* instance */,
589 std::vector<PP_PrintPageNumberRange_Dev> /* pages */,
590 ppapi::HostResource /* result */)
591IPC_MESSAGE_ROUTED1(PpapiMsg_PPPPrinting_End,
592 PP_Instance /* instance */)
593IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_IsScalingDisabled,
594 PP_Instance /* instance */,
595 bool /* result */)
596
[email protected]3c8c74c2012-03-15 07:34:52597// PPP_TextInput.
598IPC_MESSAGE_ROUTED2(PpapiMsg_PPPTextInput_RequestSurroundingText,
599 PP_Instance /* instance */,
600 uint32_t /* desired_number_of_characters */)
601
[email protected]631179b2011-03-14 22:26:20602// PPB_URLLoader
603// (Messages from browser to plugin to notify it of changes in state.)
[email protected]214832f2012-09-18 05:44:23604//
605// NOTE: The ReadResponseBody_Ack message is a custom generated message
606// with the following fields appended:
607// ppapi::HostResource
608// response data (array of bytes stored via WriteData)
609// int result
610//
611IPC_MESSAGE_ROUTED0(PpapiMsg_PPBURLLoader_ReadResponseBody_Ack)
[email protected]0f41c012011-10-21 19:49:20612IPC_MESSAGE_ROUTED2(PpapiMsg_PPBURLLoader_CallbackComplete,
613 ppapi::HostResource /* loader */,
614 int32_t /* result */)
[email protected]246fc492012-08-27 20:28:18615#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:49616// PPB_Broker.
617IPC_MESSAGE_ROUTED3(
618 PpapiMsg_PPBBroker_ConnectComplete,
619 ppapi::HostResource /* broker */,
620 IPC::PlatformFileForTransit /* handle */,
621 int32_t /* result */)
622
[email protected]e5aeef02012-08-17 00:18:43623// PPP_ContentDecryptor_Dev
[email protected]f1b1db02012-10-29 22:50:23624IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_GenerateKeyRequest,
[email protected]e5aeef02012-08-17 00:18:43625 PP_Instance /* instance */,
626 ppapi::proxy::SerializedVar /* key_system, String */,
[email protected]f1b1db02012-10-29 22:50:23627 ppapi::proxy::SerializedVar /* type, String */,
[email protected]e5aeef02012-08-17 00:18:43628 ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */)
[email protected]98ad9782012-08-22 04:06:22629IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_AddKey,
[email protected]e5aeef02012-08-17 00:18:43630 PP_Instance /* instance */,
631 ppapi::proxy::SerializedVar /* session_id, String */,
[email protected]98ad9782012-08-22 04:06:22632 ppapi::proxy::SerializedVar /* key, ArrayBuffer */,
633 ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */)
[email protected]e5aeef02012-08-17 00:18:43634IPC_MESSAGE_ROUTED2(PpapiMsg_PPPContentDecryptor_CancelKeyRequest,
635 PP_Instance /* instance */,
636 ppapi::proxy::SerializedVar /* session_id, String */)
637IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_Decrypt,
638 PP_Instance /* instance */,
639 ppapi::proxy::PPPDecryptor_Buffer /* buffer */,
[email protected]98ad9782012-08-22 04:06:22640 std::string /* serialized_block_info */)
[email protected]e9d3a1022012-10-11 23:43:55641IPC_MESSAGE_ROUTED3(
[email protected]c999b3b72012-10-19 22:33:46642 PpapiMsg_PPPContentDecryptor_InitializeAudioDecoder,
643 PP_Instance /* instance */,
644 std::string /* serialized_decoder_config */,
645 ppapi::proxy::PPPDecryptor_Buffer /* extra_data_buffer */)
646IPC_MESSAGE_ROUTED3(
[email protected]e9d3a1022012-10-11 23:43:55647 PpapiMsg_PPPContentDecryptor_InitializeVideoDecoder,
648 PP_Instance /* instance */,
649 std::string /* serialized_decoder_config */,
650 ppapi::proxy::PPPDecryptor_Buffer /* extra_data_buffer. */)
[email protected]23de87452012-10-12 07:03:09651IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_DeinitializeDecoder,
652 PP_Instance /* instance */,
653 PP_DecryptorStreamType /* decoder_type */,
654 uint32_t /* request_id */)
655IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_ResetDecoder,
656 PP_Instance /* instance */,
657 PP_DecryptorStreamType /* decoder_type */,
658 uint32_t /* request_id */)
[email protected]467434d2012-10-12 10:48:53659IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_DecryptAndDecode,
[email protected]e5aeef02012-08-17 00:18:43660 PP_Instance /* instance */,
[email protected]467434d2012-10-12 10:48:53661 PP_DecryptorStreamType /* decoder_type */,
[email protected]98ad9782012-08-22 04:06:22662 ppapi::proxy::PPPDecryptor_Buffer /* buffer */,
663 std::string /* serialized_block_info */)
[email protected]e5aeef02012-08-17 00:18:43664
[email protected]6761d632012-04-18 17:54:49665// PPB_Talk
666IPC_MESSAGE_ROUTED3(
667 PpapiMsg_PPBTalk_GetPermissionACK,
668 uint32 /* plugin_dispatcher_id */,
669 PP_Resource /* resource */,
670 int32_t /* result */)
[email protected]667591d2012-09-04 21:30:12671#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:49672
673// PPB_TCPSocket_Private.
674IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPSocket_ConnectACK,
675 uint32 /* plugin_dispatcher_id */,
676 uint32 /* socket_id */,
677 bool /* succeeded */,
678 PP_NetAddress_Private /* local_addr */,
679 PP_NetAddress_Private /* remote_addr */)
680IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_SSLHandshakeACK,
681 uint32 /* plugin_dispatcher_id */,
682 uint32 /* socket_id */,
683 bool /* succeeded */,
684 ppapi::PPB_X509Certificate_Fields /* certificate_fields */)
685IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_ReadACK,
686 uint32 /* plugin_dispatcher_id */,
687 uint32 /* socket_id */,
688 bool /* succeeded */,
689 std::string /* data */)
690IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_WriteACK,
691 uint32 /* plugin_dispatcher_id */,
692 uint32 /* socket_id */,
693 bool /* succeeded */,
694 int32_t /* bytes_written */)
695
696// PPB_UDPSocket_Private.
697IPC_MESSAGE_ROUTED4(PpapiMsg_PPBUDPSocket_BindACK,
698 uint32 /* plugin_dispatcher_id */,
699 uint32 /* socket_id */,
700 bool /* succeeded */,
701 PP_NetAddress_Private /* bound_addr */)
702IPC_MESSAGE_ROUTED5(PpapiMsg_PPBUDPSocket_RecvFromACK,
703 uint32 /* plugin_dispatcher_id */,
704 uint32 /* socket_id */,
705 bool /* succeeded */,
706 std::string /* data */,
707 PP_NetAddress_Private /* remote_addr */)
708IPC_MESSAGE_ROUTED4(PpapiMsg_PPBUDPSocket_SendToACK,
709 uint32 /* plugin_dispatcher_id */,
710 uint32 /* socket_id */,
711 bool /* succeeded */,
712 int32_t /* bytes_written */)
713
714// PPB_URLLoader_Trusted
715IPC_MESSAGE_ROUTED1(
716 PpapiMsg_PPBURLLoader_UpdateProgress,
717 ppapi::proxy::PPBURLLoader_UpdateProgress_Params /* params */)
718
719// PPB_TCPServerSocket_Private.
720
721// |socket_resource| should not be used as Resource in browser. The
722// only purpose of this argument is to be echoed back.
723// |status| == PP_ERROR_NOSPACE means that the socket table is full
724// and new socket can't be initialized.
725// |status| == PP_ERROR_FAILED means that socket is correctly
726// initialized (if needed) but Listen call is failed.
727// |status| == PP_OK means that socket is correctly initialized (if
728// needed) and Listen call succeeds.
729IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPServerSocket_ListenACK,
730 uint32 /* plugin_dispatcher_id */,
731 PP_Resource /* socket_resource */,
732 uint32 /* socket_id */,
733 int32_t /* status */)
734IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPServerSocket_AcceptACK,
735 uint32 /* plugin_dispatcher_id */,
736 uint32 /* server_socket_id */,
737 uint32 /* accepted_socket_id */,
738 PP_NetAddress_Private /* local_addr */,
739 PP_NetAddress_Private /* remote_addr */)
740
741// PPB_HostResolver_Private.
742IPC_MESSAGE_ROUTED5(PpapiMsg_PPBHostResolver_ResolveACK,
743 uint32 /* plugin_dispatcher_id */,
744 uint32 /* host_resolver_id */,
745 bool /* succeeded */,
746 std::string /* canonical_name */,
[email protected]9984ca02012-09-13 18:12:02747 std::vector<PP_NetAddress_Private> /* net_address_list */)
[email protected]6761d632012-04-18 17:54:49748
[email protected]667591d2012-09-04 21:30:12749#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:49750// PPP_Instance_Private.
751IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject,
752 PP_Instance /* instance */,
753 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20754
[email protected]cc7c2442012-02-15 22:58:15755// PPB_VideoCapture_Dev
756IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoCapture_EnumerateDevicesACK,
757 ppapi::HostResource /* video_capture */,
758 int32_t /* result */,
759 std::vector<ppapi::DeviceRefData> /* devices */)
760IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoCapture_OpenACK,
761 ppapi::HostResource /* video_capture */,
762 int32_t /* result */)
763
[email protected]0fa46e82011-08-09 07:31:49764// PPP_VideoCapture_Dev
765IPC_MESSAGE_ROUTED3(
766 PpapiMsg_PPPVideoCapture_OnDeviceInfo,
[email protected]be0a84b2011-08-13 04:18:44767 ppapi::HostResource /* video_capture */,
[email protected]0fa46e82011-08-09 07:31:49768 PP_VideoCaptureDeviceInfo_Dev /* info */,
[email protected]4d2efd22011-08-18 21:58:02769 std::vector<ppapi::proxy::PPPVideoCapture_Buffer> /* buffers */)
[email protected]0fa46e82011-08-09 07:31:49770IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnStatus,
[email protected]be0a84b2011-08-13 04:18:44771 ppapi::HostResource /* video_capture */,
[email protected]0fa46e82011-08-09 07:31:49772 uint32_t /* status */)
773IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnError,
[email protected]be0a84b2011-08-13 04:18:44774 ppapi::HostResource /* video_capture */,
[email protected]0fa46e82011-08-09 07:31:49775 uint32_t /* error_code */)
776IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnBufferReady,
[email protected]be0a84b2011-08-13 04:18:44777 ppapi::HostResource /* video_capture */,
[email protected]0fa46e82011-08-09 07:31:49778 uint32_t /* buffer */)
779
[email protected]7ace8ad2011-08-06 03:23:58780// PPB_VideoDecoder_Dev.
781// (Messages from renderer to plugin to notify it to run callbacks.)
782IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK,
[email protected]be0a84b2011-08-13 04:18:44783 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58784 int32_t /* bitstream buffer id */,
785 int32_t /* PP_CompletionCallback result */)
786IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_FlushACK,
[email protected]be0a84b2011-08-13 04:18:44787 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58788 int32_t /* PP_CompletionCallback result */)
789IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_ResetACK,
[email protected]be0a84b2011-08-13 04:18:44790 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58791 int32_t /* PP_CompletionCallback result */)
792
793// PPP_VideoDecoder_Dev.
[email protected]08bab532012-06-08 19:39:45794IPC_MESSAGE_ROUTED4(PpapiMsg_PPPVideoDecoder_ProvidePictureBuffers,
[email protected]be0a84b2011-08-13 04:18:44795 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58796 uint32_t /* requested number of buffers */,
[email protected]08bab532012-06-08 19:39:45797 PP_Size /* dimensions of buffers */,
798 uint32_t /* texture_target */)
[email protected]7ace8ad2011-08-06 03:23:58799IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_DismissPictureBuffer,
[email protected]be0a84b2011-08-13 04:18:44800 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58801 int32_t /* picture buffer id */)
802IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_PictureReady,
[email protected]be0a84b2011-08-13 04:18:44803 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58804 PP_Picture_Dev /* output picture */)
[email protected]7ace8ad2011-08-06 03:23:58805IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_NotifyError,
[email protected]be0a84b2011-08-13 04:18:44806 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58807 PP_VideoDecodeError_Dev /* error */)
[email protected]246fc492012-08-27 20:28:18808#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]7ace8ad2011-08-06 03:23:58809
[email protected]631179b2011-03-14 22:26:20810// -----------------------------------------------------------------------------
811// These are from the plugin to the renderer.
812
813// Reply to PpapiMsg_CreateChannel. The handle will be NULL if the channel
814// could not be established. This could be because the IPC could not be created
815// for some weird reason, but more likely that the plugin failed to load or
816// initialize properly.
817IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated,
818 IPC::ChannelHandle /* handle */)
819
[email protected]a9b16dd2012-01-31 05:00:26820// Logs the given message to the console of all instances.
821IPC_MESSAGE_CONTROL4(PpapiHostMsg_LogWithSource,
822 PP_Instance /* instance */,
823 int /* log_level */,
824 std::string /* source */,
825 std::string /* value */)
826
[email protected]631179b2011-03-14 22:26:20827// PPB_Audio.
[email protected]55cdf6052011-05-13 19:22:53828IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudio_Create,
[email protected]631179b2011-03-14 22:26:20829 PP_Instance /* instance_id */,
[email protected]55cdf6052011-05-13 19:22:53830 int32_t /* sample_rate */,
831 uint32_t /* sample_frame_count */,
[email protected]be0a84b2011-08-13 04:18:44832 ppapi::HostResource /* result */)
[email protected]631179b2011-03-14 22:26:20833IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop,
[email protected]be0a84b2011-08-13 04:18:44834 ppapi::HostResource /* audio_id */,
[email protected]631179b2011-03-14 22:26:20835 bool /* play */)
836
[email protected]631179b2011-03-14 22:26:20837// PPB_Core.
838IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource,
[email protected]be0a84b2011-08-13 04:18:44839 ppapi::HostResource)
[email protected]631179b2011-03-14 22:26:20840IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource,
[email protected]be0a84b2011-08-13 04:18:44841 ppapi::HostResource)
[email protected]631179b2011-03-14 22:26:20842
[email protected]cc6db922011-12-10 16:54:22843// PPB_FileIO.
844IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileIO_Create,
845 PP_Instance /* instance */,
846 ppapi::HostResource /* result */)
847IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Open,
848 ppapi::HostResource /* host_resource */,
849 ppapi::HostResource /* file_ref_resource */,
850 int32_t /* open_flags */)
851IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Close,
852 ppapi::HostResource /* host_resource */)
853IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Query,
854 ppapi::HostResource /* host_resource */)
855IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Touch,
856 ppapi::HostResource /* host_resource */,
857 PP_Time /* last_access_time */,
858 PP_Time /* last_modified_time */)
859IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Read,
860 ppapi::HostResource /* host_resource */,
861 int64_t /* offset */,
862 int32_t /* bytes_to_read */)
863IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Write,
864 ppapi::HostResource /* host_resource */,
865 int64_t /* offset */,
866 std::string /* data */)
867IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileIO_SetLength,
868 ppapi::HostResource /* host_resource */,
869 int64_t /* length */)
870IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Flush,
871 ppapi::HostResource /* host_resource */)
872IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_WillWrite,
873 ppapi::HostResource /* host_resource */,
874 int64_t /* offset */,
875 int32_t /* bytes_to_write */)
876IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileIO_WillSetLength,
877 ppapi::HostResource /* host_resource */,
878 int64_t /* length */)
879
[email protected]631179b2011-03-14 22:26:20880// PPB_FileRef.
881IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileRef_Create,
[email protected]be0a84b2011-08-13 04:18:44882 ppapi::HostResource /* file_system */,
[email protected]631179b2011-03-14 22:26:20883 std::string /* path */,
[email protected]6f75c952011-08-26 04:51:07884 ppapi::PPB_FileRef_CreateInfo /* result */)
[email protected]631179b2011-03-14 22:26:20885IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent,
[email protected]be0a84b2011-08-13 04:18:44886 ppapi::HostResource /* file_ref */,
[email protected]6f75c952011-08-26 04:51:07887 ppapi::PPB_FileRef_CreateInfo /* result */)
[email protected]631179b2011-03-14 22:26:20888IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory,
[email protected]be0a84b2011-08-13 04:18:44889 ppapi::HostResource /* file_ref */,
[email protected]631179b2011-03-14 22:26:20890 PP_Bool /* make_ancestors */,
[email protected]0f41c012011-10-21 19:49:20891 int /* callback_id */)
[email protected]631179b2011-03-14 22:26:20892IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileRef_Touch,
[email protected]be0a84b2011-08-13 04:18:44893 ppapi::HostResource /* file_ref */,
[email protected]631179b2011-03-14 22:26:20894 PP_Time /* last_access */,
895 PP_Time /* last_modified */,
[email protected]0f41c012011-10-21 19:49:20896 int /* callback_id */)
[email protected]631179b2011-03-14 22:26:20897IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Delete,
[email protected]be0a84b2011-08-13 04:18:44898 ppapi::HostResource /* file_ref */,
[email protected]0f41c012011-10-21 19:49:20899 int /* callback_id */)
[email protected]631179b2011-03-14 22:26:20900IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_Rename,
[email protected]be0a84b2011-08-13 04:18:44901 ppapi::HostResource /* file_ref */,
902 ppapi::HostResource /* new_file_ref */,
[email protected]0f41c012011-10-21 19:49:20903 int /* callback_id */)
[email protected]f12a3832011-11-28 23:11:45904IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetAbsolutePath,
905 ppapi::HostResource /* file_ref */,
906 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20907
908// PPB_FileSystem.
909IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create,
910 PP_Instance /* instance */,
911 int /* type */,
[email protected]be0a84b2011-08-13 04:18:44912 ppapi::HostResource /* result */)
[email protected]631179b2011-03-14 22:26:20913IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open,
[email protected]be0a84b2011-08-13 04:18:44914 ppapi::HostResource /* result */,
[email protected]631179b2011-03-14 22:26:20915 int64_t /* expected_size */)
916
[email protected]631179b2011-03-14 22:26:20917// PPB_Graphics2D.
[email protected]2a1d6d912011-12-04 23:29:06918IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create,
919 PP_Instance /* instance */,
920 PP_Size /* size */,
921 PP_Bool /* is_always_opaque */,
922 ppapi::HostResource /* result */)
[email protected]631179b2011-03-14 22:26:20923IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData,
[email protected]be0a84b2011-08-13 04:18:44924 ppapi::HostResource /* graphics_2d */,
925 ppapi::HostResource /* image_data */,
[email protected]631179b2011-03-14 22:26:20926 PP_Point /* top_left */,
927 bool /* src_rect_specified */,
928 PP_Rect /* src_rect */)
929IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBGraphics2D_Scroll,
[email protected]be0a84b2011-08-13 04:18:44930 ppapi::HostResource /* graphics_2d */,
[email protected]631179b2011-03-14 22:26:20931 bool /* clip_specified */,
932 PP_Rect /* clip */,
933 PP_Point /* amount */)
934IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics2D_ReplaceContents,
[email protected]be0a84b2011-08-13 04:18:44935 ppapi::HostResource /* graphics_2d */,
936 ppapi::HostResource /* image_data */)
[email protected]631179b2011-03-14 22:26:20937IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics2D_Flush,
[email protected]be0a84b2011-08-13 04:18:44938 ppapi::HostResource /* graphics_2d */)
[email protected]0cd5b9df2012-06-28 19:33:33939IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics2D_Dev_SetScale,
940 ppapi::HostResource /* graphics_2d */,
941 float /* scale */)
[email protected]631179b2011-03-14 22:26:20942
[email protected]eeb4e4a2011-07-19 16:22:06943// PPB_Graphics3D.
[email protected]9ed07f82012-05-29 21:54:55944IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Create,
[email protected]eeb4e4a2011-07-19 16:22:06945 PP_Instance /* instance */,
[email protected]9ed07f82012-05-29 21:54:55946 ppapi::HostResource /* share_context */,
[email protected]eeb4e4a2011-07-19 16:22:06947 std::vector<int32_t> /* attrib_list */,
[email protected]be0a84b2011-08-13 04:18:44948 ppapi::HostResource /* result */)
[email protected]503b3a22011-12-12 23:29:40949IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBGraphics3D_InitCommandBuffer,
950 ppapi::HostResource /* context */)
951IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer,
[email protected]be0a84b2011-08-13 04:18:44952 ppapi::HostResource /* context */,
[email protected]503b3a22011-12-12 23:29:40953 int32 /* transfer_buffer_id */)
[email protected]571b35e82012-05-19 00:04:35954IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBGraphics3D_GetState,
[email protected]be0a84b2011-08-13 04:18:44955 ppapi::HostResource /* context */,
[email protected]571b35e82012-05-19 00:04:35956 gpu::CommandBuffer::State /* state */,
957 bool /* success */)
958IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBGraphics3D_Flush,
[email protected]be0a84b2011-08-13 04:18:44959 ppapi::HostResource /* context */,
[email protected]eeb4e4a2011-07-19 16:22:06960 int32 /* put_offset */,
961 int32 /* last_known_get */,
[email protected]571b35e82012-05-19 00:04:35962 gpu::CommandBuffer::State /* state */,
963 bool /* success */)
[email protected]eeb4e4a2011-07-19 16:22:06964IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics3D_AsyncFlush,
[email protected]be0a84b2011-08-13 04:18:44965 ppapi::HostResource /* context */,
[email protected]eeb4e4a2011-07-19 16:22:06966 int32 /* put_offset */)
[email protected]eeb4e4a2011-07-19 16:22:06967IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer,
[email protected]be0a84b2011-08-13 04:18:44968 ppapi::HostResource /* context */,
[email protected]eeb4e4a2011-07-19 16:22:06969 int32 /* size */,
970 int32 /* id */)
[email protected]eeb4e4a2011-07-19 16:22:06971IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer,
[email protected]be0a84b2011-08-13 04:18:44972 ppapi::HostResource /* context */,
[email protected]eeb4e4a2011-07-19 16:22:06973 int32 /* id */)
[email protected]246fc492012-08-27 20:28:18974IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBGraphics3D_GetTransferBuffer,
[email protected]be0a84b2011-08-13 04:18:44975 ppapi::HostResource /* context */,
[email protected]eeb4e4a2011-07-19 16:22:06976 int32 /* id */,
[email protected]246fc492012-08-27 20:28:18977 ppapi::proxy::SerializedHandle /* transfer_buffer */)
[email protected]eeb4e4a2011-07-19 16:22:06978IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics3D_SwapBuffers,
[email protected]be0a84b2011-08-13 04:18:44979 ppapi::HostResource /* graphics_3d */)
[email protected]eeb4e4a2011-07-19 16:22:06980
[email protected]2a1d6d912011-12-04 23:29:06981// PPB_ImageData.
982IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_Create,
983 PP_Instance /* instance */,
984 int32 /* format */,
985 PP_Size /* size */,
986 PP_Bool /* init_to_zero */,
987 ppapi::HostResource /* result_resource */,
988 std::string /* image_data_desc */,
989 ppapi::proxy::ImageHandle /* result */)
[email protected]16b7b272012-07-25 21:54:49990IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_CreateNaCl,
991 PP_Instance /* instance */,
992 int32 /* format */,
993 PP_Size /* size */,
994 PP_Bool /* init_to_zero */,
995 ppapi::HostResource /* result_resource */,
996 std::string /* image_data_desc */,
[email protected]246fc492012-08-27 20:28:18997 ppapi::proxy::SerializedHandle /* result */)
[email protected]2a1d6d912011-12-04 23:29:06998
[email protected]631179b2011-03-14 22:26:20999// PPB_Instance.
1000IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject,
1001 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:021002 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201003IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject,
1004 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:021005 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201006IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_BindGraphics,
1007 PP_Instance /* instance */,
[email protected]be0a84b2011-08-13 04:18:441008 ppapi::HostResource /* device */,
[email protected]631179b2011-03-14 22:26:201009 PP_Bool /* result */)
[email protected]c59ed5892012-02-18 01:10:191010IPC_SYNC_MESSAGE_ROUTED1_1(
1011 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputSampleRate,
1012 PP_Instance /* instance */,
1013 uint32_t /* result */)
1014IPC_SYNC_MESSAGE_ROUTED1_1(
1015 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputBufferSize,
1016 PP_Instance /* instance */,
1017 uint32_t /* result */)
[email protected]631179b2011-03-14 22:26:201018IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_IsFullFrame,
1019 PP_Instance /* instance */,
1020 PP_Bool /* result */)
1021IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBInstance_ExecuteScript,
1022 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:021023 ppapi::proxy::SerializedVar /* script */,
1024 ppapi::proxy::SerializedVar /* out_exception */,
1025 ppapi::proxy::SerializedVar /* result */)
[email protected]8d770e492011-10-11 04:54:311026IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetDefaultCharSet,
1027 PP_Instance /* instance */,
1028 ppapi::proxy::SerializedVar /* result */)
[email protected]7a26d92e2012-02-17 20:15:251029IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBInstance_GetFontFamilies,
1030 std::string /* result */)
[email protected]06e0a342011-09-27 04:24:301031IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_SetFullscreen,
1032 PP_Instance /* instance */,
1033 PP_Bool /* fullscreen */,
1034 PP_Bool /* result */)
1035IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetScreenSize,
1036 PP_Instance /* instance */,
1037 PP_Bool /* result */,
1038 PP_Size /* size */)
[email protected]493d14212011-07-07 15:38:481039IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_RequestInputEvents,
1040 PP_Instance /* instance */,
1041 bool /* is_filtering */,
1042 uint32_t /* event_classes */)
1043IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_ClearInputEvents,
1044 PP_Instance /* instance */,
1045 uint32_t /* event_classes */)
[email protected]55a5a522011-07-06 22:52:401046IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PostMessage,
1047 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:021048 ppapi::proxy::SerializedVar /* message */)
[email protected]0f41c012011-10-21 19:49:201049IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_LockMouse,
1050 PP_Instance /* instance */)
[email protected]18d871f2011-09-08 16:56:341051IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_UnlockMouse,
1052 PP_Instance /* instance */)
[email protected]03460232011-10-10 17:23:571053IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_ResolveRelativeToDocument,
1054 PP_Instance /* instance */,
1055 ppapi::proxy::SerializedVar /* relative */,
1056 ppapi::proxy::SerializedVar /* result */)
1057IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanRequest,
1058 PP_Instance /* instance */,
1059 ppapi::proxy::SerializedVar /* relative */,
1060 PP_Bool /* result */)
1061IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanAccessDocument,
1062 PP_Instance /* active */,
1063 PP_Instance /* target */,
1064 PP_Bool /* result */)
[email protected]32938de2012-10-19 18:42:321065IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetDocumentURL,
[email protected]03460232011-10-10 17:23:571066 PP_Instance /* active */,
[email protected]32938de2012-10-19 18:42:321067 PP_URLComponents_Dev /* components */,
[email protected]03460232011-10-10 17:23:571068 ppapi::proxy::SerializedVar /* result */)
1069IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetPluginInstanceURL,
1070 PP_Instance /* active */,
1071 ppapi::proxy::SerializedVar /* result */)
[email protected]33ec50562012-04-08 20:28:431072IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SetCursor,
1073 PP_Instance /* instance */,
1074 int32_t /* type */,
1075 ppapi::HostResource /* custom_image */,
1076 PP_Point /* hot_spot */)
[email protected]4c44183a2012-04-27 16:52:231077IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SetTextInputType,
[email protected]2daba2f32011-09-29 04:23:091078 PP_Instance /* instance */,
1079 PP_TextInput_Type /* type */)
[email protected]4c44183a2012-04-27 16:52:231080IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_UpdateCaretPosition,
[email protected]2daba2f32011-09-29 04:23:091081 PP_Instance /* instance */,
1082 PP_Rect /* caret */,
1083 PP_Rect /* bounding_box */)
[email protected]4c44183a2012-04-27 16:52:231084IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_CancelCompositionText,
[email protected]2daba2f32011-09-29 04:23:091085 PP_Instance /* instance */)
[email protected]4c44183a2012-04-27 16:52:231086IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_UpdateSurroundingText,
[email protected]3c8c74c2012-03-15 07:34:521087 PP_Instance /* instance */,
1088 std::string /* text */,
1089 uint32_t /* caret */,
1090 uint32_t /* anchor */)
[email protected]2daba2f32011-09-29 04:23:091091
[email protected]631179b2011-03-14 22:26:201092// PPB_URLLoader.
1093IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create,
1094 PP_Instance /* instance */,
[email protected]be0a84b2011-08-13 04:18:441095 ppapi::HostResource /* result */)
[email protected]0f41c012011-10-21 19:49:201096IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_Open,
[email protected]be0a84b2011-08-13 04:18:441097 ppapi::HostResource /* loader */,
[email protected]7b2f7292012-09-19 19:52:121098 ppapi::URLRequestInfoData /* request_data */)
[email protected]0f41c012011-10-21 19:49:201099IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FollowRedirect,
1100 ppapi::HostResource /* loader */)
[email protected]631179b2011-03-14 22:26:201101IPC_SYNC_MESSAGE_ROUTED1_1(
1102 PpapiHostMsg_PPBURLLoader_GetResponseInfo,
[email protected]be0a84b2011-08-13 04:18:441103 ppapi::HostResource /* loader */,
1104 ppapi::HostResource /* response_info_out */)
[email protected]631179b2011-03-14 22:26:201105IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_ReadResponseBody,
[email protected]be0a84b2011-08-13 04:18:441106 ppapi::HostResource /* loader */,
[email protected]631179b2011-03-14 22:26:201107 int32_t /* bytes_to_read */)
[email protected]0f41c012011-10-21 19:49:201108IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FinishStreamingToFile,
1109 ppapi::HostResource /* loader */)
[email protected]631179b2011-03-14 22:26:201110IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_Close,
[email protected]be0a84b2011-08-13 04:18:441111 ppapi::HostResource /* loader */)
[email protected]bf712f8e2011-06-17 02:10:451112IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_GrantUniversalAccess,
[email protected]be0a84b2011-08-13 04:18:441113 ppapi::HostResource /* loader */)
[email protected]631179b2011-03-14 22:26:201114
[email protected]631179b2011-03-14 22:26:201115// PPB_URLResponseInfo.
1116IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBURLResponseInfo_GetProperty,
[email protected]be0a84b2011-08-13 04:18:441117 ppapi::HostResource /* response */,
[email protected]631179b2011-03-14 22:26:201118 int32_t /* property */,
[email protected]4d2efd22011-08-18 21:58:021119 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201120IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLResponseInfo_GetBodyAsFileRef,
[email protected]be0a84b2011-08-13 04:18:441121 ppapi::HostResource /* response */,
[email protected]6f75c952011-08-26 04:51:071122 ppapi::PPB_FileRef_CreateInfo /* result */)
[email protected]631179b2011-03-14 22:26:201123
1124// PPB_Var.
[email protected]5b2d3852011-04-19 23:22:401125IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVar_AddRefObject,
1126 int64 /* object_id */,
1127 int /* unused - need a return value for sync msgs */)
[email protected]631179b2011-03-14 22:26:201128IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_ReleaseObject,
1129 int64 /* object_id */)
1130IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_ConvertType,
1131 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:021132 ppapi::proxy::SerializedVar /* var */,
[email protected]631179b2011-03-14 22:26:201133 int /* new_type */,
[email protected]4d2efd22011-08-18 21:58:021134 ppapi::proxy::SerializedVar /* exception */,
1135 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201136IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasProperty,
[email protected]4d2efd22011-08-18 21:58:021137 ppapi::proxy::SerializedVar /* object */,
1138 ppapi::proxy::SerializedVar /* property */,
1139 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:201140 PP_Bool /* result */)
1141IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasMethodDeprecated,
[email protected]4d2efd22011-08-18 21:58:021142 ppapi::proxy::SerializedVar /* object */,
1143 ppapi::proxy::SerializedVar /* method */,
1144 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:201145 PP_Bool /* result */)
1146IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_GetProperty,
[email protected]4d2efd22011-08-18 21:58:021147 ppapi::proxy::SerializedVar /* object */,
1148 ppapi::proxy::SerializedVar /* property */,
1149 ppapi::proxy::SerializedVar /* out_exception */,
1150 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201151IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_DeleteProperty,
[email protected]4d2efd22011-08-18 21:58:021152 ppapi::proxy::SerializedVar /* object */,
1153 ppapi::proxy::SerializedVar /* property */,
1154 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:201155 PP_Bool /* result */)
1156IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBVar_EnumerateProperties,
[email protected]4d2efd22011-08-18 21:58:021157 ppapi::proxy::SerializedVar /* object */,
1158 std::vector<ppapi::proxy::SerializedVar> /* props */,
1159 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:201160IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_SetPropertyDeprecated,
[email protected]4d2efd22011-08-18 21:58:021161 ppapi::proxy::SerializedVar /* object */,
1162 ppapi::proxy::SerializedVar /* name */,
1163 ppapi::proxy::SerializedVar /* value */,
1164 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:201165IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_CallDeprecated,
[email protected]4d2efd22011-08-18 21:58:021166 ppapi::proxy::SerializedVar /* object */,
1167 ppapi::proxy::SerializedVar /* method_name */,
1168 std::vector<ppapi::proxy::SerializedVar> /* args */,
1169 ppapi::proxy::SerializedVar /* out_exception */,
1170 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201171IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_Construct,
[email protected]4d2efd22011-08-18 21:58:021172 ppapi::proxy::SerializedVar /* object */,
1173 std::vector<ppapi::proxy::SerializedVar> /* args */,
1174 ppapi::proxy::SerializedVar /* out_exception */,
1175 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201176IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated,
[email protected]4d2efd22011-08-18 21:58:021177 ppapi::proxy::SerializedVar /* var */,
[email protected]631179b2011-03-14 22:26:201178 int64 /* object_class */,
1179 int64 /* object-data */,
1180 PP_Bool /* result */)
1181IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated,
1182 PP_Instance /* instance */,
1183 int64 /* object_class */,
1184 int64 /* object_data */,
[email protected]4d2efd22011-08-18 21:58:021185 ppapi::proxy::SerializedVar /* result */)
[email protected]6239d342011-05-06 22:55:471186
[email protected]246fc492012-08-27 20:28:181187#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:491188// PPB_Broker.
1189IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBBroker_Create,
1190 PP_Instance /* instance */,
1191 ppapi::HostResource /* result_resource */)
1192IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBBroker_Connect,
1193 ppapi::HostResource /* broker */)
1194
1195// PPB_Buffer.
[email protected]246fc492012-08-27 20:28:181196IPC_SYNC_MESSAGE_ROUTED2_2(
1197 PpapiHostMsg_PPBBuffer_Create,
1198 PP_Instance /* instance */,
1199 uint32_t /* size */,
1200 ppapi::HostResource /* result_resource */,
1201 ppapi::proxy::SerializedHandle /* result_shm_handle */)
[email protected]6761d632012-04-18 17:54:491202
[email protected]e5aeef02012-08-17 00:18:431203// PPB_ContentDecryptor_Dev messages handled in PPB_Instance_Proxy.
1204IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_NeedKey,
1205 PP_Instance /* instance */,
1206 ppapi::proxy::SerializedVar /* key_system, String */,
1207 ppapi::proxy::SerializedVar /* session_id, String */,
1208 ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */)
1209IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_KeyAdded,
1210 PP_Instance /* instance */,
1211 ppapi::proxy::SerializedVar /* key_system, String */,
1212 ppapi::proxy::SerializedVar /* session_id, String */)
1213IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_KeyMessage,
1214 PP_Instance /* instance */,
1215 ppapi::proxy::SerializedVar /* key_system, String */,
1216 ppapi::proxy::SerializedVar /* session_id, String */,
1217 PP_Resource /* message, PPB_Buffer_Dev */,
1218 ppapi::proxy::SerializedVar /* default_url, String */)
1219IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_KeyError,
1220 PP_Instance /* instance */,
1221 ppapi::proxy::SerializedVar /* key_system, String */,
1222 ppapi::proxy::SerializedVar /* session_id, String */,
1223 int32_t /* media_error */,
1224 int32_t /* system_code */)
1225IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverBlock,
1226 PP_Instance /* instance */,
1227 PP_Resource /* decrypted_block, PPB_Buffer_Dev */,
[email protected]98ad9782012-08-22 04:06:221228 std::string /* serialized_block_info */)
[email protected]c999b3b72012-10-19 22:33:461229IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_DecoderInitializeDone,
[email protected]e9d3a1022012-10-11 23:43:551230 PP_Instance /* instance */,
[email protected]c999b3b72012-10-19 22:33:461231 PP_DecryptorStreamType /* decoder_type */,
1232 uint32_t /* request_id */,
1233 PP_Bool /* success */)
[email protected]23de87452012-10-12 07:03:091234IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DecoderDeinitializeDone,
1235 PP_Instance /* instance */,
1236 PP_DecryptorStreamType /* decoder_type */,
1237 uint32_t /* request_id */)
1238IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DecoderResetDone,
1239 PP_Instance /* instance */,
1240 PP_DecryptorStreamType /* decoder_type */,
1241 uint32_t /* request_id */)
[email protected]e5aeef02012-08-17 00:18:431242IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverFrame,
1243 PP_Instance /* instance */,
1244 PP_Resource /* decrypted_frame, PPB_Buffer_Dev */,
[email protected]98ad9782012-08-22 04:06:221245 std::string /* serialized_block_info */)
[email protected]e5aeef02012-08-17 00:18:431246IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverSamples,
1247 PP_Instance /* instance */,
[email protected]c999b3b72012-10-19 22:33:461248 PP_Resource /* audio_frames, PPB_Buffer_Dev */,
[email protected]98ad9782012-08-22 04:06:221249 std::string /* serialized_block_info */)
[email protected]e8f578d2012-09-17 19:27:101250#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]e5aeef02012-08-17 00:18:431251
[email protected]6761d632012-04-18 17:54:491252// PPB_NetworkMonitor_Private.
1253IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start,
1254 uint32 /* plugin_dispatcher_id */)
1255IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop,
1256 uint32 /* plugin_dispatcher_id */)
1257
1258// PPB_HostResolver_Private.
1259IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBHostResolver_Resolve,
1260 int32 /* routing_id */,
1261 uint32 /* plugin_dispatcher_id */,
1262 uint32 /* host_resolver_id */,
1263 ppapi::HostPortPair /* host_port */,
1264 PP_HostResolver_Private_Hint /* hint */)
1265
[email protected]667591d2012-09-04 21:30:121266#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:491267// PPB_PDF
1268IPC_SYNC_MESSAGE_ROUTED3_1(
1269 PpapiHostMsg_PPBPDF_GetFontFileWithFallback,
1270 PP_Instance /* instance */,
1271 ppapi::proxy::SerializedFontDescription /* description */,
1272 int32_t /* charset */,
1273 ppapi::HostResource /* result */)
1274IPC_SYNC_MESSAGE_ROUTED2_1(
1275 PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile,
1276 ppapi::HostResource /* font_file */,
1277 uint32_t /* table */,
1278 std::string /* result */)
1279
1280
1281// PPB_Talk.
1282IPC_MESSAGE_ROUTED2(
1283 PpapiHostMsg_PPBTalk_GetPermission,
1284 uint32 /* plugin_dispatcher_id */,
1285 PP_Resource /* resource */)
[email protected]667591d2012-09-04 21:30:121286#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:491287
1288// PPB_Testing.
1289IPC_SYNC_MESSAGE_ROUTED3_1(
1290 PpapiHostMsg_PPBTesting_ReadImageData,
1291 ppapi::HostResource /* device_context_2d */,
1292 ppapi::HostResource /* image */,
1293 PP_Point /* top_left */,
1294 PP_Bool /* result */)
1295IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance,
1296 PP_Instance /* instance */,
1297 uint32 /* result */)
1298IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTesting_SimulateInputEvent,
1299 PP_Instance /* instance */,
1300 ppapi::InputEventData /* input_event */)
1301
[email protected]667591d2012-09-04 21:30:121302#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]0fa46e82011-08-09 07:31:491303// PPB_VideoCapture_Dev.
1304IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVideoCapture_Create,
1305 PP_Instance /* instance */,
[email protected]be0a84b2011-08-13 04:18:441306 ppapi::HostResource /* result */)
[email protected]cc7c2442012-02-15 22:58:151307IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_EnumerateDevices,
1308 ppapi::HostResource /* video_capture */)
1309IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoCapture_Open,
[email protected]be0a84b2011-08-13 04:18:441310 ppapi::HostResource /* video_capture */,
[email protected]cc7c2442012-02-15 22:58:151311 std::string /* device_id */,
[email protected]0fa46e82011-08-09 07:31:491312 PP_VideoCaptureDeviceInfo_Dev /* requested_info */,
1313 uint32_t /* buffer_count */)
[email protected]cc7c2442012-02-15 22:58:151314IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_StartCapture,
1315 ppapi::HostResource /* video_capture */)
[email protected]0fa46e82011-08-09 07:31:491316IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoCapture_ReuseBuffer,
[email protected]be0a84b2011-08-13 04:18:441317 ppapi::HostResource /* video_capture */,
[email protected]0fa46e82011-08-09 07:31:491318 uint32_t /* buffer */)
1319IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_StopCapture,
[email protected]be0a84b2011-08-13 04:18:441320 ppapi::HostResource /* video_capture */)
[email protected]cc7c2442012-02-15 22:58:151321IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_Close,
1322 ppapi::HostResource /* video_capture */)
1323IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBVideoCapture_StartCapture0_1,
1324 ppapi::HostResource /* video_capture */,
1325 PP_VideoCaptureDeviceInfo_Dev /* requested_info */,
1326 uint32_t /* buffer_count */)
[email protected]0fa46e82011-08-09 07:31:491327
[email protected]7ace8ad2011-08-06 03:23:581328// PPB_VideoDecoder.
1329IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVideoDecoder_Create,
1330 PP_Instance /* instance */,
[email protected]be0a84b2011-08-13 04:18:441331 ppapi::HostResource /* context */,
[email protected]2ffc31a2011-09-01 03:18:281332 PP_VideoDecoder_Profile /* profile */,
[email protected]be0a84b2011-08-13 04:18:441333 ppapi::HostResource /* result */)
[email protected]7ace8ad2011-08-06 03:23:581334IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoDecoder_Decode,
[email protected]be0a84b2011-08-13 04:18:441335 ppapi::HostResource /* video_decoder */,
1336 ppapi::HostResource /* bitstream buffer */,
[email protected]7ace8ad2011-08-06 03:23:581337 int32 /* bitstream buffer id */,
1338 int32 /* size of buffer */)
1339IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_AssignPictureBuffers,
[email protected]be0a84b2011-08-13 04:18:441340 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:581341 std::vector<PP_PictureBuffer_Dev> /* picture buffers */)
1342IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer,
[email protected]be0a84b2011-08-13 04:18:441343 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:581344 int32_t /* picture buffer id */)
1345IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush,
[email protected]be0a84b2011-08-13 04:18:441346 ppapi::HostResource /* video_decoder */)
[email protected]7ace8ad2011-08-06 03:23:581347IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset,
[email protected]be0a84b2011-08-13 04:18:441348 ppapi::HostResource /* video_decoder */)
[email protected]7ace8ad2011-08-06 03:23:581349IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy,
[email protected]be0a84b2011-08-13 04:18:441350 ppapi::HostResource /* video_decoder */)
[email protected]339fbcff2012-02-29 16:10:321351
[email protected]339fbcff2012-02-29 16:10:321352// PPB_Flash.
1353IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlash_SetInstanceAlwaysOnTop,
1354 PP_Instance /* instance */,
1355 PP_Bool /* on_top */)
1356// This has to be synchronous becuase the caller may want to composite on
1357// top of the resulting text after the call is complete.
[email protected]d1e33ca2012-04-25 19:26:401358IPC_SYNC_MESSAGE_ROUTED2_1(
[email protected]339fbcff2012-02-29 16:10:321359 PpapiHostMsg_PPBFlash_DrawGlyphs,
[email protected]d1e33ca2012-04-25 19:26:401360 PP_Instance /* instance */,
[email protected]339fbcff2012-02-29 16:10:321361 ppapi::proxy::PPBFlash_DrawGlyphs_Params /* params */,
1362 PP_Bool /* result */)
1363IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetProxyForURL,
1364 PP_Instance /* instance */,
1365 std::string /* url */,
1366 ppapi::proxy::SerializedVar /* result */)
1367IPC_SYNC_MESSAGE_ROUTED4_1(PpapiHostMsg_PPBFlash_Navigate,
1368 PP_Instance /* instance */,
[email protected]7b2f7292012-09-19 19:52:121369 ppapi::URLRequestInfoData /* request_data */,
[email protected]339fbcff2012-02-29 16:10:321370 std::string /* target */,
1371 PP_Bool /* from_user_action */,
1372 int32_t /* result */)
1373IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlash_RunMessageLoop,
1374 PP_Instance /* instance */)
1375IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlash_QuitMessageLoop,
1376 PP_Instance /* instance */)
1377IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetLocalTimeZoneOffset,
1378 PP_Instance /* instance */,
1379 PP_Time /* t */,
1380 double /* offset */)
1381IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_IsRectTopmost,
1382 PP_Instance /* instance */,
1383 PP_Rect /* rect */,
1384 PP_Bool /* result */)
[email protected]a085aed72012-04-24 05:32:041385IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_FlashSetFullscreen,
1386 PP_Instance /* instance */,
1387 PP_Bool /* fullscreen */,
1388 PP_Bool /* result */)
1389IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBFlash_FlashGetScreenSize,
1390 PP_Instance /* instance */,
1391 PP_Bool /* result */,
1392 PP_Size /* size */)
[email protected]39e2dca2012-04-20 21:42:331393IPC_MESSAGE_ROUTED0(PpapiHostMsg_PPBFlash_UpdateActivity)
[email protected]595a5ed2012-05-04 00:39:161394IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlash_GetDeviceID,
1395 PP_Instance /* instance */,
1396 ppapi::proxy::SerializedVar /* id */)
[email protected]724fbd32012-04-30 16:19:411397IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBFlash_OpenFileRef,
1398 PP_Instance /* instance */,
1399 ppapi::HostResource /* file_ref */,
1400 int32_t /* mode */,
1401 IPC::PlatformFileForTransit /* file_handle */,
1402 int32_t /* result */)
1403IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBFlash_QueryFileRef,
1404 PP_Instance /* instance */,
1405 ppapi::HostResource /* file_ref */,
1406 PP_FileInfo /* info */,
1407 int32_t /* result */)
[email protected]ea628e32012-08-02 21:50:161408IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetSetting,
1409 PP_Instance /* instance */,
1410 PP_FlashSetting /* setting */,
1411 ppapi::proxy::SerializedVar /* result */)
[email protected]765b08442012-05-07 22:01:411412IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFlash_InvokePrinting,
1413 PP_Instance /* instance */)
[email protected]339fbcff2012-02-29 16:10:321414
[email protected]502ec4dd2012-06-11 20:45:011415// PPB_Flash_DeviceID.
1416IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlashDeviceID_Get,
1417 int32 /* routing_id */,
1418 PP_Resource /* resource */)
1419
[email protected]339fbcff2012-02-29 16:10:321420// PPB_Flash_Menu
1421IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlashMenu_Create,
1422 PP_Instance /* instance */,
1423 ppapi::proxy::SerializedFlashMenu /* menu_data */,
1424 ppapi::HostResource /* result */)
1425IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBFlashMenu_Show,
1426 ppapi::HostResource /* menu */,
1427 PP_Point /* location */)
1428IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFlashMenu_ShowACK,
1429 ppapi::HostResource /* menu */,
1430 int32_t /* selected_id */,
1431 int32_t /* result */)
1432
1433// PPB_Flash_MessageLoop.
1434IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Create,
1435 PP_Instance /* instance */,
1436 ppapi::HostResource /* result */)
1437IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Run,
1438 ppapi::HostResource /* flash_message_loop */,
1439 int32_t /* result */)
1440IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlashMessageLoop_Quit,
1441 ppapi::HostResource /* flash_message_loop */)
[email protected]667591d2012-09-04 21:30:121442#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]339fbcff2012-02-29 16:10:321443
[email protected]339fbcff2012-02-29 16:10:321444// PPB_TCPSocket_Private.
1445IPC_SYNC_MESSAGE_CONTROL2_1(PpapiHostMsg_PPBTCPSocket_Create,
1446 int32 /* routing_id */,
1447 uint32 /* plugin_dispatcher_id */,
1448 uint32 /* socket_id */)
1449IPC_MESSAGE_CONTROL4(PpapiHostMsg_PPBTCPSocket_Connect,
1450 int32 /* routing_id */,
1451 uint32 /* socket_id */,
1452 std::string /* host */,
1453 uint16_t /* port */)
1454IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBTCPSocket_ConnectWithNetAddress,
1455 int32 /* routing_id */,
1456 uint32 /* socket_id */,
1457 PP_NetAddress_Private /* net_addr */)
[email protected]92a794992012-04-12 03:38:221458IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBTCPSocket_SSLHandshake,
[email protected]339fbcff2012-02-29 16:10:321459 uint32 /* socket_id */,
1460 std::string /* server_name */,
[email protected]92a794992012-04-12 03:38:221461 uint16_t /* server_port */,
1462 std::vector<std::vector<char> > /* trusted_certs */,
1463 std::vector<std::vector<char> > /* untrusted_certs */)
[email protected]339fbcff2012-02-29 16:10:321464IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Read,
1465 uint32 /* socket_id */,
1466 int32_t /* bytes_to_read */)
1467IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Write,
1468 uint32 /* socket_id */,
1469 std::string /* data */)
1470IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPSocket_Disconnect,
1471 uint32 /* socket_id */)
1472
1473// PPB_UDPSocket_Private.
1474IPC_SYNC_MESSAGE_CONTROL2_1(PpapiHostMsg_PPBUDPSocket_Create,
1475 int32 /* routing_id */,
1476 uint32 /* plugin_dispatcher_id */,
1477 uint32 /* socket_id */)
[email protected]0addda92012-08-31 08:55:281478IPC_MESSAGE_CONTROL4(PpapiHostMsg_PPBUDPSocket_SetBoolSocketFeature,
1479 int32 /* routing_id */,
1480 uint32 /* socket_id */,
1481 int32_t /* name */,
1482 bool /* value */)
[email protected]339fbcff2012-02-29 16:10:321483IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBUDPSocket_Bind,
1484 int32 /* routing_id */,
1485 uint32 /* socket_id */,
1486 PP_NetAddress_Private /* net_addr */)
1487IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBUDPSocket_RecvFrom,
1488 uint32 /* socket_id */,
1489 int32_t /* num_bytes */)
[email protected]157cc902012-11-02 06:31:581490IPC_MESSAGE_CONTROL4(PpapiHostMsg_PPBUDPSocket_SendTo,
1491 int32 /* routing_id */,
[email protected]339fbcff2012-02-29 16:10:321492 uint32 /* socket_id */,
1493 std::string /* data */,
1494 PP_NetAddress_Private /* net_addr */)
1495IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBUDPSocket_Close,
1496 uint32 /* socket_id */)
1497
1498// PPB_TCPServerSocket_Private.
1499IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBTCPServerSocket_Listen,
1500 int32 /* routing_id */,
1501 uint32 /* plugin_dispatcher_id */,
[email protected]2d011e82012-03-15 09:39:561502 PP_Resource /* socket_resource */,
[email protected]339fbcff2012-02-29 16:10:321503 PP_NetAddress_Private /* addr */,
1504 int32_t /* backlog */)
[email protected]2d011e82012-03-15 09:39:561505IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPServerSocket_Accept,
1506 int32 /* tcp_client_socket_routing_id */,
1507 uint32 /* server_socket_id */)
[email protected]339fbcff2012-02-29 16:10:321508IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Destroy,
[email protected]2d011e82012-03-15 09:39:561509 uint32 /* socket_id */)
[email protected]339fbcff2012-02-29 16:10:321510
[email protected]de2895262012-04-04 17:15:481511// PPB_X509Certificate_Private
1512IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER,
1513 std::vector<char> /* der */,
1514 bool /* succeeded */,
1515 ppapi::PPB_X509Certificate_Fields /* result */)
1516
[email protected]667591d2012-09-04 21:30:121517#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]339fbcff2012-02-29 16:10:321518// PPB_Font.
1519IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies,
1520 std::string /* result */)
[email protected]077ecfd42012-06-21 21:46:261521
[email protected]246fc492012-08-27 20:28:181522#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]077ecfd42012-06-21 21:46:261523
1524//-----------------------------------------------------------------------------
1525// Resource call/reply messages.
1526//
1527// These are the new-style resource implementations where the resource is only
1528// implemented in the proxy and "resource messages" are sent between this and a
1529// host object. Resource messages are a wrapper around some general routing
1530// information and a separate message of a type defined by the specific resource
1531// sending/receiving it. The extra paremeters allow the nested message to be
1532// routed automatically to the correct resource.
1533
1534// Notification that a resource has been created in the plugin. The nested
1535// message will be resource-type-specific.
1536IPC_MESSAGE_CONTROL3(PpapiHostMsg_ResourceCreated,
1537 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1538 PP_Instance /* instance */,
1539 IPC::Message /* nested_msg */)
1540
1541// Notification that a resource has been destroyed in the plugin.
1542IPC_MESSAGE_CONTROL1(PpapiHostMsg_ResourceDestroyed,
1543 PP_Resource /* resource */)
1544
1545// A resource call is a request from the plugin to the host. It may or may not
1546// require a reply, depending on the params. The nested message will be
1547// resource-type-specific.
1548IPC_MESSAGE_CONTROL2(PpapiHostMsg_ResourceCall,
1549 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1550 IPC::Message /* nested_msg */)
1551
1552// A resource reply is a response to a ResourceCall from a host to the
1553// plugin. The resource ID + sequence number in the params will correspond to
1554// that of the previous ResourceCall.
1555IPC_MESSAGE_CONTROL2(
1556 PpapiPluginMsg_ResourceReply,
1557 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1558 IPC::Message /* nested_msg */)
[email protected]eccf80312012-07-14 15:43:421559
[email protected]ff44fc12012-10-03 00:52:161560IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_ResourceSyncCall,
1561 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1562 IPC::Message /* nested_msg */,
1563 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1564 IPC::Message /* reply_msg */)
1565
[email protected]eccf80312012-07-14 15:43:421566//-----------------------------------------------------------------------------
1567// Messages for resources using call/reply above.
1568
1569// File chooser.
1570IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create)
1571IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show,
1572 bool /* save_as */,
1573 bool /* open_multiple */,
1574 std::string /* suggested_file_name */,
1575 std::vector<std::string> /* accept_mime_types */)
1576IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply,
1577 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */)
[email protected]f5118812012-08-24 19:54:301578
[email protected]b7631cc2012-09-15 05:08:381579// Flash device ID.
1580IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_Create)
1581IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_GetDeviceID)
1582IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDeviceID_GetDeviceIDReply,
1583 std::string /* id */)
1584
[email protected]f5118812012-08-24 19:54:301585// Gamepad.
1586IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create)
[email protected]00c0d042012-09-10 07:06:391587
1588// Requests that the gamepad host send the shared memory handle to the plugin
1589// process.
[email protected]f5118812012-08-24 19:54:301590IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_RequestMemory)
[email protected]00c0d042012-09-10 07:06:391591
1592// Reply to a RequestMemory call. This supplies the shared memory handle. The
1593// actual handle is passed in the ReplyParams struct.
1594IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Gamepad_SendMemory)
1595
[email protected]e9cb0b792012-09-07 07:11:061596// Printing.
1597IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create)
1598IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings)
1599IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply,
1600 PP_PrintSettings_Dev /* print_settings */)
[email protected]9d5eadf2012-10-09 03:43:481601
1602// WebSocket ------------------------------------------------------------------
[email protected]9d5eadf2012-10-09 03:43:481603IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create)
1604
1605// Establishes the connection to a server. This message requires
1606// WebSocket_ConnectReply as a reply message.
1607IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Connect,
1608 std::string /* url */,
1609 std::vector<std::string> /* protocols */)
1610
1611// Closes established connection with graceful closing handshake. This message
1612// requires WebSocket_CloseReply as a reply message.
1613IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Close,
1614 int32_t /* code */,
1615 std::string /* reason */)
1616
1617// Sends a text frame to the server. No reply is defined.
1618IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_SendText,
1619 std::string /* message */)
1620
1621// Sends a binary frame to the server. No reply is defined.
1622IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_SendBinary,
1623 std::vector<uint8_t> /* message */)
1624
1625// Fails the connection. This message invokes RFC6455 defined
1626// _Fail the WebSocket Connection_ operation. No reply is defined.
1627IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_Fail,
1628 std::string /* message */)
1629
1630// This message is a reply to WebSocket_Connect. If the |url| and |protocols|
1631// are invalid, WebSocket_ConnectReply is issued immediately and it contains
1632// proper error code in its result. Otherwise, WebSocket_ConnectReply is sent
1633// with valid |url|, |protocol|, and result PP_OK. |protocol| is not a passed
1634// |protocols|, but a result of opening handshake negotiation. If the
1635// connection can not be established successfully, WebSocket_ConnectReply is
1636// not issued, but WebSocket_ClosedReply is sent instead.
1637IPC_MESSAGE_CONTROL2(PpapiPluginMsg_WebSocket_ConnectReply,
1638 std::string /* url */,
1639 std::string /* protocol */)
1640
1641// This message is a reply to WebSocket_Close. If the operation fails,
1642// WebSocket_CloseReply is issued immediately and it contains PP_ERROR_FAILED.
1643// Otherwise, CloseReply will be issued after the closing handshake is
1644// finished. All arguments will be valid iff the result is PP_OK and it means
1645// that the client initiated closing handshake is finished gracefully.
1646IPC_MESSAGE_CONTROL4(PpapiPluginMsg_WebSocket_CloseReply,
1647 unsigned long /* buffered_amount */,
1648 bool /* was_clean */,
1649 unsigned short /* code */,
1650 std::string /* reason */)
1651
1652// Unsolicited reply message to transmit a receiving text frame.
1653IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_ReceiveTextReply,
1654 std::string /* message */)
1655
1656// Unsolicited reply message to transmit a receiving binary frame.
1657IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_ReceiveBinaryReply,
1658 std::vector<uint8_t> /* message */)
1659
1660// Unsolicited reply message to notify a error on underlying network connetion.
1661IPC_MESSAGE_CONTROL0(PpapiPluginMsg_WebSocket_ErrorReply)
1662
1663// Unsolicited reply message to update the buffered amount value.
1664IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_BufferedAmountReply,
1665 unsigned long /* buffered_amount */)
1666
1667// Unsolicited reply message to update |state| because of incoming external
1668// events, e.g., protocol error, or unexpected network closure.
1669IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_StateReply,
1670 int32_t /* state */)
1671
1672// Unsolicited reply message to notify that the connection is closed without
1673// any WebSocket_Close request. Server initiated closing handshake or
1674// unexpected network errors will invoke this message.
1675IPC_MESSAGE_CONTROL4(PpapiPluginMsg_WebSocket_ClosedReply,
1676 unsigned long /* buffered_amount */,
1677 bool /* was_clean */,
1678 unsigned short /* code */,
1679 std::string /* reason */)
[email protected]cb65f132012-10-09 17:06:091680
1681#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]a1686e272012-11-01 23:39:341682
[email protected]77b55502012-11-08 22:20:201683// Audio input.
1684IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create)
1685IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_EnumerateDevices)
1686IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioInput_EnumerateDevicesReply,
1687 std::vector<ppapi::DeviceRefData> /* devices */)
1688IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open,
1689 std::string /* device_id */,
1690 PP_AudioSampleRate /* sample_rate */,
1691 uint32_t /* sample_frame_count */)
1692// Reply to an Open call. This supplies a socket handle and a shared memory
1693// handle. Both handles are passed in the ReplyParams struct.
1694IPC_MESSAGE_CONTROL0(PpapiPluginMsg_AudioInput_OpenReply)
1695IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioInput_StartOrStop, bool /* capture */)
1696IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Close)
1697
[email protected]a1686e272012-11-01 23:39:341698// Flash clipboard.
1699IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashClipboard_Create)
1700IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashClipboard_RegisterCustomFormat,
1701 std::string /* format_name */)
1702IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_RegisterCustomFormatReply,
1703 uint32_t /* format */)
1704IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_IsFormatAvailable,
1705 uint32_t /* clipboard_type */,
1706 uint32_t /* format */)
1707IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_ReadData,
1708 uint32_t /* clipboard_type */,
1709 uint32_t /* format */)
1710IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_ReadDataReply,
1711 std::string /* result */)
1712IPC_MESSAGE_CONTROL3(PpapiHostMsg_FlashClipboard_WriteData,
1713 uint32_t /* clipboard_type */,
1714 std::vector<uint32_t> /* formats */,
1715 std::vector<std::string> /* data */)
[email protected]77b55502012-11-08 22:20:201716
[email protected]cb65f132012-10-09 17:06:091717// Flash font file.
1718IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFontFile_Create,
1719 ppapi::proxy::SerializedFontDescription /* description */,
1720 PP_PrivateFontCharset /* charset */)
1721IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFontFile_GetFontTable,
1722 uint32_t /* table */)
1723IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFontFile_GetFontTableReply,
1724 std::string /* output */)
[email protected]11d0c362012-10-11 02:02:111725
1726// Flash functions.
1727IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create)
1728IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_EnumerateVideoCaptureDevices,
1729 ppapi::HostResource /* video_capture */)
1730IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_EnumerateVideoCaptureDevicesReply,
1731 std::vector<ppapi::DeviceRefData> /* devices */)
[email protected]cb65f132012-10-09 17:06:091732#endif // !defined(OS_NACL) && !defined(NACL_WIN64)