blob: 8528a2dc1099f01918d82b7bb66e1554b1a02eb7 [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]3890cfff2012-02-29 07:54:1824#include "ppapi/c/dev/ppp_printing_dev.h"
[email protected]19d2b012010-11-08 16:32:1825#include "ppapi/c/pp_bool.h"
[email protected]ea505a9d2011-07-07 18:34:4026#include "ppapi/c/pp_file_info.h"
[email protected]c2932f5e2010-11-03 03:22:3327#include "ppapi/c/pp_instance.h"
28#include "ppapi/c/pp_module.h"
[email protected]9b7cc082011-04-20 20:25:5529#include "ppapi/c/pp_point.h"
30#include "ppapi/c/pp_rect.h"
[email protected]c2932f5e2010-11-03 03:22:3331#include "ppapi/c/pp_resource.h"
[email protected]9b7cc082011-04-20 20:25:5532#include "ppapi/c/pp_size.h"
[email protected]3b98ced72012-03-09 02:08:3333#include "ppapi/c/pp_time.h"
[email protected]ea628e32012-08-02 21:50:1634#include "ppapi/c/private/ppb_flash.h"
[email protected]24931102012-03-15 01:21:2735#include "ppapi/c/private/ppb_host_resolver_private.h"
36#include "ppapi/c/private/ppb_net_address_private.h"
[email protected]fb575bc2011-11-16 07:06:2437#include "ppapi/c/private/ppb_tcp_socket_private.h"
[email protected]0addda92012-08-31 08:55:2838#include "ppapi/c/private/ppb_udp_socket_private.h"
[email protected]1a559442012-05-27 07:18:4639#include "ppapi/c/private/ppp_flash_browser_operations.h"
[email protected]c2932f5e2010-11-03 03:22:3340#include "ppapi/proxy/ppapi_param_traits.h"
[email protected]f0a04c42011-08-26 22:43:2041#include "ppapi/proxy/ppapi_proxy_export.h"
[email protected]077ecfd42012-06-21 21:46:2642#include "ppapi/proxy/resource_message_params.h"
[email protected]7358d572011-02-15 18:44:4043#include "ppapi/proxy/serialized_flash_menu.h"
[email protected]fb35dcf2010-11-14 17:08:0044#include "ppapi/proxy/serialized_structs.h"
[email protected]208aad792011-05-26 19:05:2845#include "ppapi/shared_impl/ppapi_preferences.h"
[email protected]dca65e12012-01-21 07:54:1746#include "ppapi/shared_impl/ppb_device_ref_shared.h"
[email protected]9a578392011-12-07 18:59:2747#include "ppapi/shared_impl/ppb_input_event_shared.h"
[email protected]5b9b80e2012-03-20 20:19:3948#include "ppapi/shared_impl/ppb_network_list_private_shared.h"
[email protected]9a578392011-12-07 18:59:2749#include "ppapi/shared_impl/ppb_url_request_info_shared.h"
[email protected]e8f07ac2012-01-03 17:43:3650#include "ppapi/shared_impl/ppb_view_shared.h"
[email protected]ee4dd682012-06-12 15:49:3351#include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h"
[email protected]24931102012-03-15 01:21:2752#include "ppapi/shared_impl/private/ppb_host_resolver_shared.h"
[email protected]de2895262012-04-04 17:15:4853#include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h"
[email protected]19d2b012010-11-08 16:32:1854
[email protected]f0a04c42011-08-26 22:43:2055#undef IPC_MESSAGE_EXPORT
56#define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT
57
[email protected]631179b2011-03-14 22:26:2058#define IPC_MESSAGE_START PpapiMsgStart
[email protected]c2932f5e2010-11-03 03:22:3359
[email protected]dca65e12012-01-21 07:54:1760IPC_ENUM_TRAITS(PP_DeviceType_Dev)
[email protected]1a559442012-05-27 07:18:4661IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission)
62IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType)
[email protected]ea628e32012-08-02 21:50:1663IPC_ENUM_TRAITS(PP_FlashSetting)
[email protected]493d14212011-07-07 15:38:4864IPC_ENUM_TRAITS(PP_InputEvent_MouseButton)
[email protected]24931102012-03-15 01:21:2765IPC_ENUM_TRAITS(PP_InputEvent_Type)
66IPC_ENUM_TRAITS(PP_NetAddressFamily_Private)
[email protected]5b9b80e2012-03-20 20:19:3967IPC_ENUM_TRAITS(PP_NetworkListState_Private)
[email protected]0addda92012-08-31 08:55:2868IPC_ENUM_TRAITS(PP_NetworkListType_Private)
[email protected]772a74622012-06-14 21:15:5069IPC_ENUM_TRAITS(PP_PrintOrientation_Dev)
70IPC_ENUM_TRAITS(PP_PrintOutputFormat_Dev)
71IPC_ENUM_TRAITS(PP_PrintScalingOption_Dev)
[email protected]2daba2f32011-09-29 04:23:0972IPC_ENUM_TRAITS(PP_TextInput_Type)
[email protected]7ace8ad2011-08-06 03:23:5873IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev)
[email protected]24931102012-03-15 01:21:2774IPC_ENUM_TRAITS(PP_VideoDecoder_Profile)
[email protected]493d14212011-07-07 15:38:4875
[email protected]9b7cc082011-04-20 20:25:5576IPC_STRUCT_TRAITS_BEGIN(PP_Point)
77 IPC_STRUCT_TRAITS_MEMBER(x)
78 IPC_STRUCT_TRAITS_MEMBER(y)
79IPC_STRUCT_TRAITS_END()
80
[email protected]493d14212011-07-07 15:38:4881IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint)
82 IPC_STRUCT_TRAITS_MEMBER(x)
83 IPC_STRUCT_TRAITS_MEMBER(y)
84IPC_STRUCT_TRAITS_END()
85
[email protected]9b7cc082011-04-20 20:25:5586IPC_STRUCT_TRAITS_BEGIN(PP_Size)
87 IPC_STRUCT_TRAITS_MEMBER(height)
88 IPC_STRUCT_TRAITS_MEMBER(width)
89IPC_STRUCT_TRAITS_END()
90
91IPC_STRUCT_TRAITS_BEGIN(PP_Rect)
92 IPC_STRUCT_TRAITS_MEMBER(point)
93 IPC_STRUCT_TRAITS_MEMBER(size)
94IPC_STRUCT_TRAITS_END()
95
[email protected]7ace8ad2011-08-06 03:23:5896IPC_STRUCT_TRAITS_BEGIN(PP_PictureBuffer_Dev)
97 IPC_STRUCT_TRAITS_MEMBER(id)
98 IPC_STRUCT_TRAITS_MEMBER(size)
99 IPC_STRUCT_TRAITS_MEMBER(texture_id)
100IPC_STRUCT_TRAITS_END()
101
102IPC_STRUCT_TRAITS_BEGIN(PP_Picture_Dev)
103 IPC_STRUCT_TRAITS_MEMBER(picture_buffer_id)
104 IPC_STRUCT_TRAITS_MEMBER(bitstream_buffer_id)
105IPC_STRUCT_TRAITS_END()
106
[email protected]3890cfff2012-02-29 07:54:18107IPC_STRUCT_TRAITS_BEGIN(PP_PrintPageNumberRange_Dev)
108 IPC_STRUCT_TRAITS_MEMBER(first_page_number)
109 IPC_STRUCT_TRAITS_MEMBER(last_page_number)
110IPC_STRUCT_TRAITS_END()
111
[email protected]0fa46e82011-08-09 07:31:49112IPC_STRUCT_TRAITS_BEGIN(PP_VideoCaptureDeviceInfo_Dev)
113 IPC_STRUCT_TRAITS_MEMBER(width)
114 IPC_STRUCT_TRAITS_MEMBER(height)
115 IPC_STRUCT_TRAITS_MEMBER(frames_per_second)
116IPC_STRUCT_TRAITS_END()
117
[email protected]24931102012-03-15 01:21:27118IPC_STRUCT_TRAITS_BEGIN(PP_HostResolver_Private_Hint)
119 IPC_STRUCT_TRAITS_MEMBER(family)
120 IPC_STRUCT_TRAITS_MEMBER(flags)
121IPC_STRUCT_TRAITS_END()
122
[email protected]772a74622012-06-14 21:15:50123IPC_STRUCT_TRAITS_BEGIN(PP_PrintSettings_Dev)
124 IPC_STRUCT_TRAITS_MEMBER(printable_area)
125 IPC_STRUCT_TRAITS_MEMBER(content_area)
126 IPC_STRUCT_TRAITS_MEMBER(paper_size)
127 IPC_STRUCT_TRAITS_MEMBER(dpi)
128 IPC_STRUCT_TRAITS_MEMBER(orientation)
129 IPC_STRUCT_TRAITS_MEMBER(print_scaling_option)
130 IPC_STRUCT_TRAITS_MEMBER(grayscale)
131 IPC_STRUCT_TRAITS_MEMBER(format)
132IPC_STRUCT_TRAITS_END()
133
[email protected]dca65e12012-01-21 07:54:17134IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData)
135 IPC_STRUCT_TRAITS_MEMBER(type)
136 IPC_STRUCT_TRAITS_MEMBER(name)
137 IPC_STRUCT_TRAITS_MEMBER(id)
138IPC_STRUCT_TRAITS_END()
139
[email protected]ee4dd682012-06-12 15:49:33140IPC_STRUCT_TRAITS_BEGIN(ppapi::FlashSiteSetting)
141 IPC_STRUCT_TRAITS_MEMBER(site)
142 IPC_STRUCT_TRAITS_MEMBER(permission)
143IPC_STRUCT_TRAITS_END()
144
[email protected]e8f07ac2012-01-03 17:43:36145IPC_STRUCT_TRAITS_BEGIN(ppapi::ViewData)
146 IPC_STRUCT_TRAITS_MEMBER(rect)
147 IPC_STRUCT_TRAITS_MEMBER(is_fullscreen)
148 IPC_STRUCT_TRAITS_MEMBER(is_page_visible)
149 IPC_STRUCT_TRAITS_MEMBER(clip_rect)
[email protected]0cd5b9df2012-06-28 19:33:33150 IPC_STRUCT_TRAITS_MEMBER(device_scale)
151 IPC_STRUCT_TRAITS_MEMBER(css_scale)
[email protected]e8f07ac2012-01-03 17:43:36152IPC_STRUCT_TRAITS_END()
153
[email protected]cdf4e912012-06-21 23:15:10154IPC_STRUCT_TRAITS_BEGIN(PP_TouchPoint)
155 IPC_STRUCT_TRAITS_MEMBER(id)
156 IPC_STRUCT_TRAITS_MEMBER(position)
157 IPC_STRUCT_TRAITS_MEMBER(radius)
158 IPC_STRUCT_TRAITS_MEMBER(rotation_angle)
159 IPC_STRUCT_TRAITS_MEMBER(pressure)
160IPC_STRUCT_TRAITS_END()
161
[email protected]4d2efd22011-08-18 21:58:02162IPC_STRUCT_TRAITS_BEGIN(ppapi::Preferences)
[email protected]966d1e12012-05-18 07:20:32163 IPC_STRUCT_TRAITS_MEMBER(standard_font_family_map)
164 IPC_STRUCT_TRAITS_MEMBER(fixed_font_family_map)
165 IPC_STRUCT_TRAITS_MEMBER(serif_font_family_map)
166 IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family_map)
[email protected]208aad792011-05-26 19:05:28167 IPC_STRUCT_TRAITS_MEMBER(default_font_size)
168 IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size)
[email protected]6b4dcb072012-06-18 22:26:51169 IPC_STRUCT_TRAITS_MEMBER(number_of_cpu_cores)
[email protected]e0d8c422012-06-04 22:57:19170 IPC_STRUCT_TRAITS_MEMBER(is_3d_supported)
171 IPC_STRUCT_TRAITS_MEMBER(is_stage3d_supported)
[email protected]208aad792011-05-26 19:05:28172IPC_STRUCT_TRAITS_END()
173
[email protected]4d2efd22011-08-18 21:58:02174IPC_STRUCT_TRAITS_BEGIN(ppapi::InputEventData)
[email protected]493d14212011-07-07 15:38:48175 IPC_STRUCT_TRAITS_MEMBER(is_filtered)
176 IPC_STRUCT_TRAITS_MEMBER(event_type)
177 IPC_STRUCT_TRAITS_MEMBER(event_time_stamp)
178 IPC_STRUCT_TRAITS_MEMBER(event_modifiers)
179 IPC_STRUCT_TRAITS_MEMBER(mouse_button)
180 IPC_STRUCT_TRAITS_MEMBER(mouse_position)
181 IPC_STRUCT_TRAITS_MEMBER(mouse_click_count)
[email protected]80473262011-08-31 17:15:18182 IPC_STRUCT_TRAITS_MEMBER(mouse_movement)
[email protected]493d14212011-07-07 15:38:48183 IPC_STRUCT_TRAITS_MEMBER(wheel_delta)
184 IPC_STRUCT_TRAITS_MEMBER(wheel_ticks)
185 IPC_STRUCT_TRAITS_MEMBER(wheel_scroll_by_page)
186 IPC_STRUCT_TRAITS_MEMBER(key_code)
[email protected]e1e08b42012-02-21 22:42:58187 IPC_STRUCT_TRAITS_MEMBER(usb_key_code)
[email protected]493d14212011-07-07 15:38:48188 IPC_STRUCT_TRAITS_MEMBER(character_text)
[email protected]2daba2f32011-09-29 04:23:09189 IPC_STRUCT_TRAITS_MEMBER(composition_segment_offsets)
190 IPC_STRUCT_TRAITS_MEMBER(composition_target_segment)
191 IPC_STRUCT_TRAITS_MEMBER(composition_selection_start)
192 IPC_STRUCT_TRAITS_MEMBER(composition_selection_end)
[email protected]cdf4e912012-06-21 23:15:10193 IPC_STRUCT_TRAITS_MEMBER(touches)
194 IPC_STRUCT_TRAITS_MEMBER(changed_touches)
195 IPC_STRUCT_TRAITS_MEMBER(target_touches)
[email protected]493d14212011-07-07 15:38:48196IPC_STRUCT_TRAITS_END()
197
[email protected]24931102012-03-15 01:21:27198IPC_STRUCT_TRAITS_BEGIN(ppapi::HostPortPair)
199 IPC_STRUCT_TRAITS_MEMBER(host)
200 IPC_STRUCT_TRAITS_MEMBER(port)
201IPC_STRUCT_TRAITS_END()
202
[email protected]6f75c952011-08-26 04:51:07203IPC_STRUCT_TRAITS_BEGIN(ppapi::PPB_URLRequestInfo_Data)
204 IPC_STRUCT_TRAITS_MEMBER(url)
205 IPC_STRUCT_TRAITS_MEMBER(method)
206 IPC_STRUCT_TRAITS_MEMBER(headers)
207 IPC_STRUCT_TRAITS_MEMBER(stream_to_file)
208 IPC_STRUCT_TRAITS_MEMBER(follow_redirects)
209 IPC_STRUCT_TRAITS_MEMBER(record_download_progress)
210 IPC_STRUCT_TRAITS_MEMBER(record_upload_progress)
211 IPC_STRUCT_TRAITS_MEMBER(has_custom_referrer_url)
212 IPC_STRUCT_TRAITS_MEMBER(custom_referrer_url)
213 IPC_STRUCT_TRAITS_MEMBER(allow_cross_origin_requests)
214 IPC_STRUCT_TRAITS_MEMBER(allow_credentials)
215 IPC_STRUCT_TRAITS_MEMBER(has_custom_content_transfer_encoding)
216 IPC_STRUCT_TRAITS_MEMBER(custom_content_transfer_encoding)
217 IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_upper_threshold)
218 IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_lower_threshold)
[email protected]c094eaf2012-07-10 16:09:01219 IPC_STRUCT_TRAITS_MEMBER(has_custom_user_agent)
220 IPC_STRUCT_TRAITS_MEMBER(custom_user_agent)
[email protected]6f75c952011-08-26 04:51:07221 IPC_STRUCT_TRAITS_MEMBER(body)
222IPC_STRUCT_TRAITS_END()
223
224IPC_STRUCT_TRAITS_BEGIN(ppapi::PPB_URLRequestInfo_Data::BodyItem)
225 IPC_STRUCT_TRAITS_MEMBER(is_file)
226 IPC_STRUCT_TRAITS_MEMBER(data)
227 // Note: we don't serialize file_ref.
228 IPC_STRUCT_TRAITS_MEMBER(file_ref_host_resource)
229 IPC_STRUCT_TRAITS_MEMBER(start_offset)
230 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes)
231 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time)
232IPC_STRUCT_TRAITS_END()
233
[email protected]246fc492012-08-27 20:28:18234#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:49235IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPVideoCapture_Buffer)
236 IPC_STRUCT_TRAITS_MEMBER(resource)
237 IPC_STRUCT_TRAITS_MEMBER(handle)
238 IPC_STRUCT_TRAITS_MEMBER(size)
239IPC_STRUCT_TRAITS_END()
240
[email protected]5b9b80e2012-03-20 20:19:39241IPC_STRUCT_TRAITS_BEGIN(ppapi::NetworkInfo)
242 IPC_STRUCT_TRAITS_MEMBER(name)
243 IPC_STRUCT_TRAITS_MEMBER(type)
244 IPC_STRUCT_TRAITS_MEMBER(state)
245 IPC_STRUCT_TRAITS_MEMBER(addresses)
246 IPC_STRUCT_TRAITS_MEMBER(display_name)
247 IPC_STRUCT_TRAITS_MEMBER(mtu)
248IPC_STRUCT_TRAITS_END()
[email protected]e5aeef02012-08-17 00:18:43249
250// TODO(tomfinegan): This is identical to PPPVideoCapture_Buffer, maybe replace
251// both with a single type?
252IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer)
253 IPC_STRUCT_TRAITS_MEMBER(resource)
254 IPC_STRUCT_TRAITS_MEMBER(handle)
255 IPC_STRUCT_TRAITS_MEMBER(size)
256IPC_STRUCT_TRAITS_END()
257
[email protected]667591d2012-09-04 21:30:12258#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]5b9b80e2012-03-20 20:19:39259
[email protected]eb415bf0e2011-04-14 02:45:42260// These are from the browser to the plugin.
[email protected]631179b2011-03-14 22:26:20261// Loads the given plugin.
262IPC_MESSAGE_CONTROL1(PpapiMsg_LoadPlugin, FilePath /* path */)
263
264// Creates a channel to talk to a renderer. The plugin will respond with
265// PpapiHostMsg_ChannelCreated.
[email protected]f0ecb552012-05-11 22:09:11266IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel,
[email protected]bc2eeb42012-05-02 22:35:53267 int /* renderer_id */,
268 bool /* incognito */)
[email protected]631179b2011-03-14 22:26:20269
[email protected]8510d282012-08-30 19:47:38270// Creates a channel to talk to a renderer. This message is only used by the
271// NaCl IPC proxy. It is intercepted by NaClIPCAdapter, which creates the
272// actual channel and rewrites the message for the untrusted side.
273IPC_MESSAGE_CONTROL3(PpapiMsg_CreateNaClChannel,
274 int /* renderer_id */,
275 bool /* incognito */,
276 ppapi::proxy::SerializedHandle /* channel_handle */)
277
[email protected]631179b2011-03-14 22:26:20278// Each plugin may be referenced by multiple renderers. We need the instance
279// IDs to be unique within a plugin, despite coming from different renderers,
280// and unique within a renderer, despite going to different plugins. This means
281// that neither the renderer nor the plugin can generate instance IDs without
282// consulting the other.
283//
284// We resolve this by having the renderer generate a unique instance ID inside
285// its process. It then asks the plugin to reserve that ID by sending this sync
286// message. If the plugin has not yet seen this ID, it will remember it as used
287// (to prevent a race condition if another renderer tries to then use the same
288// instance), and set usable as true.
289//
290// If the plugin has already seen the instance ID, it will set usable as false
291// and the renderer must retry a new instance ID.
292IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_ReserveInstanceId,
293 PP_Instance /* instance */,
294 bool /* usable */)
295
[email protected]208aad792011-05-26 19:05:28296// Passes the WebKit preferences to the plugin.
297IPC_MESSAGE_CONTROL1(PpapiMsg_SetPreferences,
[email protected]4d2efd22011-08-18 21:58:02298 ppapi::Preferences)
[email protected]208aad792011-05-26 19:05:28299
[email protected]631179b2011-03-14 22:26:20300// Sent in both directions to see if the other side supports the given
301// interface.
302IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface,
303 std::string /* interface_name */,
304 bool /* result */)
305
[email protected]246fc492012-08-27 20:28:18306#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:49307// Network state notification from the browser for implementing
308// PPP_NetworkState_Dev.
309IPC_MESSAGE_CONTROL1(PpapiMsg_SetNetworkState,
310 bool /* online */)
311
[email protected]951ef0b2012-07-27 22:46:53312// Requests a list of sites that have data stored from the plugin. The plugin
313// process will respond with PpapiHostMsg_GetSitesWithDataResult. This is used
314// for Flash.
315IPC_MESSAGE_CONTROL2(PpapiMsg_GetSitesWithData,
316 uint32 /* request_id */,
317 FilePath /* plugin_data_path */)
318IPC_MESSAGE_CONTROL2(PpapiHostMsg_GetSitesWithDataResult,
319 uint32 /* request_id */,
320 std::vector<std::string> /* sites */)
321
[email protected]1bf0fb22012-04-12 21:44:16322// Instructs the plugin to clear data for the given site & time. The plugin
323// process will respond with PpapiHostMsg_ClearSiteDataResult. This is used
324// for Flash.
[email protected]951ef0b2012-07-27 22:46:53325IPC_MESSAGE_CONTROL5(PpapiMsg_ClearSiteData,
326 uint32 /* request_id */,
[email protected]1bf0fb22012-04-12 21:44:16327 FilePath /* plugin_data_path */,
328 std::string /* site */,
329 uint64 /* flags */,
330 uint64 /* max_age */)
[email protected]951ef0b2012-07-27 22:46:53331IPC_MESSAGE_CONTROL2(PpapiHostMsg_ClearSiteDataResult,
332 uint32 /* request_id */,
[email protected]1bf0fb22012-04-12 21:44:16333 bool /* success */)
[email protected]2b657fd2011-04-18 16:00:47334
[email protected]1a559442012-05-27 07:18:46335IPC_MESSAGE_CONTROL2(PpapiMsg_DeauthorizeContentLicenses,
336 uint32 /* request_id */,
337 FilePath /* plugin_data_path */)
338IPC_MESSAGE_CONTROL2(PpapiHostMsg_DeauthorizeContentLicensesResult,
339 uint32 /* request_id */,
340 bool /* success */)
341
[email protected]ee4dd682012-06-12 15:49:33342IPC_MESSAGE_CONTROL3(PpapiMsg_GetPermissionSettings,
343 uint32 /* request_id */,
344 FilePath /* plugin_data_path */,
345 PP_Flash_BrowserOperations_SettingType /* setting_type */)
346IPC_MESSAGE_CONTROL4(
347 PpapiHostMsg_GetPermissionSettingsResult,
348 uint32 /* request_id */,
349 bool /* success */,
350 PP_Flash_BrowserOperations_Permission /* default_permission */,
351 ppapi::FlashSiteSettings /* sites */)
352
353IPC_MESSAGE_CONTROL5(PpapiMsg_SetDefaultPermission,
354 uint32 /* request_id */,
355 FilePath /* plugin_data_path */,
356 PP_Flash_BrowserOperations_SettingType /* setting_type */,
357 PP_Flash_BrowserOperations_Permission /* permission */,
358 bool /* clear_site_specific */)
359IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetDefaultPermissionResult,
360 uint32 /* request_id */,
361 bool /* success */)
362
363IPC_MESSAGE_CONTROL4(PpapiMsg_SetSitePermission,
364 uint32 /* request_id */,
365 FilePath /* plugin_data_path */,
366 PP_Flash_BrowserOperations_SettingType /* setting_type */,
367 ppapi::FlashSiteSettings /* sites */)
368IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetSitePermissionResult,
369 uint32 /* request_id */,
370 bool /* success */)
371
[email protected]1bf0fb22012-04-12 21:44:16372// Broker Process.
[email protected]6990e5d2011-09-30 18:10:57373IPC_SYNC_MESSAGE_CONTROL2_1(PpapiMsg_ConnectToPlugin,
[email protected]2b657fd2011-04-18 16:00:47374 PP_Instance /* instance */,
[email protected]6990e5d2011-09-30 18:10:57375 IPC::PlatformFileForTransit /* handle */,
376 int32_t /* result */)
[email protected]246fc492012-08-27 20:28:18377#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]2b657fd2011-04-18 16:00:47378
[email protected]631179b2011-03-14 22:26:20379// PPB_Audio.
380
381// Notifies the result of the audio stream create call. This is called in
382// both error cases and in the normal success case. These cases are
383// differentiated by the result code, which is one of the standard PPAPI
384// result codes.
385//
386// The handler of this message should always close all of the handles passed
387// in, since some could be valid even in the error case.
[email protected]246fc492012-08-27 20:28:18388IPC_MESSAGE_ROUTED4(PpapiMsg_PPBAudio_NotifyAudioStreamCreated,
[email protected]be0a84b2011-08-13 04:18:44389 ppapi::HostResource /* audio_id */,
[email protected]631179b2011-03-14 22:26:20390 int32_t /* result_code (will be != PP_OK on failure) */,
[email protected]246fc492012-08-27 20:28:18391 ppapi::proxy::SerializedHandle /* socket_handle */,
392 ppapi::proxy::SerializedHandle /* handle */)
[email protected]631179b2011-03-14 22:26:20393
[email protected]1f8a0892011-11-18 00:14:24394// PPB_AudioInput_Dev.
[email protected]eed24562012-03-07 07:48:48395IPC_MESSAGE_ROUTED3(PpapiMsg_PPBAudioInput_EnumerateDevicesACK,
396 ppapi::HostResource /* audio_input */,
397 int32_t /* result */,
398 std::vector<ppapi::DeviceRefData> /* devices */)
[email protected]246fc492012-08-27 20:28:18399IPC_MESSAGE_ROUTED4(PpapiMsg_PPBAudioInput_OpenACK,
[email protected]eed24562012-03-07 07:48:48400 ppapi::HostResource /* audio_input */,
[email protected]1f8a0892011-11-18 00:14:24401 int32_t /* result_code (will be != PP_OK on failure) */,
[email protected]246fc492012-08-27 20:28:18402 ppapi::proxy::SerializedHandle /* socket_handle */,
403 ppapi::proxy::SerializedHandle /* handle */)
[email protected]1f8a0892011-11-18 00:14:24404
[email protected]cc6db922011-12-10 16:54:22405// PPB_FileIO.
406IPC_MESSAGE_ROUTED2(PpapiMsg_PPBFileIO_GeneralComplete,
407 ppapi::HostResource /* file_io */,
408 int32_t /* result */)
409IPC_MESSAGE_ROUTED2(PpapiMsg_PPBFileIO_OpenFileComplete,
410 ppapi::HostResource /* file_io */,
411 int32_t /* result */)
412IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFileIO_QueryComplete,
413 ppapi::HostResource /* file_io */,
414 int32_t /* result */,
415 PP_FileInfo /* info */)
416IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFileIO_ReadComplete,
417 ppapi::HostResource /* file_io */,
418 int32_t /* result */,
419 std::string /* data */)
420
[email protected]0f41c012011-10-21 19:49:20421// PPB_FileRef.
422IPC_MESSAGE_ROUTED3(
423 PpapiMsg_PPBFileRef_CallbackComplete,
424 ppapi::HostResource /* resource */,
425 int /* callback_id */,
426 int32_t /* result */)
427
[email protected]631179b2011-03-14 22:26:20428// PPB_FileSystem.
429IPC_MESSAGE_ROUTED2(
430 PpapiMsg_PPBFileSystem_OpenComplete,
[email protected]be0a84b2011-08-13 04:18:44431 ppapi::HostResource /* filesystem */,
[email protected]631179b2011-03-14 22:26:20432 int32_t /* result */)
433
434// PPB_Graphics2D.
435IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK,
[email protected]be0a84b2011-08-13 04:18:44436 ppapi::HostResource /* graphics_2d */,
[email protected]631179b2011-03-14 22:26:20437 int32_t /* pp_error */)
438
[email protected]eeb4e4a2011-07-19 16:22:06439// PPB_Graphics3D.
440IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK,
[email protected]be0a84b2011-08-13 04:18:44441 ppapi::HostResource /* graphics_3d */,
[email protected]eeb4e4a2011-07-19 16:22:06442 int32_t /* pp_error */)
443
[email protected]c42835772012-08-22 18:22:13444// PPB_ImageData.
445IPC_MESSAGE_ROUTED1(PpapiMsg_PPBImageData_NotifyUnusedImageData,
446 ppapi::HostResource /* old_image_data */)
447
[email protected]0f41c012011-10-21 19:49:20448// PPB_Instance.
449IPC_MESSAGE_ROUTED2(PpapiMsg_PPBInstance_MouseLockComplete,
450 PP_Instance /* instance */,
451 int32_t /* result */)
452
[email protected]631179b2011-03-14 22:26:20453// PPP_Class.
454IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty,
455 int64 /* ppp_class */,
456 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02457 ppapi::proxy::SerializedVar /* property */,
458 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:20459 bool /* result */)
460IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod,
461 int64 /* ppp_class */,
462 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02463 ppapi::proxy::SerializedVar /* method */,
464 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:20465 bool /* result */)
466IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_GetProperty,
467 int64 /* ppp_class */,
468 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02469 ppapi::proxy::SerializedVar /* property */,
470 ppapi::proxy::SerializedVar /* out_exception */,
471 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20472IPC_SYNC_MESSAGE_ROUTED2_2(PpapiMsg_PPPClass_EnumerateProperties,
473 int64 /* ppp_class */,
474 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02475 std::vector<ppapi::proxy::SerializedVar> /* props */,
476 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:20477IPC_SYNC_MESSAGE_ROUTED4_1(PpapiMsg_PPPClass_SetProperty,
478 int64 /* ppp_class */,
479 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02480 ppapi::proxy::SerializedVar /* name */,
481 ppapi::proxy::SerializedVar /* value */,
482 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:20483IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPClass_RemoveProperty,
484 int64 /* ppp_class */,
485 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02486 ppapi::proxy::SerializedVar /* property */,
487 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:20488IPC_SYNC_MESSAGE_ROUTED4_2(PpapiMsg_PPPClass_Call,
489 int64 /* ppp_class */,
490 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02491 ppapi::proxy::SerializedVar /* method_name */,
492 std::vector<ppapi::proxy::SerializedVar> /* args */,
493 ppapi::proxy::SerializedVar /* out_exception */,
494 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20495IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_Construct,
496 int64 /* ppp_class */,
497 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02498 std::vector<ppapi::proxy::SerializedVar> /* args */,
499 ppapi::proxy::SerializedVar /* out_exception */,
500 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20501IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate,
502 int64 /* ppp_class */,
503 int64 /* object */)
504
[email protected]502ec4dd2012-06-11 20:45:01505// PPB_Flash_DeviceID.
506IPC_MESSAGE_ROUTED4(PpapiMsg_PPBFlashDeviceID_GetReply,
507 int32 /* routing_id */,
508 PP_Resource /* resource */,
509 int32 /* result */,
510 std::string /* value */)
511
[email protected]8c3bd1d2011-04-12 20:01:42512// PPP_Graphics3D_Dev.
513IPC_MESSAGE_ROUTED1(PpapiMsg_PPPGraphics3D_ContextLost,
514 PP_Instance /* instance */)
515
[email protected]493d14212011-07-07 15:38:48516// PPP_InputEvent.
517IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInputEvent_HandleInputEvent,
518 PP_Instance /* instance */,
519 ppapi::InputEventData /* data */)
520IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInputEvent_HandleFilteredInputEvent,
521 PP_Instance /* instance */,
522 ppapi::InputEventData /* data */,
523 PP_Bool /* result */)
[email protected]3b98ced72012-03-09 02:08:33524// (Message from the plugin to the browser that it handled an input event.)
525IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInputEvent_HandleInputEvent_ACK,
526 PP_Instance /* instance */,
527 PP_TimeTicks /* timestamp */)
[email protected]493d14212011-07-07 15:38:48528
[email protected]631179b2011-03-14 22:26:20529// PPP_Instance.
530IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate,
531 PP_Instance /* instance */,
532 std::vector<std::string> /* argn */,
533 std::vector<std::string> /* argv */,
534 PP_Bool /* result */)
[email protected]5e5d0b02011-04-04 19:32:07535IPC_SYNC_MESSAGE_ROUTED1_0(PpapiMsg_PPPInstance_DidDestroy,
536 PP_Instance /* instance */)
[email protected]e8f07ac2012-01-03 17:43:36537IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_DidChangeView,
[email protected]631179b2011-03-14 22:26:20538 PP_Instance /* instance */,
[email protected]e8f07ac2012-01-03 17:43:36539 ppapi::ViewData /* new_data */,
[email protected]06e0a342011-09-27 04:24:30540 PP_Bool /* flash_fullscreen */)
[email protected]631179b2011-03-14 22:26:20541IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus,
542 PP_Instance /* instance */,
543 PP_Bool /* has_focus */)
[email protected]631179b2011-03-14 22:26:20544IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInstance_HandleDocumentLoad,
545 PP_Instance /* instance */,
[email protected]be0a84b2011-08-13 04:18:44546 ppapi::HostResource /* url_loader */,
[email protected]631179b2011-03-14 22:26:20547 PP_Bool /* result */)
[email protected]631179b2011-03-14 22:26:20548
[email protected]b20df1c2011-08-03 14:38:24549// PPP_Messaging.
550IPC_MESSAGE_ROUTED2(PpapiMsg_PPPMessaging_HandleMessage,
551 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:02552 ppapi::proxy::SerializedVar /* message */)
[email protected]b20df1c2011-08-03 14:38:24553
[email protected]1314f5f2011-10-16 02:26:56554// PPP_MouseLock.
[email protected]18d871f2011-09-08 16:56:34555IPC_MESSAGE_ROUTED1(PpapiMsg_PPPMouseLock_MouseLockLost,
556 PP_Instance /* instance */)
557
[email protected]3890cfff2012-02-29 07:54:18558// PPP_Printing
559IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_QuerySupportedFormats,
560 PP_Instance /* instance */,
561 uint32_t /* result */)
562IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_Begin,
563 PP_Instance /* instance */,
564 std::string /* settings_string */,
565 int32_t /* result */)
566IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_PrintPages,
567 PP_Instance /* instance */,
568 std::vector<PP_PrintPageNumberRange_Dev> /* pages */,
569 ppapi::HostResource /* result */)
570IPC_MESSAGE_ROUTED1(PpapiMsg_PPPPrinting_End,
571 PP_Instance /* instance */)
572IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_IsScalingDisabled,
573 PP_Instance /* instance */,
574 bool /* result */)
575
[email protected]3c8c74c2012-03-15 07:34:52576// PPP_TextInput.
577IPC_MESSAGE_ROUTED2(PpapiMsg_PPPTextInput_RequestSurroundingText,
578 PP_Instance /* instance */,
579 uint32_t /* desired_number_of_characters */)
580
[email protected]631179b2011-03-14 22:26:20581// PPB_URLLoader
582// (Messages from browser to plugin to notify it of changes in state.)
[email protected]631179b2011-03-14 22:26:20583IPC_MESSAGE_ROUTED3(PpapiMsg_PPBURLLoader_ReadResponseBody_Ack,
[email protected]be0a84b2011-08-13 04:18:44584 ppapi::HostResource /* loader */,
[email protected]631179b2011-03-14 22:26:20585 int32 /* result */,
586 std::string /* data */)
[email protected]0f41c012011-10-21 19:49:20587IPC_MESSAGE_ROUTED2(PpapiMsg_PPBURLLoader_CallbackComplete,
588 ppapi::HostResource /* loader */,
589 int32_t /* result */)
[email protected]246fc492012-08-27 20:28:18590#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:49591// PPB_Broker.
592IPC_MESSAGE_ROUTED3(
593 PpapiMsg_PPBBroker_ConnectComplete,
594 ppapi::HostResource /* broker */,
595 IPC::PlatformFileForTransit /* handle */,
596 int32_t /* result */)
597
[email protected]e5aeef02012-08-17 00:18:43598// PPP_ContentDecryptor_Dev
599IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_GenerateKeyRequest,
600 PP_Instance /* instance */,
601 ppapi::proxy::SerializedVar /* key_system, String */,
602 ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */)
[email protected]98ad9782012-08-22 04:06:22603IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_AddKey,
[email protected]e5aeef02012-08-17 00:18:43604 PP_Instance /* instance */,
605 ppapi::proxy::SerializedVar /* session_id, String */,
[email protected]98ad9782012-08-22 04:06:22606 ppapi::proxy::SerializedVar /* key, ArrayBuffer */,
607 ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */)
[email protected]e5aeef02012-08-17 00:18:43608IPC_MESSAGE_ROUTED2(PpapiMsg_PPPContentDecryptor_CancelKeyRequest,
609 PP_Instance /* instance */,
610 ppapi::proxy::SerializedVar /* session_id, String */)
611IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_Decrypt,
612 PP_Instance /* instance */,
613 ppapi::proxy::PPPDecryptor_Buffer /* buffer */,
[email protected]98ad9782012-08-22 04:06:22614 std::string /* serialized_block_info */)
[email protected]e5aeef02012-08-17 00:18:43615IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_DecryptAndDecode,
616 PP_Instance /* instance */,
[email protected]98ad9782012-08-22 04:06:22617 ppapi::proxy::PPPDecryptor_Buffer /* buffer */,
618 std::string /* serialized_block_info */)
[email protected]e5aeef02012-08-17 00:18:43619
[email protected]6761d632012-04-18 17:54:49620// PPB_NetworkMonitor_Private.
621IPC_MESSAGE_ROUTED2(PpapiMsg_PPBNetworkMonitor_NetworkList,
622 uint32 /* plugin_dispatcher_id */,
623 ppapi::NetworkList /* network_list */)
624
625// PPB_Talk
626IPC_MESSAGE_ROUTED3(
627 PpapiMsg_PPBTalk_GetPermissionACK,
628 uint32 /* plugin_dispatcher_id */,
629 PP_Resource /* resource */,
630 int32_t /* result */)
[email protected]667591d2012-09-04 21:30:12631#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:49632
633// PPB_TCPSocket_Private.
634IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPSocket_ConnectACK,
635 uint32 /* plugin_dispatcher_id */,
636 uint32 /* socket_id */,
637 bool /* succeeded */,
638 PP_NetAddress_Private /* local_addr */,
639 PP_NetAddress_Private /* remote_addr */)
640IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_SSLHandshakeACK,
641 uint32 /* plugin_dispatcher_id */,
642 uint32 /* socket_id */,
643 bool /* succeeded */,
644 ppapi::PPB_X509Certificate_Fields /* certificate_fields */)
645IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_ReadACK,
646 uint32 /* plugin_dispatcher_id */,
647 uint32 /* socket_id */,
648 bool /* succeeded */,
649 std::string /* data */)
650IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_WriteACK,
651 uint32 /* plugin_dispatcher_id */,
652 uint32 /* socket_id */,
653 bool /* succeeded */,
654 int32_t /* bytes_written */)
655
656// PPB_UDPSocket_Private.
657IPC_MESSAGE_ROUTED4(PpapiMsg_PPBUDPSocket_BindACK,
658 uint32 /* plugin_dispatcher_id */,
659 uint32 /* socket_id */,
660 bool /* succeeded */,
661 PP_NetAddress_Private /* bound_addr */)
662IPC_MESSAGE_ROUTED5(PpapiMsg_PPBUDPSocket_RecvFromACK,
663 uint32 /* plugin_dispatcher_id */,
664 uint32 /* socket_id */,
665 bool /* succeeded */,
666 std::string /* data */,
667 PP_NetAddress_Private /* remote_addr */)
668IPC_MESSAGE_ROUTED4(PpapiMsg_PPBUDPSocket_SendToACK,
669 uint32 /* plugin_dispatcher_id */,
670 uint32 /* socket_id */,
671 bool /* succeeded */,
672 int32_t /* bytes_written */)
673
[email protected]667591d2012-09-04 21:30:12674#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:49675// PPB_URLLoader_Trusted
676IPC_MESSAGE_ROUTED1(
677 PpapiMsg_PPBURLLoader_UpdateProgress,
678 ppapi::proxy::PPBURLLoader_UpdateProgress_Params /* params */)
[email protected]667591d2012-09-04 21:30:12679#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:49680
681// PPB_TCPServerSocket_Private.
682
683// |socket_resource| should not be used as Resource in browser. The
684// only purpose of this argument is to be echoed back.
685// |status| == PP_ERROR_NOSPACE means that the socket table is full
686// and new socket can't be initialized.
687// |status| == PP_ERROR_FAILED means that socket is correctly
688// initialized (if needed) but Listen call is failed.
689// |status| == PP_OK means that socket is correctly initialized (if
690// needed) and Listen call succeeds.
691IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPServerSocket_ListenACK,
692 uint32 /* plugin_dispatcher_id */,
693 PP_Resource /* socket_resource */,
694 uint32 /* socket_id */,
695 int32_t /* status */)
696IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPServerSocket_AcceptACK,
697 uint32 /* plugin_dispatcher_id */,
698 uint32 /* server_socket_id */,
699 uint32 /* accepted_socket_id */,
700 PP_NetAddress_Private /* local_addr */,
701 PP_NetAddress_Private /* remote_addr */)
702
703// PPB_HostResolver_Private.
704IPC_MESSAGE_ROUTED5(PpapiMsg_PPBHostResolver_ResolveACK,
705 uint32 /* plugin_dispatcher_id */,
706 uint32 /* host_resolver_id */,
707 bool /* succeeded */,
708 std::string /* canonical_name */,
709 ppapi::NetAddressList /* net_address_list */)
710
[email protected]667591d2012-09-04 21:30:12711#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:49712// PPP_Instance_Private.
713IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject,
714 PP_Instance /* instance */,
715 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20716
[email protected]cc7c2442012-02-15 22:58:15717// PPB_VideoCapture_Dev
718IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoCapture_EnumerateDevicesACK,
719 ppapi::HostResource /* video_capture */,
720 int32_t /* result */,
721 std::vector<ppapi::DeviceRefData> /* devices */)
722IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoCapture_OpenACK,
723 ppapi::HostResource /* video_capture */,
724 int32_t /* result */)
725
[email protected]0fa46e82011-08-09 07:31:49726// PPP_VideoCapture_Dev
727IPC_MESSAGE_ROUTED3(
728 PpapiMsg_PPPVideoCapture_OnDeviceInfo,
[email protected]be0a84b2011-08-13 04:18:44729 ppapi::HostResource /* video_capture */,
[email protected]0fa46e82011-08-09 07:31:49730 PP_VideoCaptureDeviceInfo_Dev /* info */,
[email protected]4d2efd22011-08-18 21:58:02731 std::vector<ppapi::proxy::PPPVideoCapture_Buffer> /* buffers */)
[email protected]0fa46e82011-08-09 07:31:49732IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnStatus,
[email protected]be0a84b2011-08-13 04:18:44733 ppapi::HostResource /* video_capture */,
[email protected]0fa46e82011-08-09 07:31:49734 uint32_t /* status */)
735IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnError,
[email protected]be0a84b2011-08-13 04:18:44736 ppapi::HostResource /* video_capture */,
[email protected]0fa46e82011-08-09 07:31:49737 uint32_t /* error_code */)
738IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnBufferReady,
[email protected]be0a84b2011-08-13 04:18:44739 ppapi::HostResource /* video_capture */,
[email protected]0fa46e82011-08-09 07:31:49740 uint32_t /* buffer */)
741
[email protected]7ace8ad2011-08-06 03:23:58742// PPB_VideoDecoder_Dev.
743// (Messages from renderer to plugin to notify it to run callbacks.)
744IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK,
[email protected]be0a84b2011-08-13 04:18:44745 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58746 int32_t /* bitstream buffer id */,
747 int32_t /* PP_CompletionCallback result */)
748IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_FlushACK,
[email protected]be0a84b2011-08-13 04:18:44749 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58750 int32_t /* PP_CompletionCallback result */)
751IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_ResetACK,
[email protected]be0a84b2011-08-13 04:18:44752 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58753 int32_t /* PP_CompletionCallback result */)
754
755// PPP_VideoDecoder_Dev.
[email protected]08bab532012-06-08 19:39:45756IPC_MESSAGE_ROUTED4(PpapiMsg_PPPVideoDecoder_ProvidePictureBuffers,
[email protected]be0a84b2011-08-13 04:18:44757 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58758 uint32_t /* requested number of buffers */,
[email protected]08bab532012-06-08 19:39:45759 PP_Size /* dimensions of buffers */,
760 uint32_t /* texture_target */)
[email protected]7ace8ad2011-08-06 03:23:58761IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_DismissPictureBuffer,
[email protected]be0a84b2011-08-13 04:18:44762 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58763 int32_t /* picture buffer id */)
764IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_PictureReady,
[email protected]be0a84b2011-08-13 04:18:44765 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58766 PP_Picture_Dev /* output picture */)
[email protected]7ace8ad2011-08-06 03:23:58767IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_NotifyError,
[email protected]be0a84b2011-08-13 04:18:44768 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58769 PP_VideoDecodeError_Dev /* error */)
[email protected]246fc492012-08-27 20:28:18770#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]7ace8ad2011-08-06 03:23:58771
[email protected]631179b2011-03-14 22:26:20772// -----------------------------------------------------------------------------
773// These are from the plugin to the renderer.
774
775// Reply to PpapiMsg_CreateChannel. The handle will be NULL if the channel
776// could not be established. This could be because the IPC could not be created
777// for some weird reason, but more likely that the plugin failed to load or
778// initialize properly.
779IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated,
780 IPC::ChannelHandle /* handle */)
781
[email protected]a9b16dd2012-01-31 05:00:26782// Logs the given message to the console of all instances.
783IPC_MESSAGE_CONTROL4(PpapiHostMsg_LogWithSource,
784 PP_Instance /* instance */,
785 int /* log_level */,
786 std::string /* source */,
787 std::string /* value */)
788
[email protected]631179b2011-03-14 22:26:20789// PPB_Audio.
[email protected]55cdf6052011-05-13 19:22:53790IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudio_Create,
[email protected]631179b2011-03-14 22:26:20791 PP_Instance /* instance_id */,
[email protected]55cdf6052011-05-13 19:22:53792 int32_t /* sample_rate */,
793 uint32_t /* sample_frame_count */,
[email protected]be0a84b2011-08-13 04:18:44794 ppapi::HostResource /* result */)
[email protected]631179b2011-03-14 22:26:20795IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop,
[email protected]be0a84b2011-08-13 04:18:44796 ppapi::HostResource /* audio_id */,
[email protected]631179b2011-03-14 22:26:20797 bool /* play */)
798
[email protected]1f8a0892011-11-18 00:14:24799// PPB_AudioInput.
[email protected]eed24562012-03-07 07:48:48800IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBAudioInput_Create,
801 PP_Instance /* instance */,
[email protected]1f8a0892011-11-18 00:14:24802 ppapi::HostResource /* result */)
[email protected]eed24562012-03-07 07:48:48803IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBAudioInput_EnumerateDevices,
804 ppapi::HostResource /* audio_input */)
805IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBAudioInput_Open,
806 ppapi::HostResource /* audio_input */,
807 std::string /* device_id */,
808 int32_t /* sample_rate */,
809 uint32_t /* sample_frame_count */)
[email protected]1f8a0892011-11-18 00:14:24810IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudioInput_StartOrStop,
[email protected]eed24562012-03-07 07:48:48811 ppapi::HostResource /* audio_input */,
[email protected]1f8a0892011-11-18 00:14:24812 bool /* capture */)
[email protected]eed24562012-03-07 07:48:48813IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBAudioInput_Close,
814 ppapi::HostResource /* audio_input */)
[email protected]1f8a0892011-11-18 00:14:24815
[email protected]631179b2011-03-14 22:26:20816// PPB_Core.
817IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource,
[email protected]be0a84b2011-08-13 04:18:44818 ppapi::HostResource)
[email protected]631179b2011-03-14 22:26:20819IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource,
[email protected]be0a84b2011-08-13 04:18:44820 ppapi::HostResource)
[email protected]631179b2011-03-14 22:26:20821
[email protected]cc6db922011-12-10 16:54:22822// PPB_FileIO.
823IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileIO_Create,
824 PP_Instance /* instance */,
825 ppapi::HostResource /* result */)
826IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Open,
827 ppapi::HostResource /* host_resource */,
828 ppapi::HostResource /* file_ref_resource */,
829 int32_t /* open_flags */)
830IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Close,
831 ppapi::HostResource /* host_resource */)
832IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Query,
833 ppapi::HostResource /* host_resource */)
834IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Touch,
835 ppapi::HostResource /* host_resource */,
836 PP_Time /* last_access_time */,
837 PP_Time /* last_modified_time */)
838IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Read,
839 ppapi::HostResource /* host_resource */,
840 int64_t /* offset */,
841 int32_t /* bytes_to_read */)
842IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Write,
843 ppapi::HostResource /* host_resource */,
844 int64_t /* offset */,
845 std::string /* data */)
846IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileIO_SetLength,
847 ppapi::HostResource /* host_resource */,
848 int64_t /* length */)
849IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Flush,
850 ppapi::HostResource /* host_resource */)
851IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_WillWrite,
852 ppapi::HostResource /* host_resource */,
853 int64_t /* offset */,
854 int32_t /* bytes_to_write */)
855IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileIO_WillSetLength,
856 ppapi::HostResource /* host_resource */,
857 int64_t /* length */)
858
[email protected]631179b2011-03-14 22:26:20859// PPB_FileRef.
860IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileRef_Create,
[email protected]be0a84b2011-08-13 04:18:44861 ppapi::HostResource /* file_system */,
[email protected]631179b2011-03-14 22:26:20862 std::string /* path */,
[email protected]6f75c952011-08-26 04:51:07863 ppapi::PPB_FileRef_CreateInfo /* result */)
[email protected]631179b2011-03-14 22:26:20864IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent,
[email protected]be0a84b2011-08-13 04:18:44865 ppapi::HostResource /* file_ref */,
[email protected]6f75c952011-08-26 04:51:07866 ppapi::PPB_FileRef_CreateInfo /* result */)
[email protected]631179b2011-03-14 22:26:20867IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory,
[email protected]be0a84b2011-08-13 04:18:44868 ppapi::HostResource /* file_ref */,
[email protected]631179b2011-03-14 22:26:20869 PP_Bool /* make_ancestors */,
[email protected]0f41c012011-10-21 19:49:20870 int /* callback_id */)
[email protected]631179b2011-03-14 22:26:20871IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileRef_Touch,
[email protected]be0a84b2011-08-13 04:18:44872 ppapi::HostResource /* file_ref */,
[email protected]631179b2011-03-14 22:26:20873 PP_Time /* last_access */,
874 PP_Time /* last_modified */,
[email protected]0f41c012011-10-21 19:49:20875 int /* callback_id */)
[email protected]631179b2011-03-14 22:26:20876IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Delete,
[email protected]be0a84b2011-08-13 04:18:44877 ppapi::HostResource /* file_ref */,
[email protected]0f41c012011-10-21 19:49:20878 int /* callback_id */)
[email protected]631179b2011-03-14 22:26:20879IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_Rename,
[email protected]be0a84b2011-08-13 04:18:44880 ppapi::HostResource /* file_ref */,
881 ppapi::HostResource /* new_file_ref */,
[email protected]0f41c012011-10-21 19:49:20882 int /* callback_id */)
[email protected]f12a3832011-11-28 23:11:45883IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetAbsolutePath,
884 ppapi::HostResource /* file_ref */,
885 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20886
887// PPB_FileSystem.
888IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create,
889 PP_Instance /* instance */,
890 int /* type */,
[email protected]be0a84b2011-08-13 04:18:44891 ppapi::HostResource /* result */)
[email protected]631179b2011-03-14 22:26:20892IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open,
[email protected]be0a84b2011-08-13 04:18:44893 ppapi::HostResource /* result */,
[email protected]631179b2011-03-14 22:26:20894 int64_t /* expected_size */)
895
[email protected]631179b2011-03-14 22:26:20896// PPB_Graphics2D.
[email protected]2a1d6d912011-12-04 23:29:06897IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create,
898 PP_Instance /* instance */,
899 PP_Size /* size */,
900 PP_Bool /* is_always_opaque */,
901 ppapi::HostResource /* result */)
[email protected]631179b2011-03-14 22:26:20902IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData,
[email protected]be0a84b2011-08-13 04:18:44903 ppapi::HostResource /* graphics_2d */,
904 ppapi::HostResource /* image_data */,
[email protected]631179b2011-03-14 22:26:20905 PP_Point /* top_left */,
906 bool /* src_rect_specified */,
907 PP_Rect /* src_rect */)
908IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBGraphics2D_Scroll,
[email protected]be0a84b2011-08-13 04:18:44909 ppapi::HostResource /* graphics_2d */,
[email protected]631179b2011-03-14 22:26:20910 bool /* clip_specified */,
911 PP_Rect /* clip */,
912 PP_Point /* amount */)
913IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics2D_ReplaceContents,
[email protected]be0a84b2011-08-13 04:18:44914 ppapi::HostResource /* graphics_2d */,
915 ppapi::HostResource /* image_data */)
[email protected]631179b2011-03-14 22:26:20916IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics2D_Flush,
[email protected]be0a84b2011-08-13 04:18:44917 ppapi::HostResource /* graphics_2d */)
[email protected]0cd5b9df2012-06-28 19:33:33918IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics2D_Dev_SetScale,
919 ppapi::HostResource /* graphics_2d */,
920 float /* scale */)
[email protected]631179b2011-03-14 22:26:20921
[email protected]eeb4e4a2011-07-19 16:22:06922// PPB_Graphics3D.
[email protected]9ed07f82012-05-29 21:54:55923IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Create,
[email protected]eeb4e4a2011-07-19 16:22:06924 PP_Instance /* instance */,
[email protected]9ed07f82012-05-29 21:54:55925 ppapi::HostResource /* share_context */,
[email protected]eeb4e4a2011-07-19 16:22:06926 std::vector<int32_t> /* attrib_list */,
[email protected]be0a84b2011-08-13 04:18:44927 ppapi::HostResource /* result */)
[email protected]503b3a22011-12-12 23:29:40928IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBGraphics3D_InitCommandBuffer,
929 ppapi::HostResource /* context */)
930IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer,
[email protected]be0a84b2011-08-13 04:18:44931 ppapi::HostResource /* context */,
[email protected]503b3a22011-12-12 23:29:40932 int32 /* transfer_buffer_id */)
[email protected]571b35e82012-05-19 00:04:35933IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBGraphics3D_GetState,
[email protected]be0a84b2011-08-13 04:18:44934 ppapi::HostResource /* context */,
[email protected]571b35e82012-05-19 00:04:35935 gpu::CommandBuffer::State /* state */,
936 bool /* success */)
937IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBGraphics3D_Flush,
[email protected]be0a84b2011-08-13 04:18:44938 ppapi::HostResource /* context */,
[email protected]eeb4e4a2011-07-19 16:22:06939 int32 /* put_offset */,
940 int32 /* last_known_get */,
[email protected]571b35e82012-05-19 00:04:35941 gpu::CommandBuffer::State /* state */,
942 bool /* success */)
[email protected]eeb4e4a2011-07-19 16:22:06943IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics3D_AsyncFlush,
[email protected]be0a84b2011-08-13 04:18:44944 ppapi::HostResource /* context */,
[email protected]eeb4e4a2011-07-19 16:22:06945 int32 /* put_offset */)
[email protected]eeb4e4a2011-07-19 16:22:06946IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer,
[email protected]be0a84b2011-08-13 04:18:44947 ppapi::HostResource /* context */,
[email protected]eeb4e4a2011-07-19 16:22:06948 int32 /* size */,
949 int32 /* id */)
[email protected]eeb4e4a2011-07-19 16:22:06950IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer,
[email protected]be0a84b2011-08-13 04:18:44951 ppapi::HostResource /* context */,
[email protected]eeb4e4a2011-07-19 16:22:06952 int32 /* id */)
[email protected]246fc492012-08-27 20:28:18953IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBGraphics3D_GetTransferBuffer,
[email protected]be0a84b2011-08-13 04:18:44954 ppapi::HostResource /* context */,
[email protected]eeb4e4a2011-07-19 16:22:06955 int32 /* id */,
[email protected]246fc492012-08-27 20:28:18956 ppapi::proxy::SerializedHandle /* transfer_buffer */)
[email protected]eeb4e4a2011-07-19 16:22:06957IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics3D_SwapBuffers,
[email protected]be0a84b2011-08-13 04:18:44958 ppapi::HostResource /* graphics_3d */)
[email protected]eeb4e4a2011-07-19 16:22:06959
[email protected]2a1d6d912011-12-04 23:29:06960// PPB_ImageData.
961IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_Create,
962 PP_Instance /* instance */,
963 int32 /* format */,
964 PP_Size /* size */,
965 PP_Bool /* init_to_zero */,
966 ppapi::HostResource /* result_resource */,
967 std::string /* image_data_desc */,
968 ppapi::proxy::ImageHandle /* result */)
[email protected]16b7b272012-07-25 21:54:49969IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_CreateNaCl,
970 PP_Instance /* instance */,
971 int32 /* format */,
972 PP_Size /* size */,
973 PP_Bool /* init_to_zero */,
974 ppapi::HostResource /* result_resource */,
975 std::string /* image_data_desc */,
[email protected]246fc492012-08-27 20:28:18976 ppapi::proxy::SerializedHandle /* result */)
[email protected]2a1d6d912011-12-04 23:29:06977
[email protected]631179b2011-03-14 22:26:20978// PPB_Instance.
979IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject,
980 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:02981 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20982IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject,
983 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:02984 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20985IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_BindGraphics,
986 PP_Instance /* instance */,
[email protected]be0a84b2011-08-13 04:18:44987 ppapi::HostResource /* device */,
[email protected]631179b2011-03-14 22:26:20988 PP_Bool /* result */)
[email protected]c59ed5892012-02-18 01:10:19989IPC_SYNC_MESSAGE_ROUTED1_1(
990 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputSampleRate,
991 PP_Instance /* instance */,
992 uint32_t /* result */)
993IPC_SYNC_MESSAGE_ROUTED1_1(
994 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputBufferSize,
995 PP_Instance /* instance */,
996 uint32_t /* result */)
[email protected]631179b2011-03-14 22:26:20997IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_IsFullFrame,
998 PP_Instance /* instance */,
999 PP_Bool /* result */)
1000IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBInstance_ExecuteScript,
1001 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:021002 ppapi::proxy::SerializedVar /* script */,
1003 ppapi::proxy::SerializedVar /* out_exception */,
1004 ppapi::proxy::SerializedVar /* result */)
[email protected]8d770e492011-10-11 04:54:311005IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetDefaultCharSet,
1006 PP_Instance /* instance */,
1007 ppapi::proxy::SerializedVar /* result */)
[email protected]7a26d92e2012-02-17 20:15:251008IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBInstance_GetFontFamilies,
1009 std::string /* result */)
[email protected]06e0a342011-09-27 04:24:301010IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_SetFullscreen,
1011 PP_Instance /* instance */,
1012 PP_Bool /* fullscreen */,
1013 PP_Bool /* result */)
1014IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetScreenSize,
1015 PP_Instance /* instance */,
1016 PP_Bool /* result */,
1017 PP_Size /* size */)
[email protected]493d14212011-07-07 15:38:481018IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_RequestInputEvents,
1019 PP_Instance /* instance */,
1020 bool /* is_filtering */,
1021 uint32_t /* event_classes */)
1022IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_ClearInputEvents,
1023 PP_Instance /* instance */,
1024 uint32_t /* event_classes */)
[email protected]55a5a522011-07-06 22:52:401025IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PostMessage,
1026 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:021027 ppapi::proxy::SerializedVar /* message */)
[email protected]0f41c012011-10-21 19:49:201028IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_LockMouse,
1029 PP_Instance /* instance */)
[email protected]18d871f2011-09-08 16:56:341030IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_UnlockMouse,
1031 PP_Instance /* instance */)
[email protected]03460232011-10-10 17:23:571032IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_ResolveRelativeToDocument,
1033 PP_Instance /* instance */,
1034 ppapi::proxy::SerializedVar /* relative */,
1035 ppapi::proxy::SerializedVar /* result */)
1036IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanRequest,
1037 PP_Instance /* instance */,
1038 ppapi::proxy::SerializedVar /* relative */,
1039 PP_Bool /* result */)
1040IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanAccessDocument,
1041 PP_Instance /* active */,
1042 PP_Instance /* target */,
1043 PP_Bool /* result */)
1044IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetDocumentURL,
1045 PP_Instance /* active */,
1046 ppapi::proxy::SerializedVar /* result */)
1047IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetPluginInstanceURL,
1048 PP_Instance /* active */,
1049 ppapi::proxy::SerializedVar /* result */)
[email protected]33ec50562012-04-08 20:28:431050IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SetCursor,
1051 PP_Instance /* instance */,
1052 int32_t /* type */,
1053 ppapi::HostResource /* custom_image */,
1054 PP_Point /* hot_spot */)
[email protected]4c44183a2012-04-27 16:52:231055IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SetTextInputType,
[email protected]2daba2f32011-09-29 04:23:091056 PP_Instance /* instance */,
1057 PP_TextInput_Type /* type */)
[email protected]4c44183a2012-04-27 16:52:231058IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_UpdateCaretPosition,
[email protected]2daba2f32011-09-29 04:23:091059 PP_Instance /* instance */,
1060 PP_Rect /* caret */,
1061 PP_Rect /* bounding_box */)
[email protected]4c44183a2012-04-27 16:52:231062IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_CancelCompositionText,
[email protected]2daba2f32011-09-29 04:23:091063 PP_Instance /* instance */)
[email protected]4c44183a2012-04-27 16:52:231064IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_UpdateSurroundingText,
[email protected]3c8c74c2012-03-15 07:34:521065 PP_Instance /* instance */,
1066 std::string /* text */,
1067 uint32_t /* caret */,
1068 uint32_t /* anchor */)
[email protected]2daba2f32011-09-29 04:23:091069
[email protected]631179b2011-03-14 22:26:201070// PPB_URLLoader.
1071IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create,
1072 PP_Instance /* instance */,
[email protected]be0a84b2011-08-13 04:18:441073 ppapi::HostResource /* result */)
[email protected]0f41c012011-10-21 19:49:201074IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_Open,
[email protected]be0a84b2011-08-13 04:18:441075 ppapi::HostResource /* loader */,
[email protected]0f41c012011-10-21 19:49:201076 ppapi::PPB_URLRequestInfo_Data /* request_data */)
1077IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FollowRedirect,
1078 ppapi::HostResource /* loader */)
[email protected]631179b2011-03-14 22:26:201079IPC_SYNC_MESSAGE_ROUTED1_1(
1080 PpapiHostMsg_PPBURLLoader_GetResponseInfo,
[email protected]be0a84b2011-08-13 04:18:441081 ppapi::HostResource /* loader */,
1082 ppapi::HostResource /* response_info_out */)
[email protected]631179b2011-03-14 22:26:201083IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_ReadResponseBody,
[email protected]be0a84b2011-08-13 04:18:441084 ppapi::HostResource /* loader */,
[email protected]631179b2011-03-14 22:26:201085 int32_t /* bytes_to_read */)
[email protected]0f41c012011-10-21 19:49:201086IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FinishStreamingToFile,
1087 ppapi::HostResource /* loader */)
[email protected]631179b2011-03-14 22:26:201088IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_Close,
[email protected]be0a84b2011-08-13 04:18:441089 ppapi::HostResource /* loader */)
[email protected]bf712f8e2011-06-17 02:10:451090IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_GrantUniversalAccess,
[email protected]be0a84b2011-08-13 04:18:441091 ppapi::HostResource /* loader */)
[email protected]631179b2011-03-14 22:26:201092
[email protected]631179b2011-03-14 22:26:201093// PPB_URLResponseInfo.
1094IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBURLResponseInfo_GetProperty,
[email protected]be0a84b2011-08-13 04:18:441095 ppapi::HostResource /* response */,
[email protected]631179b2011-03-14 22:26:201096 int32_t /* property */,
[email protected]4d2efd22011-08-18 21:58:021097 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201098IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLResponseInfo_GetBodyAsFileRef,
[email protected]be0a84b2011-08-13 04:18:441099 ppapi::HostResource /* response */,
[email protected]6f75c952011-08-26 04:51:071100 ppapi::PPB_FileRef_CreateInfo /* result */)
[email protected]631179b2011-03-14 22:26:201101
1102// PPB_Var.
[email protected]5b2d3852011-04-19 23:22:401103IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVar_AddRefObject,
1104 int64 /* object_id */,
1105 int /* unused - need a return value for sync msgs */)
[email protected]631179b2011-03-14 22:26:201106IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_ReleaseObject,
1107 int64 /* object_id */)
1108IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_ConvertType,
1109 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:021110 ppapi::proxy::SerializedVar /* var */,
[email protected]631179b2011-03-14 22:26:201111 int /* new_type */,
[email protected]4d2efd22011-08-18 21:58:021112 ppapi::proxy::SerializedVar /* exception */,
1113 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201114IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasProperty,
[email protected]4d2efd22011-08-18 21:58:021115 ppapi::proxy::SerializedVar /* object */,
1116 ppapi::proxy::SerializedVar /* property */,
1117 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:201118 PP_Bool /* result */)
1119IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasMethodDeprecated,
[email protected]4d2efd22011-08-18 21:58:021120 ppapi::proxy::SerializedVar /* object */,
1121 ppapi::proxy::SerializedVar /* method */,
1122 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:201123 PP_Bool /* result */)
1124IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_GetProperty,
[email protected]4d2efd22011-08-18 21:58:021125 ppapi::proxy::SerializedVar /* object */,
1126 ppapi::proxy::SerializedVar /* property */,
1127 ppapi::proxy::SerializedVar /* out_exception */,
1128 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201129IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_DeleteProperty,
[email protected]4d2efd22011-08-18 21:58:021130 ppapi::proxy::SerializedVar /* object */,
1131 ppapi::proxy::SerializedVar /* property */,
1132 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:201133 PP_Bool /* result */)
1134IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBVar_EnumerateProperties,
[email protected]4d2efd22011-08-18 21:58:021135 ppapi::proxy::SerializedVar /* object */,
1136 std::vector<ppapi::proxy::SerializedVar> /* props */,
1137 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:201138IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_SetPropertyDeprecated,
[email protected]4d2efd22011-08-18 21:58:021139 ppapi::proxy::SerializedVar /* object */,
1140 ppapi::proxy::SerializedVar /* name */,
1141 ppapi::proxy::SerializedVar /* value */,
1142 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:201143IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_CallDeprecated,
[email protected]4d2efd22011-08-18 21:58:021144 ppapi::proxy::SerializedVar /* object */,
1145 ppapi::proxy::SerializedVar /* method_name */,
1146 std::vector<ppapi::proxy::SerializedVar> /* args */,
1147 ppapi::proxy::SerializedVar /* out_exception */,
1148 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201149IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_Construct,
[email protected]4d2efd22011-08-18 21:58:021150 ppapi::proxy::SerializedVar /* object */,
1151 std::vector<ppapi::proxy::SerializedVar> /* args */,
1152 ppapi::proxy::SerializedVar /* out_exception */,
1153 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201154IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated,
[email protected]4d2efd22011-08-18 21:58:021155 ppapi::proxy::SerializedVar /* var */,
[email protected]631179b2011-03-14 22:26:201156 int64 /* object_class */,
1157 int64 /* object-data */,
1158 PP_Bool /* result */)
1159IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated,
1160 PP_Instance /* instance */,
1161 int64 /* object_class */,
1162 int64 /* object_data */,
[email protected]4d2efd22011-08-18 21:58:021163 ppapi::proxy::SerializedVar /* result */)
[email protected]6239d342011-05-06 22:55:471164
[email protected]246fc492012-08-27 20:28:181165#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:491166// PPB_Broker.
1167IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBBroker_Create,
1168 PP_Instance /* instance */,
1169 ppapi::HostResource /* result_resource */)
1170IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBBroker_Connect,
1171 ppapi::HostResource /* broker */)
1172
1173// PPB_Buffer.
[email protected]246fc492012-08-27 20:28:181174IPC_SYNC_MESSAGE_ROUTED2_2(
1175 PpapiHostMsg_PPBBuffer_Create,
1176 PP_Instance /* instance */,
1177 uint32_t /* size */,
1178 ppapi::HostResource /* result_resource */,
1179 ppapi::proxy::SerializedHandle /* result_shm_handle */)
[email protected]6761d632012-04-18 17:54:491180
[email protected]e5aeef02012-08-17 00:18:431181// PPB_ContentDecryptor_Dev messages handled in PPB_Instance_Proxy.
1182IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_NeedKey,
1183 PP_Instance /* instance */,
1184 ppapi::proxy::SerializedVar /* key_system, String */,
1185 ppapi::proxy::SerializedVar /* session_id, String */,
1186 ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */)
1187IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_KeyAdded,
1188 PP_Instance /* instance */,
1189 ppapi::proxy::SerializedVar /* key_system, String */,
1190 ppapi::proxy::SerializedVar /* session_id, String */)
1191IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_KeyMessage,
1192 PP_Instance /* instance */,
1193 ppapi::proxy::SerializedVar /* key_system, String */,
1194 ppapi::proxy::SerializedVar /* session_id, String */,
1195 PP_Resource /* message, PPB_Buffer_Dev */,
1196 ppapi::proxy::SerializedVar /* default_url, String */)
1197IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_KeyError,
1198 PP_Instance /* instance */,
1199 ppapi::proxy::SerializedVar /* key_system, String */,
1200 ppapi::proxy::SerializedVar /* session_id, String */,
1201 int32_t /* media_error */,
1202 int32_t /* system_code */)
1203IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverBlock,
1204 PP_Instance /* instance */,
1205 PP_Resource /* decrypted_block, PPB_Buffer_Dev */,
[email protected]98ad9782012-08-22 04:06:221206 std::string /* serialized_block_info */)
[email protected]e5aeef02012-08-17 00:18:431207IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverFrame,
1208 PP_Instance /* instance */,
1209 PP_Resource /* decrypted_frame, PPB_Buffer_Dev */,
[email protected]98ad9782012-08-22 04:06:221210 std::string /* serialized_block_info */)
[email protected]e5aeef02012-08-17 00:18:431211IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverSamples,
1212 PP_Instance /* instance */,
1213 PP_Resource /* decrypted_samples, PPB_Buffer_Dev */,
[email protected]98ad9782012-08-22 04:06:221214 std::string /* serialized_block_info */)
[email protected]e5aeef02012-08-17 00:18:431215
[email protected]6761d632012-04-18 17:54:491216// PPB_NetworkMonitor_Private.
1217IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start,
1218 uint32 /* plugin_dispatcher_id */)
1219IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop,
1220 uint32 /* plugin_dispatcher_id */)
[email protected]667591d2012-09-04 21:30:121221#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:491222
1223// PPB_HostResolver_Private.
1224IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBHostResolver_Resolve,
1225 int32 /* routing_id */,
1226 uint32 /* plugin_dispatcher_id */,
1227 uint32 /* host_resolver_id */,
1228 ppapi::HostPortPair /* host_port */,
1229 PP_HostResolver_Private_Hint /* hint */)
1230
[email protected]667591d2012-09-04 21:30:121231#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:491232// PPB_PDF
1233IPC_SYNC_MESSAGE_ROUTED3_1(
1234 PpapiHostMsg_PPBPDF_GetFontFileWithFallback,
1235 PP_Instance /* instance */,
1236 ppapi::proxy::SerializedFontDescription /* description */,
1237 int32_t /* charset */,
1238 ppapi::HostResource /* result */)
1239IPC_SYNC_MESSAGE_ROUTED2_1(
1240 PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile,
1241 ppapi::HostResource /* font_file */,
1242 uint32_t /* table */,
1243 std::string /* result */)
1244
1245
1246// PPB_Talk.
1247IPC_MESSAGE_ROUTED2(
1248 PpapiHostMsg_PPBTalk_GetPermission,
1249 uint32 /* plugin_dispatcher_id */,
1250 PP_Resource /* resource */)
[email protected]667591d2012-09-04 21:30:121251#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:491252
1253// PPB_Testing.
1254IPC_SYNC_MESSAGE_ROUTED3_1(
1255 PpapiHostMsg_PPBTesting_ReadImageData,
1256 ppapi::HostResource /* device_context_2d */,
1257 ppapi::HostResource /* image */,
1258 PP_Point /* top_left */,
1259 PP_Bool /* result */)
1260IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance,
1261 PP_Instance /* instance */,
1262 uint32 /* result */)
1263IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTesting_SimulateInputEvent,
1264 PP_Instance /* instance */,
1265 ppapi::InputEventData /* input_event */)
1266
[email protected]667591d2012-09-04 21:30:121267#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]0fa46e82011-08-09 07:31:491268// PPB_VideoCapture_Dev.
1269IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVideoCapture_Create,
1270 PP_Instance /* instance */,
[email protected]be0a84b2011-08-13 04:18:441271 ppapi::HostResource /* result */)
[email protected]cc7c2442012-02-15 22:58:151272IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_EnumerateDevices,
1273 ppapi::HostResource /* video_capture */)
1274IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoCapture_Open,
[email protected]be0a84b2011-08-13 04:18:441275 ppapi::HostResource /* video_capture */,
[email protected]cc7c2442012-02-15 22:58:151276 std::string /* device_id */,
[email protected]0fa46e82011-08-09 07:31:491277 PP_VideoCaptureDeviceInfo_Dev /* requested_info */,
1278 uint32_t /* buffer_count */)
[email protected]cc7c2442012-02-15 22:58:151279IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_StartCapture,
1280 ppapi::HostResource /* video_capture */)
[email protected]0fa46e82011-08-09 07:31:491281IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoCapture_ReuseBuffer,
[email protected]be0a84b2011-08-13 04:18:441282 ppapi::HostResource /* video_capture */,
[email protected]0fa46e82011-08-09 07:31:491283 uint32_t /* buffer */)
1284IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_StopCapture,
[email protected]be0a84b2011-08-13 04:18:441285 ppapi::HostResource /* video_capture */)
[email protected]cc7c2442012-02-15 22:58:151286IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_Close,
1287 ppapi::HostResource /* video_capture */)
1288IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBVideoCapture_StartCapture0_1,
1289 ppapi::HostResource /* video_capture */,
1290 PP_VideoCaptureDeviceInfo_Dev /* requested_info */,
1291 uint32_t /* buffer_count */)
[email protected]0fa46e82011-08-09 07:31:491292
[email protected]7ace8ad2011-08-06 03:23:581293// PPB_VideoDecoder.
1294IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVideoDecoder_Create,
1295 PP_Instance /* instance */,
[email protected]be0a84b2011-08-13 04:18:441296 ppapi::HostResource /* context */,
[email protected]2ffc31a2011-09-01 03:18:281297 PP_VideoDecoder_Profile /* profile */,
[email protected]be0a84b2011-08-13 04:18:441298 ppapi::HostResource /* result */)
[email protected]7ace8ad2011-08-06 03:23:581299IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoDecoder_Decode,
[email protected]be0a84b2011-08-13 04:18:441300 ppapi::HostResource /* video_decoder */,
1301 ppapi::HostResource /* bitstream buffer */,
[email protected]7ace8ad2011-08-06 03:23:581302 int32 /* bitstream buffer id */,
1303 int32 /* size of buffer */)
1304IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_AssignPictureBuffers,
[email protected]be0a84b2011-08-13 04:18:441305 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:581306 std::vector<PP_PictureBuffer_Dev> /* picture buffers */)
1307IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer,
[email protected]be0a84b2011-08-13 04:18:441308 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:581309 int32_t /* picture buffer id */)
1310IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush,
[email protected]be0a84b2011-08-13 04:18:441311 ppapi::HostResource /* video_decoder */)
[email protected]7ace8ad2011-08-06 03:23:581312IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset,
[email protected]be0a84b2011-08-13 04:18:441313 ppapi::HostResource /* video_decoder */)
[email protected]7ace8ad2011-08-06 03:23:581314IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy,
[email protected]be0a84b2011-08-13 04:18:441315 ppapi::HostResource /* video_decoder */)
[email protected]339fbcff2012-02-29 16:10:321316
[email protected]339fbcff2012-02-29 16:10:321317// PPB_Flash.
1318IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlash_SetInstanceAlwaysOnTop,
1319 PP_Instance /* instance */,
1320 PP_Bool /* on_top */)
1321// This has to be synchronous becuase the caller may want to composite on
1322// top of the resulting text after the call is complete.
[email protected]d1e33ca2012-04-25 19:26:401323IPC_SYNC_MESSAGE_ROUTED2_1(
[email protected]339fbcff2012-02-29 16:10:321324 PpapiHostMsg_PPBFlash_DrawGlyphs,
[email protected]d1e33ca2012-04-25 19:26:401325 PP_Instance /* instance */,
[email protected]339fbcff2012-02-29 16:10:321326 ppapi::proxy::PPBFlash_DrawGlyphs_Params /* params */,
1327 PP_Bool /* result */)
1328IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetProxyForURL,
1329 PP_Instance /* instance */,
1330 std::string /* url */,
1331 ppapi::proxy::SerializedVar /* result */)
1332IPC_SYNC_MESSAGE_ROUTED4_1(PpapiHostMsg_PPBFlash_Navigate,
1333 PP_Instance /* instance */,
1334 ppapi::PPB_URLRequestInfo_Data /* request_data */,
1335 std::string /* target */,
1336 PP_Bool /* from_user_action */,
1337 int32_t /* result */)
1338IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlash_RunMessageLoop,
1339 PP_Instance /* instance */)
1340IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlash_QuitMessageLoop,
1341 PP_Instance /* instance */)
1342IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetLocalTimeZoneOffset,
1343 PP_Instance /* instance */,
1344 PP_Time /* t */,
1345 double /* offset */)
1346IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_IsRectTopmost,
1347 PP_Instance /* instance */,
1348 PP_Rect /* rect */,
1349 PP_Bool /* result */)
[email protected]a085aed72012-04-24 05:32:041350IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_FlashSetFullscreen,
1351 PP_Instance /* instance */,
1352 PP_Bool /* fullscreen */,
1353 PP_Bool /* result */)
1354IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBFlash_FlashGetScreenSize,
1355 PP_Instance /* instance */,
1356 PP_Bool /* result */,
1357 PP_Size /* size */)
[email protected]39e2dca2012-04-20 21:42:331358IPC_MESSAGE_ROUTED0(PpapiHostMsg_PPBFlash_UpdateActivity)
[email protected]595a5ed2012-05-04 00:39:161359IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlash_GetDeviceID,
1360 PP_Instance /* instance */,
1361 ppapi::proxy::SerializedVar /* id */)
[email protected]d1e33ca2012-04-25 19:26:401362IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFlash_IsClipboardFormatAvailable,
[email protected]339fbcff2012-02-29 16:10:321363 PP_Instance /* instance */,
1364 int /* clipboard_type */,
1365 int /* format */,
1366 bool /* result */)
[email protected]d1e33ca2012-04-25 19:26:401367IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFlash_ReadClipboardData,
[email protected]339fbcff2012-02-29 16:10:321368 PP_Instance /* instance */,
1369 int /* clipboard_type */,
1370 int /* format */,
1371 ppapi::proxy::SerializedVar /* result */)
[email protected]d1e33ca2012-04-25 19:26:401372IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFlash_WriteClipboardData,
[email protected]339fbcff2012-02-29 16:10:321373 PP_Instance /* instance */,
1374 int /* clipboard_type */,
1375 std::vector<int> /* formats */,
1376 std::vector<ppapi::proxy::SerializedVar> /* data */)
[email protected]724fbd32012-04-30 16:19:411377IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBFlash_OpenFileRef,
1378 PP_Instance /* instance */,
1379 ppapi::HostResource /* file_ref */,
1380 int32_t /* mode */,
1381 IPC::PlatformFileForTransit /* file_handle */,
1382 int32_t /* result */)
1383IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBFlash_QueryFileRef,
1384 PP_Instance /* instance */,
1385 ppapi::HostResource /* file_ref */,
1386 PP_FileInfo /* info */,
1387 int32_t /* result */)
[email protected]ea628e32012-08-02 21:50:161388IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetSetting,
1389 PP_Instance /* instance */,
1390 PP_FlashSetting /* setting */,
1391 ppapi::proxy::SerializedVar /* result */)
[email protected]765b08442012-05-07 22:01:411392IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFlash_InvokePrinting,
1393 PP_Instance /* instance */)
[email protected]339fbcff2012-02-29 16:10:321394
[email protected]502ec4dd2012-06-11 20:45:011395// PPB_Flash_DeviceID.
1396IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlashDeviceID_Get,
1397 int32 /* routing_id */,
1398 PP_Resource /* resource */)
1399
[email protected]339fbcff2012-02-29 16:10:321400// PPB_Flash_Menu
1401IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlashMenu_Create,
1402 PP_Instance /* instance */,
1403 ppapi::proxy::SerializedFlashMenu /* menu_data */,
1404 ppapi::HostResource /* result */)
1405IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBFlashMenu_Show,
1406 ppapi::HostResource /* menu */,
1407 PP_Point /* location */)
1408IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFlashMenu_ShowACK,
1409 ppapi::HostResource /* menu */,
1410 int32_t /* selected_id */,
1411 int32_t /* result */)
1412
1413// PPB_Flash_MessageLoop.
1414IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Create,
1415 PP_Instance /* instance */,
1416 ppapi::HostResource /* result */)
1417IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Run,
1418 ppapi::HostResource /* flash_message_loop */,
1419 int32_t /* result */)
1420IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlashMessageLoop_Quit,
1421 ppapi::HostResource /* flash_message_loop */)
[email protected]667591d2012-09-04 21:30:121422#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]339fbcff2012-02-29 16:10:321423
[email protected]339fbcff2012-02-29 16:10:321424// PPB_TCPSocket_Private.
1425IPC_SYNC_MESSAGE_CONTROL2_1(PpapiHostMsg_PPBTCPSocket_Create,
1426 int32 /* routing_id */,
1427 uint32 /* plugin_dispatcher_id */,
1428 uint32 /* socket_id */)
1429IPC_MESSAGE_CONTROL4(PpapiHostMsg_PPBTCPSocket_Connect,
1430 int32 /* routing_id */,
1431 uint32 /* socket_id */,
1432 std::string /* host */,
1433 uint16_t /* port */)
1434IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBTCPSocket_ConnectWithNetAddress,
1435 int32 /* routing_id */,
1436 uint32 /* socket_id */,
1437 PP_NetAddress_Private /* net_addr */)
[email protected]92a794992012-04-12 03:38:221438IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBTCPSocket_SSLHandshake,
[email protected]339fbcff2012-02-29 16:10:321439 uint32 /* socket_id */,
1440 std::string /* server_name */,
[email protected]92a794992012-04-12 03:38:221441 uint16_t /* server_port */,
1442 std::vector<std::vector<char> > /* trusted_certs */,
1443 std::vector<std::vector<char> > /* untrusted_certs */)
[email protected]339fbcff2012-02-29 16:10:321444IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Read,
1445 uint32 /* socket_id */,
1446 int32_t /* bytes_to_read */)
1447IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Write,
1448 uint32 /* socket_id */,
1449 std::string /* data */)
1450IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPSocket_Disconnect,
1451 uint32 /* socket_id */)
1452
1453// PPB_UDPSocket_Private.
1454IPC_SYNC_MESSAGE_CONTROL2_1(PpapiHostMsg_PPBUDPSocket_Create,
1455 int32 /* routing_id */,
1456 uint32 /* plugin_dispatcher_id */,
1457 uint32 /* socket_id */)
[email protected]0addda92012-08-31 08:55:281458IPC_MESSAGE_CONTROL4(PpapiHostMsg_PPBUDPSocket_SetBoolSocketFeature,
1459 int32 /* routing_id */,
1460 uint32 /* socket_id */,
1461 int32_t /* name */,
1462 bool /* value */)
[email protected]339fbcff2012-02-29 16:10:321463IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBUDPSocket_Bind,
1464 int32 /* routing_id */,
1465 uint32 /* socket_id */,
1466 PP_NetAddress_Private /* net_addr */)
1467IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBUDPSocket_RecvFrom,
1468 uint32 /* socket_id */,
1469 int32_t /* num_bytes */)
1470IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBUDPSocket_SendTo,
1471 uint32 /* socket_id */,
1472 std::string /* data */,
1473 PP_NetAddress_Private /* net_addr */)
1474IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBUDPSocket_Close,
1475 uint32 /* socket_id */)
1476
1477// PPB_TCPServerSocket_Private.
1478IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBTCPServerSocket_Listen,
1479 int32 /* routing_id */,
1480 uint32 /* plugin_dispatcher_id */,
[email protected]2d011e82012-03-15 09:39:561481 PP_Resource /* socket_resource */,
[email protected]339fbcff2012-02-29 16:10:321482 PP_NetAddress_Private /* addr */,
1483 int32_t /* backlog */)
[email protected]2d011e82012-03-15 09:39:561484IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPServerSocket_Accept,
1485 int32 /* tcp_client_socket_routing_id */,
1486 uint32 /* server_socket_id */)
[email protected]339fbcff2012-02-29 16:10:321487IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Destroy,
[email protected]2d011e82012-03-15 09:39:561488 uint32 /* socket_id */)
[email protected]339fbcff2012-02-29 16:10:321489
[email protected]de2895262012-04-04 17:15:481490// PPB_X509Certificate_Private
1491IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER,
1492 std::vector<char> /* der */,
1493 bool /* succeeded */,
1494 ppapi::PPB_X509Certificate_Fields /* result */)
1495
[email protected]667591d2012-09-04 21:30:121496#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]339fbcff2012-02-29 16:10:321497// PPB_Font.
1498IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies,
1499 std::string /* result */)
[email protected]077ecfd42012-06-21 21:46:261500
[email protected]246fc492012-08-27 20:28:181501#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]077ecfd42012-06-21 21:46:261502
1503//-----------------------------------------------------------------------------
1504// Resource call/reply messages.
1505//
1506// These are the new-style resource implementations where the resource is only
1507// implemented in the proxy and "resource messages" are sent between this and a
1508// host object. Resource messages are a wrapper around some general routing
1509// information and a separate message of a type defined by the specific resource
1510// sending/receiving it. The extra paremeters allow the nested message to be
1511// routed automatically to the correct resource.
1512
1513// Notification that a resource has been created in the plugin. The nested
1514// message will be resource-type-specific.
1515IPC_MESSAGE_CONTROL3(PpapiHostMsg_ResourceCreated,
1516 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1517 PP_Instance /* instance */,
1518 IPC::Message /* nested_msg */)
1519
1520// Notification that a resource has been destroyed in the plugin.
1521IPC_MESSAGE_CONTROL1(PpapiHostMsg_ResourceDestroyed,
1522 PP_Resource /* resource */)
1523
1524// A resource call is a request from the plugin to the host. It may or may not
1525// require a reply, depending on the params. The nested message will be
1526// resource-type-specific.
1527IPC_MESSAGE_CONTROL2(PpapiHostMsg_ResourceCall,
1528 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1529 IPC::Message /* nested_msg */)
1530
1531// A resource reply is a response to a ResourceCall from a host to the
1532// plugin. The resource ID + sequence number in the params will correspond to
1533// that of the previous ResourceCall.
1534IPC_MESSAGE_CONTROL2(
1535 PpapiPluginMsg_ResourceReply,
1536 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1537 IPC::Message /* nested_msg */)
[email protected]eccf80312012-07-14 15:43:421538
1539//-----------------------------------------------------------------------------
1540// Messages for resources using call/reply above.
1541
1542// File chooser.
1543IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create)
1544IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show,
1545 bool /* save_as */,
1546 bool /* open_multiple */,
1547 std::string /* suggested_file_name */,
1548 std::vector<std::string> /* accept_mime_types */)
1549IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply,
1550 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */)
[email protected]f5118812012-08-24 19:54:301551
1552// Gamepad.
1553IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create)
[email protected]00c0d042012-09-10 07:06:391554
1555// Requests that the gamepad host send the shared memory handle to the plugin
1556// process.
[email protected]f5118812012-08-24 19:54:301557IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_RequestMemory)
[email protected]00c0d042012-09-10 07:06:391558
1559// Reply to a RequestMemory call. This supplies the shared memory handle. The
1560// actual handle is passed in the ReplyParams struct.
1561IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Gamepad_SendMemory)
1562
[email protected]e9cb0b792012-09-07 07:11:061563// Printing.
1564IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create)
1565IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings)
1566IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply,
1567 PP_PrintSettings_Dev /* print_settings */)