Delete unused downloads page asset.
[chromium-blink-merge.git] / ppapi / proxy / ppapi_messages.h
blob7d49d05a450936e25141b86efbe11ff74996117c
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // Multiply-included message header, no traditional include guard.
6 #include <map>
7 #include <string>
8 #include <vector>
10 #include "base/basictypes.h"
11 #include "base/files/file_path.h"
12 #include "base/memory/shared_memory.h"
13 #include "base/process/process.h"
14 #include "base/strings/string16.h"
15 #include "base/sync_socket.h"
16 #include "gpu/command_buffer/common/command_buffer.h"
17 #include "gpu/command_buffer/common/mailbox.h"
18 #include "gpu/ipc/gpu_command_buffer_traits.h"
19 #include "ipc/ipc_channel_handle.h"
20 #include "ipc/ipc_message_macros.h"
21 #include "ipc/ipc_message_utils.h"
22 #include "ipc/ipc_platform_file.h"
23 #include "ppapi/c/dev/pp_video_capture_dev.h"
24 #include "ppapi/c/dev/pp_video_dev.h"
25 #include "ppapi/c/dev/ppb_truetype_font_dev.h"
26 #include "ppapi/c/dev/ppb_url_util_dev.h"
27 #include "ppapi/c/dev/ppp_printing_dev.h"
28 #include "ppapi/c/pp_bool.h"
29 #include "ppapi/c/pp_codecs.h"
30 #include "ppapi/c/pp_file_info.h"
31 #include "ppapi/c/pp_instance.h"
32 #include "ppapi/c/pp_module.h"
33 #include "ppapi/c/pp_point.h"
34 #include "ppapi/c/pp_rect.h"
35 #include "ppapi/c/pp_resource.h"
36 #include "ppapi/c/pp_size.h"
37 #include "ppapi/c/pp_time.h"
38 #include "ppapi/c/ppb_audio_config.h"
39 #include "ppapi/c/ppb_compositor_layer.h"
40 #include "ppapi/c/ppb_image_data.h"
41 #include "ppapi/c/ppb_tcp_socket.h"
42 #include "ppapi/c/ppb_text_input_controller.h"
43 #include "ppapi/c/ppb_udp_socket.h"
44 #include "ppapi/c/ppb_video_encoder.h"
45 #include "ppapi/c/private/pp_content_decryptor.h"
46 #include "ppapi/c/private/pp_private_font_charset.h"
47 #include "ppapi/c/private/pp_video_capture_format.h"
48 #include "ppapi/c/private/ppb_flash.h"
49 #include "ppapi/c/private/ppb_host_resolver_private.h"
50 #include "ppapi/c/private/ppb_isolated_file_system_private.h"
51 #include "ppapi/c/private/ppb_net_address_private.h"
52 #include "ppapi/c/private/ppb_pdf.h"
53 #include "ppapi/c/private/ppp_flash_browser_operations.h"
54 #include "ppapi/c/private/ppp_pdf.h"
55 #include "ppapi/proxy/host_resolver_private_resource.h"
56 #include "ppapi/proxy/network_list_resource.h"
57 #include "ppapi/proxy/ppapi_param_traits.h"
58 #include "ppapi/proxy/ppapi_proxy_export.h"
59 #include "ppapi/proxy/resource_message_params.h"
60 #include "ppapi/proxy/serialized_flash_menu.h"
61 #include "ppapi/proxy/serialized_handle.h"
62 #include "ppapi/proxy/serialized_structs.h"
63 #include "ppapi/proxy/serialized_var.h"
64 #include "ppapi/shared_impl/compositor_layer_data.h"
65 #include "ppapi/shared_impl/dir_contents.h"
66 #include "ppapi/shared_impl/file_growth.h"
67 #include "ppapi/shared_impl/file_path.h"
68 #include "ppapi/shared_impl/file_ref_create_info.h"
69 #include "ppapi/shared_impl/media_stream_audio_track_shared.h"
70 #include "ppapi/shared_impl/media_stream_video_track_shared.h"
71 #include "ppapi/shared_impl/ppapi_nacl_plugin_args.h"
72 #include "ppapi/shared_impl/ppapi_preferences.h"
73 #include "ppapi/shared_impl/ppb_device_ref_shared.h"
74 #include "ppapi/shared_impl/ppb_input_event_shared.h"
75 #include "ppapi/shared_impl/ppb_tcp_socket_shared.h"
76 #include "ppapi/shared_impl/ppb_view_shared.h"
77 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h"
78 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h"
79 #include "ppapi/shared_impl/socket_option_data.h"
80 #include "ppapi/shared_impl/url_request_info_data.h"
81 #include "ppapi/shared_impl/url_response_info_data.h"
83 #undef IPC_MESSAGE_EXPORT
84 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT
86 #define IPC_MESSAGE_START PpapiMsgStart
88 IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion,
89 ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE)
90 IPC_ENUM_TRAITS(PP_AudioSampleRate)
91 IPC_ENUM_TRAITS_MAX_VALUE(PP_BlendMode, PP_BLENDMODE_LAST)
92 IPC_ENUM_TRAITS_MAX_VALUE(PP_CdmExceptionCode, PP_CDMEXCEPTIONCODE_OUTPUTERROR)
93 IPC_ENUM_TRAITS_MAX_VALUE(PP_CdmKeyStatus, PP_CDMKEYSTATUS_STATUSPENDING)
94 IPC_ENUM_TRAITS_MAX_VALUE(PP_CdmMessageType, PP_CDMMESSAGETYPE_LICENSE_RELEASE)
95 IPC_ENUM_TRAITS(PP_DeviceType_Dev)
96 IPC_ENUM_TRAITS(PP_DecryptorStreamType)
97 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileSystemType, PP_FILESYSTEMTYPE_ISOLATED)
98 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileType, PP_FILETYPE_OTHER)
99 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission)
100 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType)
101 IPC_ENUM_TRAITS(PP_FlashSetting)
102 IPC_ENUM_TRAITS(PP_ImageDataFormat)
103 IPC_ENUM_TRAITS_MAX_VALUE(PP_InitDataType, PP_INITDATATYPE_WEBM)
104 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton)
105 IPC_ENUM_TRAITS(PP_InputEvent_Type)
106 IPC_ENUM_TRAITS_MAX_VALUE(PP_IsolatedFileSystemType_Private,
107 PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_PLUGINPRIVATE)
108 IPC_ENUM_TRAITS_MAX_VALUE(PP_NetAddressFamily_Private,
109 PP_NETADDRESSFAMILY_PRIVATE_IPV6)
110 IPC_ENUM_TRAITS_MAX_VALUE(PP_NetworkList_State, PP_NETWORKLIST_STATE_UP)
111 IPC_ENUM_TRAITS_MAX_VALUE(PP_NetworkList_Type, PP_NETWORKLIST_TYPE_CELLULAR)
112 IPC_ENUM_TRAITS(PP_PrintOrientation_Dev)
113 IPC_ENUM_TRAITS(PP_PrintOutputFormat_Dev)
114 IPC_ENUM_TRAITS(PP_PrintScalingOption_Dev)
115 IPC_ENUM_TRAITS_MAX_VALUE(PP_PrivateDuplexMode_Dev, PP_PRIVATEDUPLEXMODE_LAST)
116 IPC_ENUM_TRAITS(PP_PrivateFontCharset)
117 IPC_ENUM_TRAITS(PP_ResourceString)
118 IPC_ENUM_TRAITS_MAX_VALUE(PP_SessionType, PP_SESSIONTYPE_PERSISTENT_RELEASE)
119 IPC_ENUM_TRAITS_MAX_VALUE(PP_TCPSocket_Option,
120 PP_TCPSOCKET_OPTION_RECV_BUFFER_SIZE)
121 IPC_ENUM_TRAITS(PP_TextInput_Type)
122 IPC_ENUM_TRAITS(PP_TrueTypeFontFamily_Dev)
123 IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev)
124 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev)
125 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev)
126 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev)
127 IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option,
128 PP_UDPSOCKET_OPTION_MULTICAST_TTL)
129 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev)
130 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile)
131 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST)
132 IPC_ENUM_TRAITS_MAX_VALUE(PP_HardwareAcceleration, PP_HARDWAREACCELERATION_LAST)
133 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX)
135 IPC_STRUCT_TRAITS_BEGIN(PP_Point)
136 IPC_STRUCT_TRAITS_MEMBER(x)
137 IPC_STRUCT_TRAITS_MEMBER(y)
138 IPC_STRUCT_TRAITS_END()
140 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint)
141 IPC_STRUCT_TRAITS_MEMBER(x)
142 IPC_STRUCT_TRAITS_MEMBER(y)
143 IPC_STRUCT_TRAITS_END()
145 IPC_STRUCT_TRAITS_BEGIN(PP_Size)
146 IPC_STRUCT_TRAITS_MEMBER(height)
147 IPC_STRUCT_TRAITS_MEMBER(width)
148 IPC_STRUCT_TRAITS_END()
150 IPC_STRUCT_TRAITS_BEGIN(PP_FloatSize)
151 IPC_STRUCT_TRAITS_MEMBER(height)
152 IPC_STRUCT_TRAITS_MEMBER(width)
153 IPC_STRUCT_TRAITS_END()
155 IPC_STRUCT_TRAITS_BEGIN(PP_Rect)
156 IPC_STRUCT_TRAITS_MEMBER(point)
157 IPC_STRUCT_TRAITS_MEMBER(size)
158 IPC_STRUCT_TRAITS_END()
160 IPC_STRUCT_TRAITS_BEGIN(PP_FloatRect)
161 IPC_STRUCT_TRAITS_MEMBER(point)
162 IPC_STRUCT_TRAITS_MEMBER(size)
163 IPC_STRUCT_TRAITS_END()
165 IPC_STRUCT_TRAITS_BEGIN(PP_ImageDataDesc)
166 IPC_STRUCT_TRAITS_MEMBER(format)
167 IPC_STRUCT_TRAITS_MEMBER(size)
168 IPC_STRUCT_TRAITS_MEMBER(stride)
169 IPC_STRUCT_TRAITS_END()
171 IPC_STRUCT_TRAITS_BEGIN(PP_PictureBuffer_Dev)
172 IPC_STRUCT_TRAITS_MEMBER(id)
173 IPC_STRUCT_TRAITS_MEMBER(size)
174 IPC_STRUCT_TRAITS_MEMBER(texture_id)
175 IPC_STRUCT_TRAITS_END()
177 IPC_STRUCT_TRAITS_BEGIN(PP_Picture_Dev)
178 IPC_STRUCT_TRAITS_MEMBER(picture_buffer_id)
179 IPC_STRUCT_TRAITS_MEMBER(bitstream_buffer_id)
180 IPC_STRUCT_TRAITS_END()
182 IPC_STRUCT_TRAITS_BEGIN(PP_PrintPageNumberRange_Dev)
183 IPC_STRUCT_TRAITS_MEMBER(first_page_number)
184 IPC_STRUCT_TRAITS_MEMBER(last_page_number)
185 IPC_STRUCT_TRAITS_END()
187 IPC_STRUCT_TRAITS_BEGIN(PP_VideoCaptureDeviceInfo_Dev)
188 IPC_STRUCT_TRAITS_MEMBER(width)
189 IPC_STRUCT_TRAITS_MEMBER(height)
190 IPC_STRUCT_TRAITS_MEMBER(frames_per_second)
191 IPC_STRUCT_TRAITS_END()
193 IPC_STRUCT_TRAITS_BEGIN(PP_HostResolver_Private_Hint)
194 IPC_STRUCT_TRAITS_MEMBER(family)
195 IPC_STRUCT_TRAITS_MEMBER(flags)
196 IPC_STRUCT_TRAITS_END()
198 IPC_STRUCT_TRAITS_BEGIN(PP_PrintSettings_Dev)
199 IPC_STRUCT_TRAITS_MEMBER(printable_area)
200 IPC_STRUCT_TRAITS_MEMBER(content_area)
201 IPC_STRUCT_TRAITS_MEMBER(paper_size)
202 IPC_STRUCT_TRAITS_MEMBER(dpi)
203 IPC_STRUCT_TRAITS_MEMBER(orientation)
204 IPC_STRUCT_TRAITS_MEMBER(print_scaling_option)
205 IPC_STRUCT_TRAITS_MEMBER(grayscale)
206 IPC_STRUCT_TRAITS_MEMBER(format)
207 IPC_STRUCT_TRAITS_END()
209 IPC_STRUCT_TRAITS_BEGIN(PP_PdfPrintPresetOptions_Dev)
210 IPC_STRUCT_TRAITS_MEMBER(is_scaling_disabled)
211 IPC_STRUCT_TRAITS_MEMBER(copies)
212 IPC_STRUCT_TRAITS_MEMBER(duplex)
213 IPC_STRUCT_TRAITS_MEMBER(is_page_size_uniform)
214 IPC_STRUCT_TRAITS_MEMBER(uniform_page_size)
215 IPC_STRUCT_TRAITS_END()
217 IPC_STRUCT_TRAITS_BEGIN(PP_URLComponent_Dev)
218 IPC_STRUCT_TRAITS_MEMBER(begin)
219 IPC_STRUCT_TRAITS_MEMBER(len)
220 IPC_STRUCT_TRAITS_END()
222 IPC_STRUCT_TRAITS_BEGIN(PP_URLComponents_Dev)
223 IPC_STRUCT_TRAITS_MEMBER(scheme)
224 IPC_STRUCT_TRAITS_MEMBER(username)
225 IPC_STRUCT_TRAITS_MEMBER(password)
226 IPC_STRUCT_TRAITS_MEMBER(host)
227 IPC_STRUCT_TRAITS_MEMBER(port)
228 IPC_STRUCT_TRAITS_MEMBER(path)
229 IPC_STRUCT_TRAITS_MEMBER(query)
230 IPC_STRUCT_TRAITS_MEMBER(ref)
231 IPC_STRUCT_TRAITS_END()
233 IPC_STRUCT_TRAITS_BEGIN(PP_VideoCaptureFormat)
234 IPC_STRUCT_TRAITS_MEMBER(frame_size)
235 IPC_STRUCT_TRAITS_MEMBER(frame_rate)
236 IPC_STRUCT_TRAITS_END()
238 IPC_STRUCT_TRAITS_BEGIN(PP_FileInfo)
239 IPC_STRUCT_TRAITS_MEMBER(size)
240 IPC_STRUCT_TRAITS_MEMBER(type)
241 IPC_STRUCT_TRAITS_MEMBER(system_type)
242 IPC_STRUCT_TRAITS_MEMBER(creation_time)
243 IPC_STRUCT_TRAITS_MEMBER(last_access_time)
244 IPC_STRUCT_TRAITS_MEMBER(last_modified_time)
245 IPC_STRUCT_TRAITS_END()
247 IPC_STRUCT_TRAITS_BEGIN(ppapi::FileGrowth)
248 IPC_STRUCT_TRAITS_MEMBER(max_written_offset)
249 IPC_STRUCT_TRAITS_MEMBER(append_mode_write_amount)
250 IPC_STRUCT_TRAITS_END()
252 IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData)
253 IPC_STRUCT_TRAITS_MEMBER(common)
254 IPC_STRUCT_TRAITS_MEMBER(color)
255 IPC_STRUCT_TRAITS_MEMBER(texture)
256 IPC_STRUCT_TRAITS_MEMBER(image)
257 IPC_STRUCT_TRAITS_END()
259 IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData::LayerCommon)
260 IPC_STRUCT_TRAITS_MEMBER(size)
261 IPC_STRUCT_TRAITS_MEMBER(clip_rect)
262 IPC_STRUCT_TRAITS_MEMBER(transform)
263 IPC_STRUCT_TRAITS_MEMBER(blend_mode)
264 IPC_STRUCT_TRAITS_MEMBER(opacity)
265 IPC_STRUCT_TRAITS_MEMBER(resource_id)
266 IPC_STRUCT_TRAITS_END()
268 IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData::ColorLayer)
269 IPC_STRUCT_TRAITS_MEMBER(red)
270 IPC_STRUCT_TRAITS_MEMBER(green)
271 IPC_STRUCT_TRAITS_MEMBER(blue)
272 IPC_STRUCT_TRAITS_MEMBER(alpha)
273 IPC_STRUCT_TRAITS_END()
275 IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData::ImageLayer)
276 IPC_STRUCT_TRAITS_MEMBER(resource)
277 IPC_STRUCT_TRAITS_MEMBER(source_rect)
278 IPC_STRUCT_TRAITS_END()
280 IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData::TextureLayer)
281 IPC_STRUCT_TRAITS_MEMBER(mailbox)
282 IPC_STRUCT_TRAITS_MEMBER(target)
283 IPC_STRUCT_TRAITS_MEMBER(sync_point)
284 IPC_STRUCT_TRAITS_MEMBER(source_rect)
285 IPC_STRUCT_TRAITS_MEMBER(premult_alpha)
286 IPC_STRUCT_TRAITS_END()
288 IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData)
289 IPC_STRUCT_TRAITS_MEMBER(type)
290 IPC_STRUCT_TRAITS_MEMBER(name)
291 IPC_STRUCT_TRAITS_MEMBER(id)
292 IPC_STRUCT_TRAITS_END()
294 IPC_STRUCT_TRAITS_BEGIN(ppapi::DirEntry)
295 IPC_STRUCT_TRAITS_MEMBER(name)
296 IPC_STRUCT_TRAITS_MEMBER(is_dir)
297 IPC_STRUCT_TRAITS_END()
299 IPC_STRUCT_TRAITS_BEGIN(ppapi::FileRefCreateInfo)
300 IPC_STRUCT_TRAITS_MEMBER(file_system_type)
301 IPC_STRUCT_TRAITS_MEMBER(internal_path)
302 IPC_STRUCT_TRAITS_MEMBER(display_name)
303 IPC_STRUCT_TRAITS_MEMBER(browser_pending_host_resource_id)
304 IPC_STRUCT_TRAITS_MEMBER(renderer_pending_host_resource_id)
305 IPC_STRUCT_TRAITS_MEMBER(file_system_plugin_resource)
306 IPC_STRUCT_TRAITS_END()
308 IPC_STRUCT_TRAITS_BEGIN(ppapi::FlashSiteSetting)
309 IPC_STRUCT_TRAITS_MEMBER(site)
310 IPC_STRUCT_TRAITS_MEMBER(permission)
311 IPC_STRUCT_TRAITS_END()
313 IPC_STRUCT_TRAITS_BEGIN(ppapi::MediaStreamAudioTrackShared::Attributes)
314 IPC_STRUCT_TRAITS_MEMBER(buffers)
315 IPC_STRUCT_TRAITS_MEMBER(duration)
316 IPC_STRUCT_TRAITS_END()
318 IPC_STRUCT_TRAITS_BEGIN(ppapi::MediaStreamVideoTrackShared::Attributes)
319 IPC_STRUCT_TRAITS_MEMBER(buffers)
320 IPC_STRUCT_TRAITS_MEMBER(width)
321 IPC_STRUCT_TRAITS_MEMBER(height)
322 IPC_STRUCT_TRAITS_MEMBER(format)
323 IPC_STRUCT_TRAITS_END()
325 IPC_STRUCT_TRAITS_BEGIN(ppapi::ViewData)
326 IPC_STRUCT_TRAITS_MEMBER(rect)
327 IPC_STRUCT_TRAITS_MEMBER(is_fullscreen)
328 IPC_STRUCT_TRAITS_MEMBER(is_page_visible)
329 IPC_STRUCT_TRAITS_MEMBER(clip_rect)
330 IPC_STRUCT_TRAITS_MEMBER(device_scale)
331 IPC_STRUCT_TRAITS_MEMBER(css_scale)
332 IPC_STRUCT_TRAITS_MEMBER(scroll_offset)
333 IPC_STRUCT_TRAITS_END()
335 IPC_STRUCT_TRAITS_BEGIN(PP_TouchPoint)
336 IPC_STRUCT_TRAITS_MEMBER(id)
337 IPC_STRUCT_TRAITS_MEMBER(position)
338 IPC_STRUCT_TRAITS_MEMBER(radius)
339 IPC_STRUCT_TRAITS_MEMBER(rotation_angle)
340 IPC_STRUCT_TRAITS_MEMBER(pressure)
341 IPC_STRUCT_TRAITS_END()
343 IPC_STRUCT_TRAITS_BEGIN(ppapi::Preferences)
344 IPC_STRUCT_TRAITS_MEMBER(standard_font_family_map)
345 IPC_STRUCT_TRAITS_MEMBER(fixed_font_family_map)
346 IPC_STRUCT_TRAITS_MEMBER(serif_font_family_map)
347 IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family_map)
348 IPC_STRUCT_TRAITS_MEMBER(default_font_size)
349 IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size)
350 IPC_STRUCT_TRAITS_MEMBER(number_of_cpu_cores)
351 IPC_STRUCT_TRAITS_MEMBER(is_3d_supported)
352 IPC_STRUCT_TRAITS_MEMBER(is_stage3d_supported)
353 IPC_STRUCT_TRAITS_MEMBER(is_stage3d_baseline_supported)
354 IPC_STRUCT_TRAITS_MEMBER(is_accelerated_video_decode_enabled)
355 IPC_STRUCT_TRAITS_END()
357 IPC_STRUCT_TRAITS_BEGIN(ppapi::InputEventData)
358 IPC_STRUCT_TRAITS_MEMBER(is_filtered)
359 IPC_STRUCT_TRAITS_MEMBER(event_type)
360 IPC_STRUCT_TRAITS_MEMBER(event_time_stamp)
361 IPC_STRUCT_TRAITS_MEMBER(event_modifiers)
362 IPC_STRUCT_TRAITS_MEMBER(mouse_button)
363 IPC_STRUCT_TRAITS_MEMBER(mouse_position)
364 IPC_STRUCT_TRAITS_MEMBER(mouse_click_count)
365 IPC_STRUCT_TRAITS_MEMBER(mouse_movement)
366 IPC_STRUCT_TRAITS_MEMBER(wheel_delta)
367 IPC_STRUCT_TRAITS_MEMBER(wheel_ticks)
368 IPC_STRUCT_TRAITS_MEMBER(wheel_scroll_by_page)
369 IPC_STRUCT_TRAITS_MEMBER(key_code)
370 IPC_STRUCT_TRAITS_MEMBER(code)
371 IPC_STRUCT_TRAITS_MEMBER(character_text)
372 IPC_STRUCT_TRAITS_MEMBER(composition_segment_offsets)
373 IPC_STRUCT_TRAITS_MEMBER(composition_target_segment)
374 IPC_STRUCT_TRAITS_MEMBER(composition_selection_start)
375 IPC_STRUCT_TRAITS_MEMBER(composition_selection_end)
376 IPC_STRUCT_TRAITS_MEMBER(touches)
377 IPC_STRUCT_TRAITS_MEMBER(changed_touches)
378 IPC_STRUCT_TRAITS_MEMBER(target_touches)
379 IPC_STRUCT_TRAITS_END()
381 IPC_STRUCT_TRAITS_BEGIN(ppapi::HostPortPair)
382 IPC_STRUCT_TRAITS_MEMBER(host)
383 IPC_STRUCT_TRAITS_MEMBER(port)
384 IPC_STRUCT_TRAITS_END()
386 IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData)
387 IPC_STRUCT_TRAITS_MEMBER(url)
388 IPC_STRUCT_TRAITS_MEMBER(method)
389 IPC_STRUCT_TRAITS_MEMBER(headers)
390 IPC_STRUCT_TRAITS_MEMBER(stream_to_file)
391 IPC_STRUCT_TRAITS_MEMBER(follow_redirects)
392 IPC_STRUCT_TRAITS_MEMBER(record_download_progress)
393 IPC_STRUCT_TRAITS_MEMBER(record_upload_progress)
394 IPC_STRUCT_TRAITS_MEMBER(has_custom_referrer_url)
395 IPC_STRUCT_TRAITS_MEMBER(custom_referrer_url)
396 IPC_STRUCT_TRAITS_MEMBER(allow_cross_origin_requests)
397 IPC_STRUCT_TRAITS_MEMBER(allow_credentials)
398 IPC_STRUCT_TRAITS_MEMBER(has_custom_content_transfer_encoding)
399 IPC_STRUCT_TRAITS_MEMBER(custom_content_transfer_encoding)
400 IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_upper_threshold)
401 IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_lower_threshold)
402 IPC_STRUCT_TRAITS_MEMBER(has_custom_user_agent)
403 IPC_STRUCT_TRAITS_MEMBER(custom_user_agent)
404 IPC_STRUCT_TRAITS_MEMBER(body)
405 IPC_STRUCT_TRAITS_END()
407 IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData::BodyItem)
408 IPC_STRUCT_TRAITS_MEMBER(is_file)
409 IPC_STRUCT_TRAITS_MEMBER(data)
410 IPC_STRUCT_TRAITS_MEMBER(file_ref_pp_resource)
411 IPC_STRUCT_TRAITS_MEMBER(start_offset)
412 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes)
413 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time)
414 IPC_STRUCT_TRAITS_END()
416 IPC_STRUCT_TRAITS_BEGIN(ppapi::URLResponseInfoData)
417 IPC_STRUCT_TRAITS_MEMBER(url)
418 IPC_STRUCT_TRAITS_MEMBER(headers)
419 IPC_STRUCT_TRAITS_MEMBER(status_code)
420 IPC_STRUCT_TRAITS_MEMBER(status_text)
421 IPC_STRUCT_TRAITS_MEMBER(redirect_url)
422 IPC_STRUCT_TRAITS_MEMBER(body_as_file_ref)
423 IPC_STRUCT_TRAITS_END()
425 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::SerializedNetworkInfo)
426 IPC_STRUCT_TRAITS_MEMBER(name)
427 IPC_STRUCT_TRAITS_MEMBER(type)
428 IPC_STRUCT_TRAITS_MEMBER(state)
429 IPC_STRUCT_TRAITS_MEMBER(addresses)
430 IPC_STRUCT_TRAITS_MEMBER(display_name)
431 IPC_STRUCT_TRAITS_MEMBER(mtu)
432 IPC_STRUCT_TRAITS_END()
434 // Only whitelisted switches passed through PpapiNaClPluginArgs.
435 // The list of switches can be found in:
436 // components/nacl/browser/nacl_process_host.cc
437 IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs)
438 IPC_STRUCT_TRAITS_MEMBER(off_the_record)
439 IPC_STRUCT_TRAITS_MEMBER(permissions)
440 IPC_STRUCT_TRAITS_MEMBER(keepalive_throttle_interval_milliseconds)
441 IPC_STRUCT_TRAITS_MEMBER(switch_names)
442 IPC_STRUCT_TRAITS_MEMBER(switch_values)
443 IPC_STRUCT_TRAITS_END()
445 IPC_STRUCT_TRAITS_BEGIN(PP_VideoProfileDescription)
446 IPC_STRUCT_TRAITS_MEMBER(profile)
447 IPC_STRUCT_TRAITS_MEMBER(max_resolution)
448 IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator)
449 IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator)
450 IPC_STRUCT_TRAITS_MEMBER(hardware_accelerated)
451 IPC_STRUCT_TRAITS_END()
453 #if !defined(OS_NACL) && !defined(NACL_WIN64)
455 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer)
456 IPC_STRUCT_TRAITS_MEMBER(resource)
457 IPC_STRUCT_TRAITS_MEMBER(handle)
458 IPC_STRUCT_TRAITS_MEMBER(size)
459 IPC_STRUCT_TRAITS_END()
461 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
463 // These are from the browser to the plugin.
464 // Loads the given plugin.
465 IPC_MESSAGE_CONTROL2(PpapiMsg_LoadPlugin,
466 base::FilePath /* path */,
467 ppapi::PpapiPermissions /* permissions */)
469 // Creates a channel to talk to a renderer. The plugin will respond with
470 // PpapiHostMsg_ChannelCreated.
471 IPC_MESSAGE_CONTROL3(PpapiMsg_CreateChannel,
472 base::ProcessId /* renderer_pid */,
473 int /* renderer_child_id */,
474 bool /* incognito */)
476 // Initializes the IPC dispatchers in the NaCl plugin.
477 IPC_MESSAGE_CONTROL1(PpapiMsg_InitializeNaClDispatcher,
478 ppapi::PpapiNaClPluginArgs /* args */)
480 // Instructs the plugin process to crash.
481 IPC_MESSAGE_CONTROL0(PpapiMsg_Crash)
483 // Instructs the plugin process to hang.
484 IPC_MESSAGE_CONTROL0(PpapiMsg_Hang)
486 // Each plugin may be referenced by multiple renderers. We need the instance
487 // IDs to be unique within a plugin, despite coming from different renderers,
488 // and unique within a renderer, despite going to different plugins. This means
489 // that neither the renderer nor the plugin can generate instance IDs without
490 // consulting the other.
492 // We resolve this by having the renderer generate a unique instance ID inside
493 // its process. It then asks the plugin to reserve that ID by sending this sync
494 // message. If the plugin has not yet seen this ID, it will remember it as used
495 // (to prevent a race condition if another renderer tries to then use the same
496 // instance), and set usable as true.
498 // If the plugin has already seen the instance ID, it will set usable as false
499 // and the renderer must retry a new instance ID.
500 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_ReserveInstanceId,
501 PP_Instance /* instance */,
502 bool /* usable */)
504 // Passes the WebKit preferences to the plugin.
505 IPC_MESSAGE_CONTROL1(PpapiMsg_SetPreferences,
506 ppapi::Preferences)
508 // Sent in both directions to see if the other side supports the given
509 // interface.
510 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface,
511 std::string /* interface_name */,
512 bool /* result */)
514 IPC_MESSAGE_CONTROL1(PpapiHostMsg_LogInterfaceUsage,
515 int /* interface_hash */)
517 #if !defined(OS_NACL) && !defined(NACL_WIN64)
518 // Network state notification from the browser for implementing
519 // PPP_NetworkState_Dev.
520 IPC_MESSAGE_CONTROL1(PpapiMsg_SetNetworkState,
521 bool /* online */)
523 // Requests a list of sites that have data stored from the plugin. The plugin
524 // process will respond with PpapiHostMsg_GetSitesWithDataResult. This is used
525 // for Flash.
526 IPC_MESSAGE_CONTROL2(PpapiMsg_GetSitesWithData,
527 uint32 /* request_id */,
528 base::FilePath /* plugin_data_path */)
529 IPC_MESSAGE_CONTROL2(PpapiHostMsg_GetSitesWithDataResult,
530 uint32 /* request_id */,
531 std::vector<std::string> /* sites */)
533 // Instructs the plugin to clear data for the given site & time. The plugin
534 // process will respond with PpapiHostMsg_ClearSiteDataResult. This is used
535 // for Flash.
536 IPC_MESSAGE_CONTROL5(PpapiMsg_ClearSiteData,
537 uint32 /* request_id */,
538 base::FilePath /* plugin_data_path */,
539 std::string /* site */,
540 uint64 /* flags */,
541 uint64 /* max_age */)
542 IPC_MESSAGE_CONTROL2(PpapiHostMsg_ClearSiteDataResult,
543 uint32 /* request_id */,
544 bool /* success */)
546 IPC_MESSAGE_CONTROL2(PpapiMsg_DeauthorizeContentLicenses,
547 uint32 /* request_id */,
548 base::FilePath /* plugin_data_path */)
549 IPC_MESSAGE_CONTROL2(PpapiHostMsg_DeauthorizeContentLicensesResult,
550 uint32 /* request_id */,
551 bool /* success */)
553 IPC_MESSAGE_CONTROL3(PpapiMsg_GetPermissionSettings,
554 uint32 /* request_id */,
555 base::FilePath /* plugin_data_path */,
556 PP_Flash_BrowserOperations_SettingType /* setting_type */)
557 IPC_MESSAGE_CONTROL4(
558 PpapiHostMsg_GetPermissionSettingsResult,
559 uint32 /* request_id */,
560 bool /* success */,
561 PP_Flash_BrowserOperations_Permission /* default_permission */,
562 ppapi::FlashSiteSettings /* sites */)
564 IPC_MESSAGE_CONTROL5(PpapiMsg_SetDefaultPermission,
565 uint32 /* request_id */,
566 base::FilePath /* plugin_data_path */,
567 PP_Flash_BrowserOperations_SettingType /* setting_type */,
568 PP_Flash_BrowserOperations_Permission /* permission */,
569 bool /* clear_site_specific */)
570 IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetDefaultPermissionResult,
571 uint32 /* request_id */,
572 bool /* success */)
574 IPC_MESSAGE_CONTROL4(PpapiMsg_SetSitePermission,
575 uint32 /* request_id */,
576 base::FilePath /* plugin_data_path */,
577 PP_Flash_BrowserOperations_SettingType /* setting_type */,
578 ppapi::FlashSiteSettings /* sites */)
579 IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetSitePermissionResult,
580 uint32 /* request_id */,
581 bool /* success */)
583 // Broker Process.
584 IPC_SYNC_MESSAGE_CONTROL2_1(PpapiMsg_ConnectToPlugin,
585 PP_Instance /* instance */,
586 IPC::PlatformFileForTransit /* handle */,
587 int32_t /* result */)
588 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
590 // PPB_Audio.
592 // Notifies the result of the audio stream create call. This is called in
593 // both error cases and in the normal success case. These cases are
594 // differentiated by the result code, which is one of the standard PPAPI
595 // result codes.
597 // The handler of this message should always close all of the handles passed
598 // in, since some could be valid even in the error case.
599 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBAudio_NotifyAudioStreamCreated,
600 ppapi::HostResource /* audio_id */,
601 int32_t /* result_code (will be != PP_OK on failure) */,
602 ppapi::proxy::SerializedHandle /* socket_handle */,
603 ppapi::proxy::SerializedHandle /* handle */)
605 // PPB_Graphics3D.
606 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK,
607 ppapi::HostResource /* graphics_3d */,
608 int32_t /* pp_error */)
610 // PPB_ImageData.
611 IPC_MESSAGE_ROUTED1(PpapiMsg_PPBImageData_NotifyUnusedImageData,
612 ppapi::HostResource /* old_image_data */)
614 // PPB_Instance.
615 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBInstance_MouseLockComplete,
616 PP_Instance /* instance */,
617 int32_t /* result */)
619 // PPP_Class.
620 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty,
621 int64 /* ppp_class */,
622 int64 /* object */,
623 ppapi::proxy::SerializedVar /* property */,
624 ppapi::proxy::SerializedVar /* out_exception */,
625 bool /* result */)
626 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod,
627 int64 /* ppp_class */,
628 int64 /* object */,
629 ppapi::proxy::SerializedVar /* method */,
630 ppapi::proxy::SerializedVar /* out_exception */,
631 bool /* result */)
632 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_GetProperty,
633 int64 /* ppp_class */,
634 int64 /* object */,
635 ppapi::proxy::SerializedVar /* property */,
636 ppapi::proxy::SerializedVar /* out_exception */,
637 ppapi::proxy::SerializedVar /* result */)
638 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiMsg_PPPClass_EnumerateProperties,
639 int64 /* ppp_class */,
640 int64 /* object */,
641 std::vector<ppapi::proxy::SerializedVar> /* props */,
642 ppapi::proxy::SerializedVar /* out_exception */)
643 IPC_SYNC_MESSAGE_ROUTED4_1(PpapiMsg_PPPClass_SetProperty,
644 int64 /* ppp_class */,
645 int64 /* object */,
646 ppapi::proxy::SerializedVar /* name */,
647 ppapi::proxy::SerializedVar /* value */,
648 ppapi::proxy::SerializedVar /* out_exception */)
649 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPClass_RemoveProperty,
650 int64 /* ppp_class */,
651 int64 /* object */,
652 ppapi::proxy::SerializedVar /* property */,
653 ppapi::proxy::SerializedVar /* out_exception */)
654 IPC_SYNC_MESSAGE_ROUTED4_2(PpapiMsg_PPPClass_Call,
655 int64 /* ppp_class */,
656 int64 /* object */,
657 ppapi::proxy::SerializedVar /* method_name */,
658 std::vector<ppapi::proxy::SerializedVar> /* args */,
659 ppapi::proxy::SerializedVar /* out_exception */,
660 ppapi::proxy::SerializedVar /* result */)
661 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_Construct,
662 int64 /* ppp_class */,
663 int64 /* object */,
664 std::vector<ppapi::proxy::SerializedVar> /* args */,
665 ppapi::proxy::SerializedVar /* out_exception */,
666 ppapi::proxy::SerializedVar /* result */)
667 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate,
668 int64 /* ppp_class */,
669 int64 /* object */)
671 // PPP_Graphics3D_Dev.
672 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPGraphics3D_ContextLost,
673 PP_Instance /* instance */)
675 // PPP_InputEvent.
676 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInputEvent_HandleInputEvent,
677 PP_Instance /* instance */,
678 ppapi::InputEventData /* data */)
679 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInputEvent_HandleFilteredInputEvent,
680 PP_Instance /* instance */,
681 ppapi::InputEventData /* data */,
682 PP_Bool /* result */)
684 // PPP_Instance.
685 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate,
686 PP_Instance /* instance */,
687 std::vector<std::string> /* argn */,
688 std::vector<std::string> /* argv */,
689 PP_Bool /* result */)
690 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiMsg_PPPInstance_DidDestroy,
691 PP_Instance /* instance */)
692 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_DidChangeView,
693 PP_Instance /* instance */,
694 ppapi::ViewData /* new_data */,
695 PP_Bool /* flash_fullscreen */)
696 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus,
697 PP_Instance /* instance */,
698 PP_Bool /* has_focus */)
699 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_HandleDocumentLoad,
700 PP_Instance /* instance */,
701 int /* pending_loader_host_id */,
702 ppapi::URLResponseInfoData /* response */)
704 // PPP_Messaging and PPP_MessageHandler.
705 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPMessaging_HandleMessage,
706 PP_Instance /* instance */,
707 ppapi::proxy::SerializedVar /* message */)
708 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiMsg_PPPMessageHandler_HandleBlockingMessage,
709 PP_Instance /* instance */,
710 ppapi::proxy::SerializedVar /* message */,
711 ppapi::proxy::SerializedVar /* result */,
712 bool /* was_handled */)
714 // PPP_MouseLock.
715 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPMouseLock_MouseLockLost,
716 PP_Instance /* instance */)
718 // PPP_Pdf
719 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPPdf_Rotate,
720 PP_Instance /* instance */,
721 bool /* clockwise */)
722 IPC_SYNC_MESSAGE_ROUTED1_2(
723 PpapiMsg_PPPPdf_PrintPresetOptions,
724 PP_Instance /* instance */,
725 PP_PdfPrintPresetOptions_Dev /* print preset options */,
726 PP_Bool /* result */)
728 // Find
729 IPC_MESSAGE_ROUTED2(PpapiPluginMsg_PPPFind_StartFind,
730 PP_Instance /* instance */,
731 std::string /* text */)
732 IPC_MESSAGE_ROUTED2(PpapiPluginMsg_PPPFind_SelectFindResult,
733 PP_Instance /* instance */,
734 PP_Bool /* forward */)
735 IPC_MESSAGE_ROUTED1(PpapiPluginMsg_PPPFind_StopFind,
736 PP_Instance /* instance */)
738 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_SetPluginToHandleFindRequests,
739 PP_Instance /* instance */)
740 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_NumberOfFindResultsChanged,
741 PP_Instance /* instance */,
742 int32_t /* total */,
743 PP_Bool /* final_result */)
744 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SelectFindResultChanged,
745 PP_Instance /* instance */,
746 int32_t /* index */)
747 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SetTickmarks,
748 PP_Instance /* instance */,
749 std::vector<PP_Rect> /* tickmarks */)
751 // PPP_Printing
752 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_QuerySupportedFormats,
753 PP_Instance /* instance */,
754 uint32_t /* result */)
755 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_Begin,
756 PP_Instance /* instance */,
757 std::string /* settings_string */,
758 int32_t /* result */)
759 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_PrintPages,
760 PP_Instance /* instance */,
761 std::vector<PP_PrintPageNumberRange_Dev> /* pages */,
762 ppapi::HostResource /* result */)
763 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPPrinting_End,
764 PP_Instance /* instance */)
765 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_IsScalingDisabled,
766 PP_Instance /* instance */,
767 bool /* result */)
769 // PPP_TextInput.
770 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPTextInput_RequestSurroundingText,
771 PP_Instance /* instance */,
772 uint32_t /* desired_number_of_characters */)
774 #if !defined(OS_NACL) && !defined(NACL_WIN64)
775 // PPB_Broker.
776 IPC_MESSAGE_ROUTED3(
777 PpapiMsg_PPBBroker_ConnectComplete,
778 ppapi::HostResource /* broker */,
779 IPC::PlatformFileForTransit /* handle */,
780 int32_t /* result */)
782 // PPP_ContentDecryptor_Dev
783 IPC_MESSAGE_ROUTED5(PpapiMsg_PPPContentDecryptor_Initialize,
784 PP_Instance /* instance */,
785 uint32_t /* promise_id */,
786 ppapi::proxy::SerializedVar /* key_system, String */,
787 PP_Bool /* allow_distinctive_identifier */,
788 PP_Bool /* allow_persistent_state */)
789 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_SetServerCertificate,
790 PP_Instance /* instance */,
791 uint32_t /* promise_id */,
792 std::vector<uint8_t> /* certificate */)
793 IPC_MESSAGE_ROUTED5(
794 PpapiMsg_PPPContentDecryptor_CreateSessionAndGenerateRequest,
795 PP_Instance /* instance */,
796 uint32_t /* promise_id */,
797 PP_SessionType /* session_type */,
798 PP_InitDataType /* init_data_type */,
799 ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */)
800 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_LoadSession,
801 PP_Instance /* instance */,
802 uint32_t /* promise_id */,
803 PP_SessionType /* session_type */,
804 ppapi::proxy::SerializedVar /* session_id, String */)
805 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_UpdateSession,
806 PP_Instance /* instance */,
807 uint32_t /* promise_id */,
808 ppapi::proxy::SerializedVar /* session_id, String */,
809 ppapi::proxy::SerializedVar /* response, ArrayBuffer */)
810 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_CloseSession,
811 PP_Instance /* instance */,
812 uint32_t /* promise_id */,
813 std::string /* session_id */)
814 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_RemoveSession,
815 PP_Instance /* instance */,
816 uint32_t /* promise_id */,
817 std::string /* session_id */)
818 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_Decrypt,
819 PP_Instance /* instance */,
820 ppapi::proxy::PPPDecryptor_Buffer /* buffer */,
821 std::string /* serialized_block_info */)
822 IPC_MESSAGE_ROUTED3(
823 PpapiMsg_PPPContentDecryptor_InitializeAudioDecoder,
824 PP_Instance /* instance */,
825 std::string /* serialized_decoder_config */,
826 ppapi::proxy::PPPDecryptor_Buffer /* extra_data_buffer */)
827 IPC_MESSAGE_ROUTED3(
828 PpapiMsg_PPPContentDecryptor_InitializeVideoDecoder,
829 PP_Instance /* instance */,
830 std::string /* serialized_decoder_config */,
831 ppapi::proxy::PPPDecryptor_Buffer /* extra_data_buffer. */)
832 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_DeinitializeDecoder,
833 PP_Instance /* instance */,
834 PP_DecryptorStreamType /* decoder_type */,
835 uint32_t /* request_id */)
836 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_ResetDecoder,
837 PP_Instance /* instance */,
838 PP_DecryptorStreamType /* decoder_type */,
839 uint32_t /* request_id */)
840 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_DecryptAndDecode,
841 PP_Instance /* instance */,
842 PP_DecryptorStreamType /* decoder_type */,
843 ppapi::proxy::PPPDecryptor_Buffer /* buffer */,
844 std::string /* serialized_block_info */)
846 // PPP_Instance_Private.
847 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject,
848 PP_Instance /* instance */,
849 ppapi::proxy::SerializedVar /* result */)
851 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
853 // Reports to the browser that a plugin has been active.
854 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Keepalive)
856 // -----------------------------------------------------------------------------
857 // These are from the plugin to the renderer.
859 // Reply to PpapiMsg_CreateChannel. The handle will be NULL if the channel
860 // could not be established. This could be because the IPC could not be created
861 // for some weird reason, but more likely that the plugin failed to load or
862 // initialize properly.
863 IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated,
864 IPC::ChannelHandle /* handle */)
866 // Notify the renderer that the PPAPI channel gets ready in the plugin.
867 IPC_MESSAGE_CONTROL0(PpapiHostMsg_StartupInitializationComplete)
869 // Calls renderer to open a resource file for nacl_irt_open_resource().
870 IPC_SYNC_MESSAGE_CONTROL1_3(PpapiHostMsg_OpenResource,
871 std::string /* key */,
872 ppapi::proxy::SerializedHandle /* fd */,
873 uint64_t /* file_token_lo */,
874 uint64_t /* file_token_hi */)
876 // Logs the given message to the console of all instances.
877 IPC_MESSAGE_CONTROL4(PpapiHostMsg_LogWithSource,
878 PP_Instance /* instance */,
879 int /* log_level */,
880 std::string /* source */,
881 std::string /* value */)
883 // PPB_Audio.
884 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudio_Create,
885 PP_Instance /* instance_id */,
886 int32_t /* sample_rate */,
887 uint32_t /* sample_frame_count */,
888 ppapi::HostResource /* result */)
889 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop,
890 ppapi::HostResource /* audio_id */,
891 bool /* play */)
893 // PPB_Core.
894 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource,
895 ppapi::HostResource)
896 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource,
897 ppapi::HostResource)
899 // PPB_Graphics3D.
900 IPC_SYNC_MESSAGE_ROUTED3_3(PpapiHostMsg_PPBGraphics3D_Create,
901 PP_Instance /* instance */,
902 ppapi::HostResource /* share_context */,
903 std::vector<int32_t> /* attrib_list */,
904 ppapi::HostResource /* result */,
905 gpu::Capabilities /* capabilities */,
906 ppapi::proxy::SerializedHandle /* shared_state */)
907 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer,
908 ppapi::HostResource /* context */,
909 int32 /* transfer_buffer_id */)
910 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBGraphics3D_WaitForTokenInRange,
911 ppapi::HostResource /* context */,
912 int32 /* start */,
913 int32 /* end */,
914 gpu::CommandBuffer::State /* state */,
915 bool /* success */)
916 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBGraphics3D_WaitForGetOffsetInRange,
917 ppapi::HostResource /* context */,
918 int32 /* start */,
919 int32 /* end */,
920 gpu::CommandBuffer::State /* state */,
921 bool /* success */)
922 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics3D_AsyncFlush,
923 ppapi::HostResource /* context */,
924 int32 /* put_offset */)
925 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer,
926 ppapi::HostResource /* context */,
927 uint32 /* size */,
928 int32 /* id */,
929 ppapi::proxy::SerializedHandle /* transfer_buffer */)
930 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer,
931 ppapi::HostResource /* context */,
932 int32 /* id */)
933 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics3D_SwapBuffers,
934 ppapi::HostResource /* graphics_3d */)
935 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBGraphics3D_InsertSyncPoint,
936 ppapi::HostResource /* context */,
937 uint32 /* sync_point */)
938 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBGraphics3D_InsertFutureSyncPoint,
939 ppapi::HostResource /* context */,
940 uint32 /* sync_point */)
941 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics3D_RetireSyncPoint,
942 ppapi::HostResource /* context */,
943 uint32 /* sync_point */)
945 // PPB_ImageData.
946 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_CreatePlatform,
947 PP_Instance /* instance */,
948 int32 /* format */,
949 PP_Size /* size */,
950 PP_Bool /* init_to_zero */,
951 ppapi::HostResource /* result_resource */,
952 PP_ImageDataDesc /* image_data_desc */,
953 ppapi::proxy::ImageHandle /* result */)
954 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_CreateSimple,
955 PP_Instance /* instance */,
956 int32 /* format */,
957 PP_Size /* size */,
958 PP_Bool /* init_to_zero */,
959 ppapi::HostResource /* result_resource */,
960 PP_ImageDataDesc /* image_data_desc */,
961 ppapi::proxy::SerializedHandle /* result */)
963 // PPB_Instance.
964 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject,
965 PP_Instance /* instance */,
966 ppapi::proxy::SerializedVar /* result */)
967 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject,
968 PP_Instance /* instance */,
969 ppapi::proxy::SerializedVar /* result */)
970 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_BindGraphics,
971 PP_Instance /* instance */,
972 PP_Resource /* device */)
973 IPC_SYNC_MESSAGE_ROUTED1_1(
974 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputSampleRate,
975 PP_Instance /* instance */,
976 uint32_t /* result */)
977 IPC_SYNC_MESSAGE_ROUTED1_1(
978 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputBufferSize,
979 PP_Instance /* instance */,
980 uint32_t /* result */)
981 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_IsFullFrame,
982 PP_Instance /* instance */,
983 PP_Bool /* result */)
984 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBInstance_ExecuteScript,
985 PP_Instance /* instance */,
986 ppapi::proxy::SerializedVar /* script */,
987 ppapi::proxy::SerializedVar /* out_exception */,
988 ppapi::proxy::SerializedVar /* result */)
989 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetDefaultCharSet,
990 PP_Instance /* instance */,
991 ppapi::proxy::SerializedVar /* result */)
992 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_SetFullscreen,
993 PP_Instance /* instance */,
994 PP_Bool /* fullscreen */,
995 PP_Bool /* result */)
996 IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetScreenSize,
997 PP_Instance /* instance */,
998 PP_Bool /* result */,
999 PP_Size /* size */)
1000 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_RequestInputEvents,
1001 PP_Instance /* instance */,
1002 bool /* is_filtering */,
1003 uint32_t /* event_classes */)
1004 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_ClearInputEvents,
1005 PP_Instance /* instance */,
1006 uint32_t /* event_classes */)
1007 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PostMessage,
1008 PP_Instance /* instance */,
1009 ppapi::proxy::SerializedVar /* message */)
1010 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_LockMouse,
1011 PP_Instance /* instance */)
1012 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_UnlockMouse,
1013 PP_Instance /* instance */)
1014 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_ResolveRelativeToDocument,
1015 PP_Instance /* instance */,
1016 ppapi::proxy::SerializedVar /* relative */,
1017 ppapi::proxy::SerializedVar /* result */)
1018 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanRequest,
1019 PP_Instance /* instance */,
1020 ppapi::proxy::SerializedVar /* relative */,
1021 PP_Bool /* result */)
1022 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanAccessDocument,
1023 PP_Instance /* active */,
1024 PP_Instance /* target */,
1025 PP_Bool /* result */)
1026 IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetDocumentURL,
1027 PP_Instance /* active */,
1028 PP_URLComponents_Dev /* components */,
1029 ppapi::proxy::SerializedVar /* result */)
1030 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetPluginInstanceURL,
1031 PP_Instance /* active */,
1032 ppapi::proxy::SerializedVar /* result */)
1033 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetPluginReferrerURL,
1034 PP_Instance /* instance */,
1035 ppapi::proxy::SerializedVar /* result */)
1036 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SetCursor,
1037 PP_Instance /* instance */,
1038 int32_t /* type */,
1039 ppapi::HostResource /* custom_image */,
1040 PP_Point /* hot_spot */)
1041 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SetTextInputType,
1042 PP_Instance /* instance */,
1043 PP_TextInput_Type /* type */)
1044 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_UpdateCaretPosition,
1045 PP_Instance /* instance */,
1046 PP_Rect /* caret */,
1047 PP_Rect /* bounding_box */)
1048 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_CancelCompositionText,
1049 PP_Instance /* instance */)
1050 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_UpdateSurroundingText,
1051 PP_Instance /* instance */,
1052 std::string /* text */,
1053 uint32_t /* caret */,
1054 uint32_t /* anchor */)
1056 // PPB_Var.
1057 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVar_AddRefObject,
1058 int64 /* object_id */)
1059 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_ReleaseObject,
1060 int64 /* object_id */)
1061 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasProperty,
1062 ppapi::proxy::SerializedVar /* object */,
1063 ppapi::proxy::SerializedVar /* property */,
1064 ppapi::proxy::SerializedVar /* out_exception */,
1065 PP_Bool /* result */)
1066 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasMethodDeprecated,
1067 ppapi::proxy::SerializedVar /* object */,
1068 ppapi::proxy::SerializedVar /* method */,
1069 ppapi::proxy::SerializedVar /* out_exception */,
1070 PP_Bool /* result */)
1071 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_GetProperty,
1072 ppapi::proxy::SerializedVar /* object */,
1073 ppapi::proxy::SerializedVar /* property */,
1074 ppapi::proxy::SerializedVar /* out_exception */,
1075 ppapi::proxy::SerializedVar /* result */)
1076 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_DeleteProperty,
1077 ppapi::proxy::SerializedVar /* object */,
1078 ppapi::proxy::SerializedVar /* property */,
1079 ppapi::proxy::SerializedVar /* out_exception */,
1080 PP_Bool /* result */)
1081 IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBVar_EnumerateProperties,
1082 ppapi::proxy::SerializedVar /* object */,
1083 std::vector<ppapi::proxy::SerializedVar> /* props */,
1084 ppapi::proxy::SerializedVar /* out_exception */)
1085 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_SetPropertyDeprecated,
1086 ppapi::proxy::SerializedVar /* object */,
1087 ppapi::proxy::SerializedVar /* name */,
1088 ppapi::proxy::SerializedVar /* value */,
1089 ppapi::proxy::SerializedVar /* out_exception */)
1090 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_CallDeprecated,
1091 ppapi::proxy::SerializedVar /* object */,
1092 ppapi::proxy::SerializedVar /* method_name */,
1093 std::vector<ppapi::proxy::SerializedVar> /* args */,
1094 ppapi::proxy::SerializedVar /* out_exception */,
1095 ppapi::proxy::SerializedVar /* result */)
1096 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_Construct,
1097 ppapi::proxy::SerializedVar /* object */,
1098 std::vector<ppapi::proxy::SerializedVar> /* args */,
1099 ppapi::proxy::SerializedVar /* out_exception */,
1100 ppapi::proxy::SerializedVar /* result */)
1101 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated,
1102 ppapi::proxy::SerializedVar /* var */,
1103 int64 /* object_class */,
1104 int64 /* object-data */,
1105 PP_Bool /* result */)
1106 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated,
1107 PP_Instance /* instance */,
1108 int64 /* object_class */,
1109 int64 /* object_data */,
1110 ppapi::proxy::SerializedVar /* result */)
1112 #if !defined(OS_NACL) && !defined(NACL_WIN64)
1113 // PPB_Broker.
1114 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBBroker_Create,
1115 PP_Instance /* instance */,
1116 ppapi::HostResource /* result_resource */)
1117 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBBroker_Connect,
1118 ppapi::HostResource /* broker */)
1120 // PPB_Buffer.
1121 IPC_SYNC_MESSAGE_ROUTED2_2(
1122 PpapiHostMsg_PPBBuffer_Create,
1123 PP_Instance /* instance */,
1124 uint32_t /* size */,
1125 ppapi::HostResource /* result_resource */,
1126 ppapi::proxy::SerializedHandle /* result_shm_handle */)
1128 // PPB_ContentDecryptor_Dev messages handled in PPB_Instance_Proxy.
1129 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PromiseResolved,
1130 PP_Instance /* instance */,
1131 uint32_t /* promise_id */)
1132 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_PromiseResolvedWithSession,
1133 PP_Instance /* instance */,
1134 uint32_t /* promise_id */,
1135 ppapi::proxy::SerializedVar /* session_id, String */)
1136 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_PromiseRejected,
1137 PP_Instance /* instance */,
1138 uint32_t /* promise_id */,
1139 PP_CdmExceptionCode /* exception_code */,
1140 int32_t /* system_code */,
1141 ppapi::proxy::SerializedVar /* error_description, String */)
1142 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_SessionMessage,
1143 PP_Instance /* instance */,
1144 ppapi::proxy::SerializedVar /* session_id, String */,
1145 PP_CdmMessageType /* message_type */,
1146 ppapi::proxy::SerializedVar /* message, ArrayBuffer */,
1147 ppapi::proxy::SerializedVar /* destination_url, String */)
1148 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SessionKeysChange,
1149 PP_Instance /* instance */,
1150 std::string /* session_id */,
1151 PP_Bool /* has_additional_usable_key */,
1152 std::vector<PP_KeyInformation> /* key_information */)
1153 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_SessionExpirationChange,
1154 PP_Instance /* instance */,
1155 std::string /* session_id */,
1156 PP_Time /* new_expiry_time */)
1157 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SessionClosed,
1158 PP_Instance /* instance */,
1159 ppapi::proxy::SerializedVar /* session_id, String */)
1160 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_LegacySessionError,
1161 PP_Instance /* instance */,
1162 ppapi::proxy::SerializedVar /* session_id, String */,
1163 PP_CdmExceptionCode /* exception_code */,
1164 int32_t /* system_code */,
1165 ppapi::proxy::SerializedVar /* error_description, String */)
1166 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverBlock,
1167 PP_Instance /* instance */,
1168 PP_Resource /* decrypted_block, PPB_Buffer_Dev */,
1169 std::string /* serialized_block_info */)
1170 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_DecoderInitializeDone,
1171 PP_Instance /* instance */,
1172 PP_DecryptorStreamType /* decoder_type */,
1173 uint32_t /* request_id */,
1174 PP_Bool /* success */)
1175 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DecoderDeinitializeDone,
1176 PP_Instance /* instance */,
1177 PP_DecryptorStreamType /* decoder_type */,
1178 uint32_t /* request_id */)
1179 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DecoderResetDone,
1180 PP_Instance /* instance */,
1181 PP_DecryptorStreamType /* decoder_type */,
1182 uint32_t /* request_id */)
1183 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverFrame,
1184 PP_Instance /* instance */,
1185 PP_Resource /* decrypted_frame, PPB_Buffer_Dev */,
1186 std::string /* serialized_block_info */)
1187 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverSamples,
1188 PP_Instance /* instance */,
1189 PP_Resource /* audio_frames, PPB_Buffer_Dev */,
1190 std::string /* serialized_block_info */)
1191 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
1193 // PPB_Testing.
1194 IPC_SYNC_MESSAGE_ROUTED3_1(
1195 PpapiHostMsg_PPBTesting_ReadImageData,
1196 ppapi::HostResource /* device_context_2d */,
1197 ppapi::HostResource /* image */,
1198 PP_Point /* top_left */,
1199 PP_Bool /* result */)
1200 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance,
1201 PP_Instance /* instance */,
1202 uint32 /* result */)
1203 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBTesting_PostPowerSaverStatus,
1204 PP_Instance /* instance */)
1205 IPC_SYNC_MESSAGE_ROUTED1_0(
1206 PpapiHostMsg_PPBTesting_SubscribeToPowerSaverNotifications,
1207 PP_Instance /* instance */)
1208 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTesting_SimulateInputEvent,
1209 PP_Instance /* instance */,
1210 ppapi::InputEventData /* input_event */)
1211 IPC_SYNC_MESSAGE_ROUTED1_0(
1212 PpapiHostMsg_PPBTesting_SetMinimumArrayBufferSizeForShmem,
1213 uint32_t /* threshold */)
1215 #if !defined(OS_NACL) && !defined(NACL_WIN64)
1217 // PPB_VideoDecoder_Dev.
1218 // (Messages from plugin to renderer.)
1219 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVideoDecoder_Create,
1220 PP_Instance /* instance */,
1221 ppapi::HostResource /* context */,
1222 PP_VideoDecoder_Profile /* profile */,
1223 ppapi::HostResource /* result */)
1224 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoDecoder_Decode,
1225 ppapi::HostResource /* video_decoder */,
1226 ppapi::HostResource /* bitstream buffer */,
1227 int32 /* bitstream buffer id */,
1228 uint32 /* size of buffer */)
1229 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_AssignPictureBuffers,
1230 ppapi::HostResource /* video_decoder */,
1231 std::vector<PP_PictureBuffer_Dev> /* picture buffers */)
1232 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer,
1233 ppapi::HostResource /* video_decoder */,
1234 int32_t /* picture buffer id */)
1235 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush,
1236 ppapi::HostResource /* video_decoder */)
1237 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset,
1238 ppapi::HostResource /* video_decoder */)
1239 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy,
1240 ppapi::HostResource /* video_decoder */)
1242 // PPB_VideoDecoder_Dev.
1243 // (Messages from renderer to plugin to notify it to run callbacks.)
1244 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK,
1245 ppapi::HostResource /* video_decoder */,
1246 int32_t /* bitstream buffer id */,
1247 int32_t /* PP_CompletionCallback result */)
1248 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_FlushACK,
1249 ppapi::HostResource /* video_decoder */,
1250 int32_t /* PP_CompletionCallback result */)
1251 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_ResetACK,
1252 ppapi::HostResource /* video_decoder */,
1253 int32_t /* PP_CompletionCallback result */)
1255 // PPP_VideoDecoder_Dev.
1256 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPVideoDecoder_ProvidePictureBuffers,
1257 ppapi::HostResource /* video_decoder */,
1258 uint32_t /* requested number of buffers */,
1259 PP_Size /* dimensions of buffers */,
1260 uint32_t /* texture_target */)
1261 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_DismissPictureBuffer,
1262 ppapi::HostResource /* video_decoder */,
1263 int32_t /* picture buffer id */)
1264 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_PictureReady,
1265 ppapi::HostResource /* video_decoder */,
1266 PP_Picture_Dev /* output picture */)
1267 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_NotifyError,
1268 ppapi::HostResource /* video_decoder */,
1269 PP_VideoDecodeError_Dev /* error */)
1270 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
1272 // PPB_X509Certificate_Private
1273 IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER,
1274 std::vector<char> /* der */,
1275 bool /* succeeded */,
1276 ppapi::PPB_X509Certificate_Fields /* result */)
1278 //-----------------------------------------------------------------------------
1279 // Resource call/reply messages.
1281 // These are the new-style resource implementations where the resource is only
1282 // implemented in the proxy and "resource messages" are sent between this and a
1283 // host object. Resource messages are a wrapper around some general routing
1284 // information and a separate message of a type defined by the specific resource
1285 // sending/receiving it. The extra paremeters allow the nested message to be
1286 // routed automatically to the correct resource.
1288 // Notification that a resource has been created in the plugin. The nested
1289 // message will be resource-type-specific.
1290 IPC_MESSAGE_CONTROL3(PpapiHostMsg_ResourceCreated,
1291 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1292 PP_Instance /* instance */,
1293 IPC::Message /* nested_msg */)
1295 // Notification that a resource has been destroyed in the plugin.
1296 IPC_MESSAGE_CONTROL1(PpapiHostMsg_ResourceDestroyed,
1297 PP_Resource /* resource */)
1299 // Most resources are created by the plugin, which then sends a ResourceCreated
1300 // message to create a corresponding ResourceHost in the renderer or browser
1301 // host process. However, some resources are first created in the host and
1302 // "pushed" or returned to the plugin.
1304 // In this case, the host will create a "pending" ResourceHost object which
1305 // is identified by an ID. The ID is sent to the plugin process and the
1306 // PluginResource object is created. This message is sent from the plugin to
1307 // the host process to connect the PluginResource and the pending ResourceHost
1308 // (at which point, it's no longer pending).
1309 IPC_MESSAGE_CONTROL2(PpapiHostMsg_AttachToPendingHost,
1310 PP_Resource /* resource */,
1311 int /* pending_host_id */)
1313 // A resource call is a request from the plugin to the host. It may or may not
1314 // require a reply, depending on the params. The nested message will be
1315 // resource-type-specific.
1316 IPC_MESSAGE_CONTROL2(PpapiHostMsg_ResourceCall,
1317 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1318 IPC::Message /* nested_msg */)
1319 IPC_MESSAGE_CONTROL3(PpapiHostMsg_InProcessResourceCall,
1320 int /* routing_id */,
1321 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1322 IPC::Message /* nested_msg */)
1324 // A resource reply is a response to a ResourceCall from a host to the
1325 // plugin. The resource ID + sequence number in the params will correspond to
1326 // that of the previous ResourceCall.
1327 IPC_MESSAGE_CONTROL2(
1328 PpapiPluginMsg_ResourceReply,
1329 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1330 IPC::Message /* nested_msg */)
1331 IPC_MESSAGE_ROUTED2(
1332 PpapiHostMsg_InProcessResourceReply,
1333 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1334 IPC::Message /* nested_msg */)
1336 IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_ResourceSyncCall,
1337 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1338 IPC::Message /* nested_msg */,
1339 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1340 IPC::Message /* reply_msg */)
1342 // This message is sent from the renderer to the browser when it wants to create
1343 // ResourceHosts in the browser. It contains the process ID of the plugin and
1344 // the instance of the plugin for which to create the resource for. params
1345 // contains the sequence number for the message to track the response.
1346 // The nested messages are ResourceHost creation messages.
1347 IPC_MESSAGE_CONTROL5(
1348 PpapiHostMsg_CreateResourceHostsFromHost,
1349 int /* routing_id */,
1350 int /* child_process_id */,
1351 ppapi::proxy::ResourceMessageCallParams /* params */,
1352 PP_Instance /* instance */,
1353 std::vector<IPC::Message> /* nested_msgs */)
1355 // This message is sent from the browser to the renderer when it has created
1356 // ResourceHosts for the renderer. It contains the sequence number that was sent
1357 // in the request and the IDs of the pending ResourceHosts which were created in
1358 // the browser. These IDs are only useful for the plugin which can attach to the
1359 // ResourceHosts in the browser.
1360 IPC_MESSAGE_ROUTED2(
1361 PpapiHostMsg_CreateResourceHostsFromHostReply,
1362 int32_t /* sequence */,
1363 std::vector<int> /* pending_host_ids */)
1365 //-----------------------------------------------------------------------------
1366 // Messages for resources using call/reply above.
1368 // Broker ----------------------------------------------------------------------
1369 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_Create)
1371 // Queries whether the plugin has permission to connect to the Pepper broker.
1372 // The response is contained in the error value of the
1373 // ResourceMessageReplyParams in the reply message.
1374 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_IsAllowed)
1376 // UMA
1377 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UMA_Create)
1378 IPC_MESSAGE_CONTROL5(PpapiHostMsg_UMA_HistogramCustomTimes,
1379 std::string /* name */,
1380 int64_t /* sample */,
1381 int64_t /* min */,
1382 int64_t /* max */,
1383 uint32_t /* bucket_count */)
1384 IPC_MESSAGE_CONTROL5(PpapiHostMsg_UMA_HistogramCustomCounts,
1385 std::string /* name */,
1386 int32_t /* sample */,
1387 int32_t /* min */,
1388 int32_t /* max */,
1389 uint32_t /* bucket_count */)
1390 IPC_MESSAGE_CONTROL3(PpapiHostMsg_UMA_HistogramEnumeration,
1391 std::string /* name */,
1392 int32_t /* sample */,
1393 int32_t /* boundary_value */)
1394 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UMA_IsCrashReportingEnabled)
1395 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UMA_IsCrashReportingEnabledReply)
1397 // Compositor
1398 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Compositor_Create)
1399 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Compositor_CommitLayers,
1400 std::vector<ppapi::CompositorLayerData> /* layers */,
1401 bool /* reset */)
1402 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Compositor_CommitLayersReply)
1403 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_Compositor_ReleaseResource,
1404 int32_t /* id */,
1405 uint32_t /* sync_point */,
1406 bool /* is_lost */)
1408 // File chooser.
1409 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create)
1410 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show,
1411 bool /* save_as */,
1412 bool /* open_multiple */,
1413 std::string /* suggested_file_name */,
1414 std::vector<std::string> /* accept_mime_types */)
1415 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply,
1416 std::vector<ppapi::FileRefCreateInfo> /* files */)
1418 // FileIO
1419 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Create)
1420 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Open,
1421 PP_Resource /* file_ref_resource */,
1422 int32_t /* open_flags */)
1423 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileIO_OpenReply,
1424 PP_Resource /* quota_file_system */,
1425 int64_t /* file_size */)
1426 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_Close,
1427 ppapi::FileGrowth /* file_growth */)
1428 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Touch,
1429 PP_Time /* last_access_time */,
1430 PP_Time /* last_modified_time */)
1431 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_SetLength,
1432 int64_t /* length */)
1433 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Flush)
1434 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_RequestOSFileHandle)
1435 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_RequestOSFileHandleReply)
1436 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_GeneralReply)
1438 // FileRef
1439 // Creates a FileRef to a path on an external file system. This message may
1440 // only be sent from the renderer.
1441 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileRef_CreateForRawFS,
1442 base::FilePath /* external_path */)
1444 // Creates a FileRef to a path on a file system that uses fileapi.
1445 // This message may be sent from the renderer or the plugin.
1446 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileRef_CreateForFileAPI,
1447 PP_Resource /* file_system */,
1448 std::string /* internal_path */)
1450 // Requests that the browser create a directory at the location indicated by
1451 // the FileRef.
1452 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileRef_MakeDirectory,
1453 int32_t /* make_directory_flags */)
1454 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileRef_MakeDirectoryReply)
1456 // Requests that the browser update the last accessed and last modified times
1457 // at the location indicated by the FileRef.
1458 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileRef_Touch,
1459 PP_Time /* last_accessed */,
1460 PP_Time /* last_modified */)
1461 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileRef_TouchReply)
1463 // Requests that the browser delete a file or directory at the location
1464 // indicated by the FileRef.
1465 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_Delete)
1466 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileRef_DeleteReply)
1468 // Requests that the browser rename a file or directory at the location
1469 // indicated by the FileRef.
1470 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileRef_Rename,
1471 PP_Resource /* new_file_ref */)
1472 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileRef_RenameReply)
1474 // Requests that the browser retrieve metadata information for a file or
1475 // directory at the location indicated by the FileRef.
1476 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_Query)
1477 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileRef_QueryReply,
1478 PP_FileInfo /* file_info */)
1480 // Requests that the browser retrieve then entries in a directory at the
1481 // location indicated by the FileRef.
1482 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_ReadDirectoryEntries)
1484 // FileRefCreateInfo does not provide file type information, so two
1485 // corresponding vectors are returned.
1486 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileRef_ReadDirectoryEntriesReply,
1487 std::vector<ppapi::FileRefCreateInfo> /* files */,
1488 std::vector<PP_FileType> /* file_types */)
1490 // Requests that the browser reply with the absolute path to the indicated
1491 // file.
1492 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_GetAbsolutePath)
1493 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileRef_GetAbsolutePathReply,
1494 std::string /* absolute_path */)
1496 // FileSystem
1497 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileSystem_Create,
1498 PP_FileSystemType /* type */)
1499 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileSystem_Open,
1500 int64_t /* expected_size */)
1501 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileSystem_OpenReply)
1502 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_InitIsolatedFileSystem,
1503 std::string /* fsid */,
1504 PP_IsolatedFileSystemType_Private /* type */)
1505 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileSystem_InitIsolatedFileSystemReply)
1506 // Passed from renderer to browser. Creates an already-open file system with a
1507 // given |root_url| and |file_system_type|.
1508 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_CreateFromRenderer,
1509 std::string /* root_url */,
1510 PP_FileSystemType /* file_system_type */)
1511 // Nested within a ResourceVar for file systems being passed from the renderer
1512 // to the plugin. Creates an already-open file system resource on the plugin,
1513 // linked to the existing resource host given in the ResourceVar.
1514 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileSystem_CreateFromPendingHost,
1515 PP_FileSystemType /* file_system_type */)
1516 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_ReserveQuota,
1517 int64_t /* amount */,
1518 ppapi::FileGrowthMap /* file_growths */)
1519 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileSystem_ReserveQuotaReply,
1520 int64_t /* amount */,
1521 ppapi::FileSizeMap /* file_sizes */)
1523 // Gamepad.
1524 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create)
1526 // Requests that the gamepad host send the shared memory handle to the plugin
1527 // process.
1528 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_RequestMemory)
1530 // Reply to a RequestMemory call. This supplies the shared memory handle. The
1531 // actual handle is passed in the ReplyParams struct.
1532 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Gamepad_SendMemory)
1535 // Graphics2D, plugin -> host
1536 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_Create,
1537 PP_Size /* size */,
1538 PP_Bool /* is_always_opaque */)
1539 IPC_MESSAGE_CONTROL4(PpapiHostMsg_Graphics2D_PaintImageData,
1540 ppapi::HostResource /* image_data */,
1541 PP_Point /* top_left */,
1542 bool /* src_rect_specified */,
1543 PP_Rect /* src_rect */)
1544 IPC_MESSAGE_CONTROL3(PpapiHostMsg_Graphics2D_Scroll,
1545 bool /* clip_specified */,
1546 PP_Rect /* clip */,
1547 PP_Point /* amount */)
1548 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_ReplaceContents,
1549 ppapi::HostResource /* image_data */)
1550 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_SetScale,
1551 float /* scale */)
1553 // Graphics2D, plugin -> host -> plugin
1554 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Graphics2D_Flush)
1555 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_FlushAck)
1557 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_ReadImageData,
1558 PP_Resource /* image */,
1559 PP_Point /* top_left */)
1560 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck)
1562 // CameraDevice ----------------------------------------------------------------
1563 IPC_MESSAGE_CONTROL0(PpapiHostMsg_CameraDevice_Create)
1564 IPC_MESSAGE_CONTROL0(PpapiHostMsg_CameraDevice_Close)
1566 IPC_MESSAGE_CONTROL1(PpapiHostMsg_CameraDevice_Open,
1567 std::string /* camera_source_id */)
1568 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_CameraDevice_OpenReply)
1570 IPC_MESSAGE_CONTROL0(
1571 PpapiHostMsg_CameraDevice_GetSupportedVideoCaptureFormats)
1572 IPC_MESSAGE_CONTROL1(
1573 PpapiPluginMsg_CameraDevice_GetSupportedVideoCaptureFormatsReply,
1574 std::vector<PP_VideoCaptureFormat> /* video_capture_formats */)
1576 // IsolatedFileSystem ----------------------------------------------------------
1577 IPC_MESSAGE_CONTROL0(PpapiHostMsg_IsolatedFileSystem_Create)
1578 IPC_MESSAGE_CONTROL1(PpapiHostMsg_IsolatedFileSystem_BrowserOpen,
1579 PP_IsolatedFileSystemType_Private /* type */)
1580 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_IsolatedFileSystem_BrowserOpenReply,
1581 std::string /* fsid */)
1583 // MediaStream -----------------------------------------------------------------
1584 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamAudioTrack_CreateFromPendingHost,
1585 std::string /* track_id */)
1586 IPC_MESSAGE_CONTROL1(
1587 PpapiHostMsg_MediaStreamAudioTrack_Configure,
1588 ppapi::MediaStreamAudioTrackShared::Attributes /* attributes */)
1589 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_MediaStreamAudioTrack_ConfigureReply)
1590 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamVideoTrack_CreateFromPendingHost,
1591 std::string /* track_id */)
1592 IPC_MESSAGE_CONTROL0(PpapiHostMsg_MediaStreamVideoTrack_Create)
1593 IPC_MESSAGE_CONTROL1(
1594 PpapiHostMsg_MediaStreamVideoTrack_Configure,
1595 ppapi::MediaStreamVideoTrackShared::Attributes /* attributes */)
1596 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamVideoTrack_ConfigureReply,
1597 std::string /* track_id */)
1599 // Message for init buffers. It also takes a shared memory handle which is put
1600 // in the outer ResourceReplyMessage.
1601 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_MediaStreamTrack_InitBuffers,
1602 int32_t /* number_of_buffers */,
1603 int32_t /* buffer_size */,
1604 bool /* readonly */)
1605 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamTrack_EnqueueBuffer,
1606 int32_t /* index */)
1607 IPC_MESSAGE_CONTROL1(PpapiHostMsg_MediaStreamTrack_EnqueueBuffer,
1608 int32_t /* index */)
1609 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamTrack_EnqueueBuffers,
1610 std::vector<int32_t> /* indices */)
1611 IPC_MESSAGE_CONTROL0(PpapiHostMsg_MediaStreamTrack_Close)
1613 // NetworkMonitor.
1614 IPC_MESSAGE_CONTROL0(PpapiHostMsg_NetworkMonitor_Create)
1615 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_NetworkMonitor_NetworkList,
1616 ppapi::proxy::SerializedNetworkList /* network_list */)
1617 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_NetworkMonitor_Forbidden)
1619 // NetworkProxy ----------------------------------------------------------------
1620 IPC_MESSAGE_CONTROL0(PpapiHostMsg_NetworkProxy_Create)
1622 // Query the browser for the proxy server to use for the given URL.
1623 IPC_MESSAGE_CONTROL1(PpapiHostMsg_NetworkProxy_GetProxyForURL,
1624 std::string /* url */)
1626 // Reply message for GetProxyForURL containing the proxy server.
1627 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_NetworkProxy_GetProxyForURLReply,
1628 std::string /* proxy */)
1630 // TrueTypeFont.
1631 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFontSingleton_Create)
1632 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFontSingleton_GetFontFamilies)
1633 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFontSingleton_GetFontFamiliesReply,
1634 std::vector<std::string> /* font_families */)
1635 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TrueTypeFontSingleton_GetFontsInFamily,
1636 std::string /* family */)
1637 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFontSingleton_GetFontsInFamilyReply,
1638 std::vector<ppapi::proxy::SerializedTrueTypeFontDesc>
1639 /* fonts */)
1640 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TrueTypeFont_Create,
1641 ppapi::proxy::SerializedTrueTypeFontDesc /* desc */)
1642 // Unsolicited reply to return the actual font's desc to the plugin.
1643 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_TrueTypeFont_CreateReply,
1644 ppapi::proxy::SerializedTrueTypeFontDesc /* desc */,
1645 int32_t /* result */)
1646 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFont_GetTableTags)
1647 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFont_GetTableTagsReply,
1648 std::vector<uint32_t> /* tags */)
1649 IPC_MESSAGE_CONTROL3(PpapiHostMsg_TrueTypeFont_GetTable,
1650 uint32_t /* table */,
1651 int32_t /* offset */,
1652 int32_t /* max_data_length */)
1653 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFont_GetTableReply,
1654 std::string /* data */)
1656 // Host Resolver ---------------------------------------------------------------
1657 // Creates a PPB_HostResolver resource.
1658 IPC_MESSAGE_CONTROL0(PpapiHostMsg_HostResolver_Create)
1660 // Creates a PPB_HostResolver_Private resource.
1661 IPC_MESSAGE_CONTROL0(PpapiHostMsg_HostResolver_CreatePrivate)
1663 // Resolves the given hostname.
1664 IPC_MESSAGE_CONTROL2(PpapiHostMsg_HostResolver_Resolve,
1665 ppapi::HostPortPair /* host_port */,
1666 PP_HostResolver_Private_Hint /* hint */)
1668 // This message is a reply to HostResolver_Resolve. On success,
1669 // |canonical_name| contains the canonical name of the host; |net_address_list|
1670 // is a list of network addresses. On failure, both fields are set to empty.
1671 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_HostResolver_ResolveReply,
1672 std::string /* canonical_name */,
1673 std::vector<PP_NetAddress_Private> /* net_address_list */)
1675 // Platform Verification -------------------------------------------------------
1676 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PlatformVerification_Create)
1677 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PlatformVerification_ChallengePlatform,
1678 std::string /* service_id */,
1679 std::vector<uint8_t> /* challenge */)
1680 IPC_MESSAGE_CONTROL3(PpapiHostMsg_PlatformVerification_ChallengePlatformReply,
1681 std::vector<uint8_t> /* signed_data */,
1682 std::vector<uint8_t> /* signed_data_signature */,
1683 std::string /* platform_key_certificate */)
1685 // Printing.
1686 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create)
1687 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings)
1688 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply,
1689 PP_PrintSettings_Dev /* print_settings */)
1691 // TCP Socket ------------------------------------------------------------------
1692 // Creates a PPB_TCPSocket resource.
1693 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Create,
1694 ppapi::TCPSocketVersion /* version */)
1696 // Creates a PPB_TCPSocket_Private resource.
1697 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_CreatePrivate)
1699 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Bind,
1700 PP_NetAddress_Private /* net_addr */)
1701 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPSocket_BindReply,
1702 PP_NetAddress_Private /* local_addr */)
1703 IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPSocket_Connect,
1704 std::string /* host */,
1705 uint16_t /* port */)
1706 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_ConnectWithNetAddress,
1707 PP_NetAddress_Private /* net_addr */)
1708 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_TCPSocket_ConnectReply,
1709 PP_NetAddress_Private /* local_addr */,
1710 PP_NetAddress_Private /* remote_addr */)
1711 IPC_MESSAGE_CONTROL4(PpapiHostMsg_TCPSocket_SSLHandshake,
1712 std::string /* server_name */,
1713 uint16_t /* server_port */,
1714 std::vector<std::vector<char> > /* trusted_certs */,
1715 std::vector<std::vector<char> > /* untrusted_certs */)
1716 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPSocket_SSLHandshakeReply,
1717 ppapi::PPB_X509Certificate_Fields /* certificate_fields */)
1718 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Read,
1719 int32_t /* bytes_to_read */)
1720 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPSocket_ReadReply,
1721 std::string /* data */)
1722 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Write,
1723 std::string /* data */)
1724 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_TCPSocket_WriteReply)
1725 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Listen,
1726 int32_t /* backlog */)
1727 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_TCPSocket_ListenReply)
1728 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_Accept)
1729 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_TCPSocket_AcceptReply,
1730 int /* pending_host_id*/,
1731 PP_NetAddress_Private /* local_addr */,
1732 PP_NetAddress_Private /* remote_addr */)
1733 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_Close)
1734 IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPSocket_SetOption,
1735 PP_TCPSocket_Option /* name */,
1736 ppapi::SocketOptionData /* value */)
1737 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_TCPSocket_SetOptionReply)
1739 // TCP Server Socket -----------------------------------------------------------
1740 // Creates a PPB_TCPServerSocket_Private resource.
1741 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_CreatePrivate)
1743 IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPServerSocket_Listen,
1744 PP_NetAddress_Private /* addr */,
1745 int32_t /* backlog */)
1746 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPServerSocket_ListenReply,
1747 PP_NetAddress_Private /* local_addr */)
1748 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_Accept)
1749 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_TCPServerSocket_AcceptReply,
1750 int /* pending_resource_id */,
1751 PP_NetAddress_Private /* local_addr */,
1752 PP_NetAddress_Private /* remote_addr */)
1753 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_StopListening)
1755 // UDP Socket ------------------------------------------------------------------
1756 // Creates a PPB_UDPSocket resource.
1757 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Create)
1759 // Creates a PPB_UDPSocket_Private resource.
1760 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_CreatePrivate)
1762 IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocket_SetOption,
1763 PP_UDPSocket_Option /* name */,
1764 ppapi::SocketOptionData /* value */)
1765 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UDPSocket_SetOptionReply)
1766 IPC_MESSAGE_CONTROL1(PpapiHostMsg_UDPSocket_Bind,
1767 PP_NetAddress_Private /* net_addr */)
1768 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_UDPSocket_BindReply,
1769 PP_NetAddress_Private /* bound_addr */)
1770 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_UDPSocket_PushRecvResult,
1771 int32_t /* result */,
1772 std::string /* data */,
1773 PP_NetAddress_Private /* remote_addr */)
1774 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_RecvSlotAvailable)
1775 IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocket_SendTo,
1776 std::string /* data */,
1777 PP_NetAddress_Private /* net_addr */)
1778 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_UDPSocket_SendToReply,
1779 int32_t /* bytes_written */)
1780 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Close)
1781 IPC_MESSAGE_CONTROL1(PpapiHostMsg_UDPSocket_JoinGroup,
1782 PP_NetAddress_Private /* net_addr */)
1783 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UDPSocket_JoinGroupReply)
1784 IPC_MESSAGE_CONTROL1(PpapiHostMsg_UDPSocket_LeaveGroup,
1785 PP_NetAddress_Private /* net_addr */)
1786 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UDPSocket_LeaveGroupReply)
1788 // URLLoader ------------------------------------------------------------------
1790 IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_Create)
1792 // These messages correspond to PPAPI calls and all should get a
1793 // CallbackComplete message.
1794 IPC_MESSAGE_CONTROL1(PpapiHostMsg_URLLoader_Open,
1795 ppapi::URLRequestInfoData /* request_data */)
1797 // The plugin can tell the host to defer a load to hold off on sending more
1798 // data because the buffer in the plugin is full. When defers_loading is set to
1799 // false, data streaming will resume.
1801 // When auditing redirects (no auto follow) the load will be automatically
1802 // deferred each time we get a redirect. The plugin will reset this to false
1803 // by sending this message when it wants to continue following the redirect.
1805 // When streaming data, the host may still send more data after this call (for
1806 // example, it could already be in-flight at the time of this request).
1807 IPC_MESSAGE_CONTROL1(PpapiHostMsg_URLLoader_SetDeferLoading,
1808 bool /* defers_loading */)
1810 // Closes the URLLoader. There is no reply.
1811 IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_Close)
1813 // Requests that cross-site restrictions be ignored. The plugin must have
1814 // the private permission set. Otherwise this message will be ignored by the
1815 // renderer. There is no reply.
1816 IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_GrantUniversalAccess)
1818 // Push notification that a response is available.
1819 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_URLLoader_ReceivedResponse,
1820 ppapi::URLResponseInfoData /* response */)
1822 // Push notification with load data from the renderer. It is a custom generated
1823 // message with the response data (array of bytes stored via WriteData)
1824 // appended.
1825 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_URLLoader_SendData)
1827 // Push notification indicating that all data has been sent, either via
1828 // SendData or by streaming it to a file. Note that since this is a push
1829 // notification, we don't use the result field of the ResourceMessageReply.
1830 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_URLLoader_FinishedLoading,
1831 int32_t /* result */)
1833 // Push notification from the renderer to the plugin to tell it about download
1834 // and upload progress. This will only be sent if the plugin has requested
1835 // progress updates, and only the fields requested by the plugin will be
1836 // valid.
1837 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_URLLoader_UpdateProgress,
1838 int64_t /* bytes_sent */,
1839 int64_t /* total_bytes_to_be_sent */,
1840 int64_t /* bytes_received */,
1841 int64_t /* total_bytes_to_be_received */)
1843 // Shared memory ---------------------------------------------------------------
1845 // Creates shared memory on the host side, returning a handle to the shared
1846 // memory on the plugin and keeping the memory mapped in on the host.
1847 // We return a "host handle_id" that can be mapped back to the
1848 // handle on the host side by PpapiGlobals::UntrackSharedMemoryHandle().
1849 IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_SharedMemory_CreateSharedMemory,
1850 PP_Instance /* instance */,
1851 uint32_t /* size */,
1852 int /* host_handle_id */,
1853 ppapi::proxy::SerializedHandle /* plugin_handle */)
1855 // MediaStream -----------------------------------------------------------------
1857 // VideoDestination Private.
1858 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDestination_Create)
1859 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoDestination_Open,
1860 std::string /* stream_url */)
1861 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDestination_OpenReply)
1862 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDestination_PutFrame,
1863 ppapi::HostResource /* image_data */,
1864 PP_TimeTicks /* timestamp */)
1865 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDestination_Close)
1867 // VideoSource Private.
1868 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Create)
1869 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoSource_Open,
1870 std::string /* stream_url */)
1871 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoSource_OpenReply)
1872 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_GetFrame)
1873 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoSource_GetFrameReply,
1874 ppapi::HostResource /* resource_id */,
1875 PP_ImageDataDesc /* image_data_desc */,
1876 PP_TimeTicks /* timestamp */)
1877 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Close)
1879 // WebSocket -------------------------------------------------------------------
1881 IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create)
1883 // Establishes the connection to a server. This message requires
1884 // WebSocket_ConnectReply as a reply message.
1885 IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Connect,
1886 std::string /* url */,
1887 std::vector<std::string> /* protocols */)
1889 // Closes established connection with graceful closing handshake. This message
1890 // requires WebSocket_CloseReply as a reply message.
1891 IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Close,
1892 int32_t /* code */,
1893 std::string /* reason */)
1895 // Sends a text frame to the server. No reply is defined.
1896 IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_SendText,
1897 std::string /* message */)
1899 // Sends a binary frame to the server. No reply is defined.
1900 IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_SendBinary,
1901 std::vector<uint8_t> /* message */)
1903 // Fails the connection. This message invokes RFC6455 defined
1904 // _Fail the WebSocket Connection_ operation. No reply is defined.
1905 IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_Fail,
1906 std::string /* message */)
1908 // This message is a reply to WebSocket_Connect. If the |url| and |protocols|
1909 // are invalid, WebSocket_ConnectReply is issued immediately and it contains
1910 // proper error code in its result. Otherwise, WebSocket_ConnectReply is sent
1911 // with valid |url|, |protocol|, and result PP_OK. |protocol| is not a passed
1912 // |protocols|, but a result of opening handshake negotiation. If the
1913 // connection can not be established successfully, WebSocket_ConnectReply is
1914 // not issued, but WebSocket_ClosedReply is sent instead.
1915 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_WebSocket_ConnectReply,
1916 std::string /* url */,
1917 std::string /* protocol */)
1919 // This message is a reply to WebSocket_Close. If the operation fails,
1920 // WebSocket_CloseReply is issued immediately and it contains PP_ERROR_FAILED.
1921 // Otherwise, CloseReply will be issued after the closing handshake is
1922 // finished. All arguments will be valid iff the result is PP_OK and it means
1923 // that the client initiated closing handshake is finished gracefully.
1924 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_WebSocket_CloseReply,
1925 uint64_t /* buffered_amount */,
1926 bool /* was_clean */,
1927 uint16_t /* code */,
1928 std::string /* reason */)
1930 // Unsolicited reply message to transmit a receiving text frame.
1931 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_ReceiveTextReply,
1932 std::string /* message */)
1934 // Unsolicited reply message to transmit a receiving binary frame.
1935 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_ReceiveBinaryReply,
1936 std::vector<uint8_t> /* message */)
1938 // Unsolicited reply message to notify a error on underlying network connetion.
1939 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_WebSocket_ErrorReply)
1941 // Unsolicited reply message to update the buffered amount value.
1942 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_BufferedAmountReply,
1943 uint64_t /* buffered_amount */)
1945 // Unsolicited reply message to update |state| because of incoming external
1946 // events, e.g., protocol error, or unexpected network closure.
1947 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_StateReply,
1948 int32_t /* state */)
1950 // Unsolicited reply message to notify that the connection is closed without
1951 // any WebSocket_Close request. Server initiated closing handshake or
1952 // unexpected network errors will invoke this message.
1953 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_WebSocket_ClosedReply,
1954 uint64_t /* buffered_amount */,
1955 bool /* was_clean */,
1956 uint16_t /* code */,
1957 std::string /* reason */)
1959 // OutputProtection -----------------------------------------------------------
1961 IPC_MESSAGE_CONTROL0(PpapiHostMsg_OutputProtection_Create)
1962 IPC_MESSAGE_CONTROL1(PpapiHostMsg_OutputProtection_EnableProtection,
1963 uint32_t /* desired_method_mask */)
1964 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_OutputProtection_EnableProtectionReply)
1965 IPC_MESSAGE_CONTROL0(PpapiHostMsg_OutputProtection_QueryStatus)
1966 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_OutputProtection_QueryStatusReply,
1967 uint32_t /* link_mask */,
1968 uint32_t /* protection_mask */)
1970 // VideoDecoder ------------------------------------------------------
1972 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Create)
1973 IPC_MESSAGE_CONTROL4(PpapiHostMsg_VideoDecoder_Initialize,
1974 ppapi::HostResource /* graphics_context */,
1975 PP_VideoProfile /* profile */,
1976 PP_HardwareAcceleration /* acceleration */,
1977 uint32_t /* min_picture_count */)
1978 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_InitializeReply)
1979 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDecoder_GetShm,
1980 uint32_t /* shm_id */,
1981 uint32_t /* shm_size */)
1982 // On success, a shm handle is passed in the ReplyParams struct.
1983 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_GetShmReply,
1984 uint32_t /* shm_size */)
1985 IPC_MESSAGE_CONTROL3(PpapiHostMsg_VideoDecoder_Decode,
1986 uint32_t /* shm_id */,
1987 uint32_t /* size */,
1988 int32_t /* decode_id */)
1989 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DecodeReply,
1990 uint32_t /* shm_id */)
1991 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_VideoDecoder_RequestTextures,
1992 uint32_t /* num_textures */,
1993 PP_Size /* size */,
1994 uint32_t /* texture_target */,
1995 std::vector<gpu::Mailbox> /* mailboxes*/)
1996 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDecoder_AssignTextures,
1997 PP_Size /* size */,
1998 std::vector<uint32_t> /* texture_ids */)
1999 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoDecoder_PictureReady,
2000 int32_t /* decode_id */,
2001 uint32_t /* texture_id */,
2002 PP_Rect /* visible_rect */)
2003 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoDecoder_RecyclePicture,
2004 uint32_t /* texture_id */)
2005 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DismissPicture,
2006 uint32_t /* texture_id */)
2007 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Flush)
2008 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_FlushReply)
2009 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Reset)
2010 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_ResetReply)
2011 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_NotifyError,
2012 int32_t /* error */)
2014 // VideoEncoder ------------------------------------------------------
2016 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_Create)
2017 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_GetSupportedProfiles)
2018 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_GetSupportedProfilesReply,
2019 std::vector<PP_VideoProfileDescription> /* results */)
2020 IPC_MESSAGE_CONTROL5(PpapiHostMsg_VideoEncoder_Initialize,
2021 PP_VideoFrame_Format /* input_format */,
2022 PP_Size /* input_visible_size */,
2023 PP_VideoProfile /* output_profile */,
2024 uint32_t /* initial_bitrate */,
2025 PP_HardwareAcceleration /* acceleration */)
2026 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_VideoEncoder_InitializeReply,
2027 uint32_t /* input_frame_count */,
2028 PP_Size /* input_coded_size */)
2029 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_BitstreamBuffers,
2030 uint32_t /* buffer_length */)
2031 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_GetVideoFrames)
2032 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoEncoder_GetVideoFramesReply,
2033 uint32_t /* frame_count */,
2034 uint32_t /* frame_length */,
2035 PP_Size /* frame_size */)
2036 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoEncoder_Encode,
2037 uint32_t /* frame_id */,
2038 bool /* force_keyframe */)
2039 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_EncodeReply,
2040 uint32_t /* frame_id */)
2041 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoEncoder_BitstreamBufferReady,
2042 uint32_t /* buffer_id */,
2043 uint32_t /* buffer_size */,
2044 bool /* key_frame */)
2045 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoEncoder_RecycleBitstreamBuffer,
2046 uint32_t /* buffer_id */)
2047 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoEncoder_RequestEncodingParametersChange,
2048 uint32_t /* bitrate */,
2049 uint32_t /* framerate */)
2050 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_NotifyError,
2051 int32_t /* error */)
2052 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_Close)
2054 #if !defined(OS_NACL) && !defined(NACL_WIN64)
2056 // Audio input.
2057 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create)
2058 IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open,
2059 std::string /* device_id */,
2060 PP_AudioSampleRate /* sample_rate */,
2061 uint32_t /* sample_frame_count */)
2062 // Reply to an Open call. This supplies a socket handle and a shared memory
2063 // handle. Both handles are passed in the ReplyParams struct.
2064 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_AudioInput_OpenReply)
2065 IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioInput_StartOrStop, bool /* capture */)
2066 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Close)
2068 // BrowserFont -----------------------------------------------------------------
2070 IPC_MESSAGE_CONTROL0(PpapiHostMsg_BrowserFontSingleton_Create)
2072 // Requests that the browser reply with the list of font families via
2073 // PpapiPluginMsg_BrowserFontSingleton_GetFontFamiliesReply.
2074 IPC_MESSAGE_CONTROL0(PpapiHostMsg_BrowserFontSingleton_GetFontFamilies)
2076 // Reply to PpapiHostMsg_BrowserFontSingleton_GetFontFamilies with the font
2077 // family list. The |families| result is encoded by separating each family name
2078 // by a null character.
2079 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_BrowserFontSingleton_GetFontFamiliesReply,
2080 std::string /* families */)
2082 // Flash -----------------------------------------------------------------------
2084 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create)
2086 // Message to notify the browser to register an update in system activity.
2087 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_UpdateActivity)
2089 // Query the browser for the proxy server to use for the given URL.
2090 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_GetProxyForURL, std::string /* url */)
2091 // Reply message for GetProxyForURL containing the proxy server.
2092 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetProxyForURLReply,
2093 std::string /* proxy */)
2095 // Queries the browser for the local time zone offset for a given time.
2096 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_GetLocalTimeZoneOffset,
2097 base::Time /* time */)
2098 // Reply to GetLocalTimeZoneOffset containing the time zone offset as a double.
2099 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetLocalTimeZoneOffsetReply,
2100 double /* offset */)
2102 // Query the browser for the restrictions on storing Flash LSOs.
2103 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_GetLocalDataRestrictions)
2104 // Reply message for GetLocalDataRestrictions containing the restrictions to
2105 // use. These are PP_FlashLSORestrictions cast to an int32_t.
2106 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetLocalDataRestrictionsReply,
2107 int32_t /* restrictions */)
2109 // Notifies the renderer whether the Flash instance is in windowed mode. No
2110 // reply is sent.
2111 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_SetInstanceAlwaysOnTop,
2112 bool /* on_top */)
2114 // Notifies the renderer to draw text to the given PP_ImageData resource. All
2115 // parmeters for drawing (including the resource to draw to) are contianed in
2116 // the PPBFlash_DrawGlyphs_Params structure. An error code is sent in a reply
2117 // message indicating success.
2118 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_DrawGlyphs,
2119 ppapi::proxy::PPBFlash_DrawGlyphs_Params /* params */)
2121 // Notifies the renderer to navigate to the given URL contained in the
2122 // URLRequestInfoData. An error code is sent in a reply message indicating
2123 // success.
2124 IPC_MESSAGE_CONTROL3(PpapiHostMsg_Flash_Navigate,
2125 ppapi::URLRequestInfoData /* data */,
2126 std::string /* target */,
2127 bool /* from_user_action */)
2129 // Queries the renderer on whether the plugin instance is the topmost element
2130 // in the area of the instance specified by the given PP_Rect. PP_OK is sent as
2131 // the error code in a reply message if the rect is topmost otherwise
2132 // PP_ERROR_FAILED is sent.
2133 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_IsRectTopmost,
2134 PP_Rect /* rect */)
2136 // Notifies the renderer to invoke printing for the given plugin instance. No
2137 // reply is sent.
2138 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_InvokePrinting)
2140 // DeviceEnumeration -----------------------------------------------------------
2141 // Device enumeration messages used by audio input and video capture.
2142 IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_EnumerateDevices)
2143 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_DeviceEnumeration_EnumerateDevicesReply,
2144 std::vector<ppapi::DeviceRefData> /* devices */)
2145 IPC_MESSAGE_CONTROL1(PpapiHostMsg_DeviceEnumeration_MonitorDeviceChange,
2146 uint32_t /* callback_id */)
2147 IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_StopMonitoringDeviceChange)
2148 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_DeviceEnumeration_NotifyDeviceChange,
2149 uint32_t /* callback_id */,
2150 std::vector<ppapi::DeviceRefData> /* devices */)
2152 // Flash clipboard.
2153 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashClipboard_Create)
2154 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashClipboard_RegisterCustomFormat,
2155 std::string /* format_name */)
2156 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_RegisterCustomFormatReply,
2157 uint32_t /* format */)
2158 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_IsFormatAvailable,
2159 uint32_t /* clipboard_type */,
2160 uint32_t /* format */)
2161 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_ReadData,
2162 uint32_t /* clipboard_type */,
2163 uint32_t /* format */)
2164 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_ReadDataReply,
2165 std::string /* result */)
2166 IPC_MESSAGE_CONTROL3(PpapiHostMsg_FlashClipboard_WriteData,
2167 uint32_t /* clipboard_type */,
2168 std::vector<uint32_t> /* formats */,
2169 std::vector<std::string> /* data */)
2170 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashClipboard_GetSequenceNumber,
2171 uint32_t /* clipboard_type */)
2172 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_GetSequenceNumberReply,
2173 uint64_t /* sequence_number */)
2175 // Flash DRM.
2176 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_Create)
2178 // Requests the device ID.
2179 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetDeviceID)
2180 // Reply for GetDeviceID which includes the device ID as a string.
2181 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetDeviceIDReply,
2182 std::string /* id */)
2184 // Requests the HMONITOR corresponding to the monitor on which the instance is
2185 // displayed.
2186 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetHmonitor)
2187 // Reply message for GetHmonitor which contains the HMONITOR as an int64_t.
2188 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetHmonitorReply,
2189 int64_t /* hmonitor */)
2191 // Requests the voucher file which is used to verify the integrity of the Flash
2192 // module. A PPB_FileRef resource will be created.
2193 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetVoucherFile)
2194 // Reply message for GetVoucherFile which contains the CreateInfo for a
2195 // PPB_FileRef which points to the voucher file.
2196 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetVoucherFileReply,
2197 ppapi::FileRefCreateInfo /* file_info */)
2199 // Requests a value indicating whether the monitor on which the instance is
2200 // displayed is external.
2201 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_MonitorIsExternal)
2202 // Reply message for MonitorIsExternal which contains the value indicating if
2203 // the monitor is external.
2204 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_MonitorIsExternalReply,
2205 PP_Bool /* is_external */)
2207 // Flash file.
2208 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFile_Create)
2209 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_OpenFile,
2210 ppapi::PepperFilePath /* path */,
2211 int /* pp_open_flags */)
2212 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_RenameFile,
2213 ppapi::PepperFilePath /* from_path */,
2214 ppapi::PepperFilePath /* to_path */)
2215 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_DeleteFileOrDir,
2216 ppapi::PepperFilePath /* path */,
2217 bool /* recursive */)
2218 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_CreateDir,
2219 ppapi::PepperFilePath /* path */)
2220 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_QueryFile,
2221 ppapi::PepperFilePath /* path */)
2222 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFile_QueryFileReply,
2223 base::File::Info /* file_info */)
2224 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_GetDirContents,
2225 ppapi::PepperFilePath /* path */)
2226 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFile_GetDirContentsReply,
2227 ppapi::DirContents /* entries */)
2228 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFile_CreateTemporaryFile)
2230 // Flash font file.
2231 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFontFile_Create,
2232 ppapi::proxy::SerializedFontDescription /* description */,
2233 PP_PrivateFontCharset /* charset */)
2234 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFontFile_GetFontTable,
2235 uint32_t /* table */)
2236 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFontFile_GetFontTableReply,
2237 std::string /* output */)
2239 // Flash fullscreen.
2240 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFullscreen_Create)
2241 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFullscreen_SetFullscreen,
2242 bool /* fullscreen */)
2244 // FlashMenu.
2246 // Creates the flash menu with the given data.
2247 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashMenu_Create,
2248 ppapi::proxy::SerializedFlashMenu /* menu_data */)
2250 // Shows the menu at the given location relative to the plugin instance.
2251 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashMenu_Show,
2252 PP_Point /* location */)
2254 // Reply to a show command. If the resource reply is PP_OK, the selected_id
2255 // will be the menu item ID chosen by the user.
2256 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashMenu_ShowReply,
2257 int32_t /* selected_id */)
2259 // PPB_Flash_MessageLoop.
2260 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Create,
2261 PP_Instance /* instance */,
2262 ppapi::HostResource /* result */)
2263 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Run,
2264 ppapi::HostResource /* flash_message_loop */,
2265 int32_t /* result */)
2266 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlashMessageLoop_Quit,
2267 ppapi::HostResource /* flash_message_loop */)
2269 // PDF ------------------------------------------------------------------------
2271 // Creates the PDF resource.
2272 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_Create)
2274 // Requests the localized string for the given ID.
2275 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_GetLocalizedString,
2276 PP_ResourceString /* string_id */)
2277 // Reply for PpapiHostMsg_PDF_GetLocalizedString containing the localized
2278 // string.
2279 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_PDF_GetLocalizedStringReply,
2280 std::string /* localized_string*/)
2282 // Notifies the renderer that the PDF started loading.
2283 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_DidStartLoading)
2285 // Notifies the renderer that the PDF stopped loading.
2286 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_DidStopLoading)
2288 // Sets any restrictions on the PDF content.
2289 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetContentRestriction,
2290 int /* restrictions */)
2292 // Requests that the specified action be recorded with UMA.
2293 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_UserMetricsRecordAction,
2294 std::string /* action */)
2296 // Notifies the renderer that the current PDF uses an unsupported feature.
2297 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_HasUnsupportedFeature)
2299 // Notifies the renderer to print the current PDF.
2300 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_Print)
2302 // Notifies the renderer to save the current PDF.
2303 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_SaveAs)
2305 // Called by the plugin when its selection changes.
2306 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetSelectedText,
2307 base::string16 /* selected_text */)
2309 // Called by the plugin to set the link under the cursor.
2310 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetLinkUnderCursor,
2311 std::string /* url */)
2313 // VideoCapture ----------------------------------------------------------------
2315 // VideoCapture_Dev, plugin -> host
2316 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Create)
2317 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StartCapture)
2318 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoCapture_ReuseBuffer,
2319 uint32_t /* buffer */)
2320 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StopCapture)
2321 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Close)
2323 // VideoCapture_Dev, plugin -> host -> plugin
2324 IPC_MESSAGE_CONTROL3(PpapiHostMsg_VideoCapture_Open,
2325 std::string /* device_id */,
2326 PP_VideoCaptureDeviceInfo_Dev /* requested_info */,
2327 uint32_t /* buffer_count */)
2328 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoCapture_OpenReply)
2330 // VideoCapture_Dev, host -> plugin
2331 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoCapture_OnDeviceInfo,
2332 PP_VideoCaptureDeviceInfo_Dev /* info */,
2333 std::vector<ppapi::HostResource> /* buffers */,
2334 uint32_t /* buffer_size */)
2335 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
2336 uint32_t /* status */)
2337 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
2338 uint32_t /* error */)
2339 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
2340 uint32_t /* buffer */)
2342 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)