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