prune resources in MemoryCache
[chromium-blink-merge.git] / ppapi / proxy / ppapi_messages.h
blob275e39ceca150e9b2ac9b0e1caed7dcdaca23c98
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/private/pp_content_decryptor.h"
45 #include "ppapi/c/private/pp_private_font_charset.h"
46 #include "ppapi/c/private/ppb_flash.h"
47 #include "ppapi/c/private/ppb_host_resolver_private.h"
48 #include "ppapi/c/private/ppb_isolated_file_system_private.h"
49 #include "ppapi/c/private/ppb_net_address_private.h"
50 #include "ppapi/c/private/ppb_pdf.h"
51 #include "ppapi/c/private/ppb_talk_private.h"
52 #include "ppapi/c/private/ppp_flash_browser_operations.h"
53 #include "ppapi/c/private/ppp_pdf.h"
54 #include "ppapi/proxy/host_resolver_private_resource.h"
55 #include "ppapi/proxy/network_list_resource.h"
56 #include "ppapi/proxy/ppapi_param_traits.h"
57 #include "ppapi/proxy/ppapi_proxy_export.h"
58 #include "ppapi/proxy/resource_message_params.h"
59 #include "ppapi/proxy/serialized_flash_menu.h"
60 #include "ppapi/proxy/serialized_handle.h"
61 #include "ppapi/proxy/serialized_structs.h"
62 #include "ppapi/proxy/serialized_var.h"
63 #include "ppapi/shared_impl/compositor_layer_data.h"
64 #include "ppapi/shared_impl/dir_contents.h"
65 #include "ppapi/shared_impl/file_growth.h"
66 #include "ppapi/shared_impl/file_path.h"
67 #include "ppapi/shared_impl/file_ref_create_info.h"
68 #include "ppapi/shared_impl/media_stream_audio_track_shared.h"
69 #include "ppapi/shared_impl/media_stream_video_track_shared.h"
70 #include "ppapi/shared_impl/ppapi_nacl_plugin_args.h"
71 #include "ppapi/shared_impl/ppapi_preferences.h"
72 #include "ppapi/shared_impl/ppb_device_ref_shared.h"
73 #include "ppapi/shared_impl/ppb_input_event_shared.h"
74 #include "ppapi/shared_impl/ppb_tcp_socket_shared.h"
75 #include "ppapi/shared_impl/ppb_view_shared.h"
76 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h"
77 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h"
78 #include "ppapi/shared_impl/socket_option_data.h"
79 #include "ppapi/shared_impl/url_request_info_data.h"
80 #include "ppapi/shared_impl/url_response_info_data.h"
81 #include "ui/events/ipc/latency_info_param_traits.h"
83 #undef IPC_MESSAGE_EXPORT
84 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT
86 #define IPC_MESSAGE_START PpapiMsgStart
88 IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion,
89 ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE)
90 IPC_ENUM_TRAITS(PP_AudioSampleRate)
91 IPC_ENUM_TRAITS_MAX_VALUE(PP_BlendMode, PP_BLENDMODE_LAST)
92 IPC_ENUM_TRAITS(PP_DeviceType_Dev)
93 IPC_ENUM_TRAITS(PP_DecryptorStreamType)
94 IPC_ENUM_TRAITS(PP_SessionType)
95 IPC_ENUM_TRAITS(PP_CdmExceptionCode)
96 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileSystemType, PP_FILESYSTEMTYPE_ISOLATED)
97 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileType, PP_FILETYPE_OTHER)
98 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission)
99 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType)
100 IPC_ENUM_TRAITS(PP_FlashSetting)
101 IPC_ENUM_TRAITS(PP_ImageDataFormat)
102 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton)
103 IPC_ENUM_TRAITS(PP_InputEvent_Type)
104 IPC_ENUM_TRAITS_MAX_VALUE(PP_IsolatedFileSystemType_Private,
105 PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_PLUGINPRIVATE)
106 IPC_ENUM_TRAITS_MAX_VALUE(PP_NetAddressFamily_Private,
107 PP_NETADDRESSFAMILY_PRIVATE_IPV6)
108 IPC_ENUM_TRAITS_MAX_VALUE(PP_NetworkList_State, PP_NETWORKLIST_STATE_UP)
109 IPC_ENUM_TRAITS_MAX_VALUE(PP_NetworkList_Type, PP_NETWORKLIST_TYPE_CELLULAR)
110 IPC_ENUM_TRAITS(PP_PrintOrientation_Dev)
111 IPC_ENUM_TRAITS(PP_PrintOutputFormat_Dev)
112 IPC_ENUM_TRAITS(PP_PrintScalingOption_Dev)
113 IPC_ENUM_TRAITS_MAX_VALUE(PP_PrintDuplexMode_Dev, PP_PRINTDUPLEXMODE_SHORT_EDGE)
114 IPC_ENUM_TRAITS(PP_PrivateFontCharset)
115 IPC_ENUM_TRAITS(PP_ResourceImage)
116 IPC_ENUM_TRAITS(PP_ResourceString)
117 IPC_ENUM_TRAITS_MAX_VALUE(PP_TalkEvent, PP_TALKEVENT_NUM_EVENTS - 1)
118 IPC_ENUM_TRAITS_MAX_VALUE(PP_TalkPermission,
119 PP_TALKPERMISSION_NUM_PERMISSIONS - 1)
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_RECV_BUFFER_SIZE)
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_PrintRange_Dev)
211 IPC_STRUCT_TRAITS_MEMBER(from)
212 IPC_STRUCT_TRAITS_MEMBER(to)
213 IPC_STRUCT_TRAITS_END()
215 IPC_STRUCT_TRAITS_BEGIN(PP_PdfPrintPresetOptions_Dev)
216 IPC_STRUCT_TRAITS_MEMBER(is_scaling_disabled)
217 IPC_STRUCT_TRAITS_MEMBER(copies)
218 IPC_STRUCT_TRAITS_MEMBER(duplex)
219 IPC_STRUCT_TRAITS_MEMBER(page_range)
220 IPC_STRUCT_TRAITS_MEMBER(page_range_count)
221 IPC_STRUCT_TRAITS_END()
223 IPC_STRUCT_TRAITS_BEGIN(PP_URLComponent_Dev)
224 IPC_STRUCT_TRAITS_MEMBER(begin)
225 IPC_STRUCT_TRAITS_MEMBER(len)
226 IPC_STRUCT_TRAITS_END()
228 IPC_STRUCT_TRAITS_BEGIN(PP_URLComponents_Dev)
229 IPC_STRUCT_TRAITS_MEMBER(scheme)
230 IPC_STRUCT_TRAITS_MEMBER(username)
231 IPC_STRUCT_TRAITS_MEMBER(password)
232 IPC_STRUCT_TRAITS_MEMBER(host)
233 IPC_STRUCT_TRAITS_MEMBER(port)
234 IPC_STRUCT_TRAITS_MEMBER(path)
235 IPC_STRUCT_TRAITS_MEMBER(query)
236 IPC_STRUCT_TRAITS_MEMBER(ref)
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 #if !defined(OS_NACL) && !defined(NACL_WIN64)
449 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer)
450 IPC_STRUCT_TRAITS_MEMBER(resource)
451 IPC_STRUCT_TRAITS_MEMBER(handle)
452 IPC_STRUCT_TRAITS_MEMBER(size)
453 IPC_STRUCT_TRAITS_END()
455 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
457 // These are from the browser to the plugin.
458 // Loads the given plugin.
459 IPC_MESSAGE_CONTROL2(PpapiMsg_LoadPlugin,
460 base::FilePath /* path */,
461 ppapi::PpapiPermissions /* permissions */)
463 // Creates a channel to talk to a renderer. The plugin will respond with
464 // PpapiHostMsg_ChannelCreated.
465 IPC_MESSAGE_CONTROL3(PpapiMsg_CreateChannel,
466 base::ProcessId /* renderer_pid */,
467 int /* renderer_child_id */,
468 bool /* incognito */)
470 // Initializes the IPC dispatchers in the NaCl plugin.
471 IPC_MESSAGE_CONTROL1(PpapiMsg_InitializeNaClDispatcher,
472 ppapi::PpapiNaClPluginArgs /* args */)
474 // Instructs the plugin process to crash.
475 IPC_MESSAGE_CONTROL0(PpapiMsg_Crash)
477 // Instructs the plugin process to hang.
478 IPC_MESSAGE_CONTROL0(PpapiMsg_Hang)
480 // Each plugin may be referenced by multiple renderers. We need the instance
481 // IDs to be unique within a plugin, despite coming from different renderers,
482 // and unique within a renderer, despite going to different plugins. This means
483 // that neither the renderer nor the plugin can generate instance IDs without
484 // consulting the other.
486 // We resolve this by having the renderer generate a unique instance ID inside
487 // its process. It then asks the plugin to reserve that ID by sending this sync
488 // message. If the plugin has not yet seen this ID, it will remember it as used
489 // (to prevent a race condition if another renderer tries to then use the same
490 // instance), and set usable as true.
492 // If the plugin has already seen the instance ID, it will set usable as false
493 // and the renderer must retry a new instance ID.
494 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_ReserveInstanceId,
495 PP_Instance /* instance */,
496 bool /* usable */)
498 // Passes the WebKit preferences to the plugin.
499 IPC_MESSAGE_CONTROL1(PpapiMsg_SetPreferences,
500 ppapi::Preferences)
502 // Sent in both directions to see if the other side supports the given
503 // interface.
504 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface,
505 std::string /* interface_name */,
506 bool /* result */)
508 IPC_MESSAGE_CONTROL1(PpapiHostMsg_LogInterfaceUsage,
509 int /* interface_hash */)
511 #if !defined(OS_NACL) && !defined(NACL_WIN64)
512 // Network state notification from the browser for implementing
513 // PPP_NetworkState_Dev.
514 IPC_MESSAGE_CONTROL1(PpapiMsg_SetNetworkState,
515 bool /* online */)
517 // Requests a list of sites that have data stored from the plugin. The plugin
518 // process will respond with PpapiHostMsg_GetSitesWithDataResult. This is used
519 // for Flash.
520 IPC_MESSAGE_CONTROL2(PpapiMsg_GetSitesWithData,
521 uint32 /* request_id */,
522 base::FilePath /* plugin_data_path */)
523 IPC_MESSAGE_CONTROL2(PpapiHostMsg_GetSitesWithDataResult,
524 uint32 /* request_id */,
525 std::vector<std::string> /* sites */)
527 // Instructs the plugin to clear data for the given site & time. The plugin
528 // process will respond with PpapiHostMsg_ClearSiteDataResult. This is used
529 // for Flash.
530 IPC_MESSAGE_CONTROL5(PpapiMsg_ClearSiteData,
531 uint32 /* request_id */,
532 base::FilePath /* plugin_data_path */,
533 std::string /* site */,
534 uint64 /* flags */,
535 uint64 /* max_age */)
536 IPC_MESSAGE_CONTROL2(PpapiHostMsg_ClearSiteDataResult,
537 uint32 /* request_id */,
538 bool /* success */)
540 IPC_MESSAGE_CONTROL2(PpapiMsg_DeauthorizeContentLicenses,
541 uint32 /* request_id */,
542 base::FilePath /* plugin_data_path */)
543 IPC_MESSAGE_CONTROL2(PpapiHostMsg_DeauthorizeContentLicensesResult,
544 uint32 /* request_id */,
545 bool /* success */)
547 IPC_MESSAGE_CONTROL3(PpapiMsg_GetPermissionSettings,
548 uint32 /* request_id */,
549 base::FilePath /* plugin_data_path */,
550 PP_Flash_BrowserOperations_SettingType /* setting_type */)
551 IPC_MESSAGE_CONTROL4(
552 PpapiHostMsg_GetPermissionSettingsResult,
553 uint32 /* request_id */,
554 bool /* success */,
555 PP_Flash_BrowserOperations_Permission /* default_permission */,
556 ppapi::FlashSiteSettings /* sites */)
558 IPC_MESSAGE_CONTROL5(PpapiMsg_SetDefaultPermission,
559 uint32 /* request_id */,
560 base::FilePath /* plugin_data_path */,
561 PP_Flash_BrowserOperations_SettingType /* setting_type */,
562 PP_Flash_BrowserOperations_Permission /* permission */,
563 bool /* clear_site_specific */)
564 IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetDefaultPermissionResult,
565 uint32 /* request_id */,
566 bool /* success */)
568 IPC_MESSAGE_CONTROL4(PpapiMsg_SetSitePermission,
569 uint32 /* request_id */,
570 base::FilePath /* plugin_data_path */,
571 PP_Flash_BrowserOperations_SettingType /* setting_type */,
572 ppapi::FlashSiteSettings /* sites */)
573 IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetSitePermissionResult,
574 uint32 /* request_id */,
575 bool /* success */)
577 // Broker Process.
578 IPC_SYNC_MESSAGE_CONTROL2_1(PpapiMsg_ConnectToPlugin,
579 PP_Instance /* instance */,
580 IPC::PlatformFileForTransit /* handle */,
581 int32_t /* result */)
582 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
584 // PPB_Audio.
586 // Notifies the result of the audio stream create call. This is called in
587 // both error cases and in the normal success case. These cases are
588 // differentiated by the result code, which is one of the standard PPAPI
589 // result codes.
591 // The handler of this message should always close all of the handles passed
592 // in, since some could be valid even in the error case.
593 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBAudio_NotifyAudioStreamCreated,
594 ppapi::HostResource /* audio_id */,
595 int32_t /* result_code (will be != PP_OK on failure) */,
596 ppapi::proxy::SerializedHandle /* socket_handle */,
597 ppapi::proxy::SerializedHandle /* handle */)
599 // PPB_Graphics3D.
600 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK,
601 ppapi::HostResource /* graphics_3d */,
602 int32_t /* pp_error */)
604 // PPB_ImageData.
605 IPC_MESSAGE_ROUTED1(PpapiMsg_PPBImageData_NotifyUnusedImageData,
606 ppapi::HostResource /* old_image_data */)
608 // PPB_Instance.
609 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBInstance_MouseLockComplete,
610 PP_Instance /* instance */,
611 int32_t /* result */)
613 // PPP_Class.
614 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty,
615 int64 /* ppp_class */,
616 int64 /* object */,
617 ppapi::proxy::SerializedVar /* property */,
618 ppapi::proxy::SerializedVar /* out_exception */,
619 bool /* result */)
620 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod,
621 int64 /* ppp_class */,
622 int64 /* object */,
623 ppapi::proxy::SerializedVar /* method */,
624 ppapi::proxy::SerializedVar /* out_exception */,
625 bool /* result */)
626 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_GetProperty,
627 int64 /* ppp_class */,
628 int64 /* object */,
629 ppapi::proxy::SerializedVar /* property */,
630 ppapi::proxy::SerializedVar /* out_exception */,
631 ppapi::proxy::SerializedVar /* result */)
632 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiMsg_PPPClass_EnumerateProperties,
633 int64 /* ppp_class */,
634 int64 /* object */,
635 std::vector<ppapi::proxy::SerializedVar> /* props */,
636 ppapi::proxy::SerializedVar /* out_exception */)
637 IPC_SYNC_MESSAGE_ROUTED4_1(PpapiMsg_PPPClass_SetProperty,
638 int64 /* ppp_class */,
639 int64 /* object */,
640 ppapi::proxy::SerializedVar /* name */,
641 ppapi::proxy::SerializedVar /* value */,
642 ppapi::proxy::SerializedVar /* out_exception */)
643 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPClass_RemoveProperty,
644 int64 /* ppp_class */,
645 int64 /* object */,
646 ppapi::proxy::SerializedVar /* property */,
647 ppapi::proxy::SerializedVar /* out_exception */)
648 IPC_SYNC_MESSAGE_ROUTED4_2(PpapiMsg_PPPClass_Call,
649 int64 /* ppp_class */,
650 int64 /* object */,
651 ppapi::proxy::SerializedVar /* method_name */,
652 std::vector<ppapi::proxy::SerializedVar> /* args */,
653 ppapi::proxy::SerializedVar /* out_exception */,
654 ppapi::proxy::SerializedVar /* result */)
655 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_Construct,
656 int64 /* ppp_class */,
657 int64 /* object */,
658 std::vector<ppapi::proxy::SerializedVar> /* args */,
659 ppapi::proxy::SerializedVar /* out_exception */,
660 ppapi::proxy::SerializedVar /* result */)
661 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate,
662 int64 /* ppp_class */,
663 int64 /* object */)
665 // PPP_Graphics3D_Dev.
666 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPGraphics3D_ContextLost,
667 PP_Instance /* instance */)
669 // PPP_InputEvent.
670 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInputEvent_HandleInputEvent,
671 PP_Instance /* instance */,
672 ppapi::InputEventData /* data */)
673 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInputEvent_HandleFilteredInputEvent,
674 PP_Instance /* instance */,
675 ppapi::InputEventData /* data */,
676 PP_Bool /* result */)
678 // PPP_Instance.
679 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate,
680 PP_Instance /* instance */,
681 std::vector<std::string> /* argn */,
682 std::vector<std::string> /* argv */,
683 PP_Bool /* result */)
684 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiMsg_PPPInstance_DidDestroy,
685 PP_Instance /* instance */)
686 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_DidChangeView,
687 PP_Instance /* instance */,
688 ppapi::ViewData /* new_data */,
689 PP_Bool /* flash_fullscreen */)
690 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus,
691 PP_Instance /* instance */,
692 PP_Bool /* has_focus */)
693 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_HandleDocumentLoad,
694 PP_Instance /* instance */,
695 int /* pending_loader_host_id */,
696 ppapi::URLResponseInfoData /* response */)
698 // PPP_Messaging and PPP_MessageHandler.
699 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPMessaging_HandleMessage,
700 PP_Instance /* instance */,
701 ppapi::proxy::SerializedVar /* message */)
702 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiMsg_PPPMessageHandler_HandleBlockingMessage,
703 PP_Instance /* instance */,
704 ppapi::proxy::SerializedVar /* message */,
705 ppapi::proxy::SerializedVar /* result */,
706 bool /* was_handled */)
708 // PPP_MouseLock.
709 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPMouseLock_MouseLockLost,
710 PP_Instance /* instance */)
712 // PPP_Pdf
713 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPPdf_Rotate,
714 PP_Instance /* instance */,
715 bool /* clockwise */)
716 IPC_SYNC_MESSAGE_ROUTED1_2(
717 PpapiMsg_PPPPdf_PrintPresetOptions,
718 PP_Instance /* instance */,
719 PP_PdfPrintPresetOptions_Dev /* print preset options */,
720 PP_Bool /* result */)
722 // Find
723 IPC_MESSAGE_ROUTED2(PpapiPluginMsg_PPPFind_StartFind,
724 PP_Instance /* instance */,
725 std::string /* text */)
726 IPC_MESSAGE_ROUTED2(PpapiPluginMsg_PPPFind_SelectFindResult,
727 PP_Instance /* instance */,
728 PP_Bool /* forward */)
729 IPC_MESSAGE_ROUTED1(PpapiPluginMsg_PPPFind_StopFind,
730 PP_Instance /* instance */)
732 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_SetPluginToHandleFindRequests,
733 PP_Instance /* instance */)
734 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_NumberOfFindResultsChanged,
735 PP_Instance /* instance */,
736 int32_t /* total */,
737 PP_Bool /* final_result */)
738 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SelectFindResultChanged,
739 PP_Instance /* instance */,
740 int32_t /* index */)
741 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SetTickmarks,
742 PP_Instance /* instance */,
743 std::vector<PP_Rect> /* tickmarks */)
745 // PPP_Printing
746 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_QuerySupportedFormats,
747 PP_Instance /* instance */,
748 uint32_t /* result */)
749 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_Begin,
750 PP_Instance /* instance */,
751 std::string /* settings_string */,
752 int32_t /* result */)
753 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_PrintPages,
754 PP_Instance /* instance */,
755 std::vector<PP_PrintPageNumberRange_Dev> /* pages */,
756 ppapi::HostResource /* result */)
757 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPPrinting_End,
758 PP_Instance /* instance */)
759 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_IsScalingDisabled,
760 PP_Instance /* instance */,
761 bool /* result */)
763 // PPP_TextInput.
764 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPTextInput_RequestSurroundingText,
765 PP_Instance /* instance */,
766 uint32_t /* desired_number_of_characters */)
768 #if !defined(OS_NACL) && !defined(NACL_WIN64)
769 // PPB_Broker.
770 IPC_MESSAGE_ROUTED3(
771 PpapiMsg_PPBBroker_ConnectComplete,
772 ppapi::HostResource /* broker */,
773 IPC::PlatformFileForTransit /* handle */,
774 int32_t /* result */)
776 // PPP_ContentDecryptor_Dev
777 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPContentDecryptor_Initialize,
778 PP_Instance /* instance */,
779 ppapi::proxy::SerializedVar /* key_system, String */)
780 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_SetServerCertificate,
781 PP_Instance /* instance */,
782 uint32_t /* promise_id */,
783 std::vector<uint8_t> /* certificate */)
784 IPC_MESSAGE_ROUTED5(PpapiMsg_PPPContentDecryptor_CreateSession,
785 PP_Instance /* instance */,
786 uint32_t /* promise_id */,
787 ppapi::proxy::SerializedVar /* init_data_type, String */,
788 ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */,
789 PP_SessionType /* session_type */)
790 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_LoadSession,
791 PP_Instance /* instance */,
792 uint32_t /* promise_id */,
793 ppapi::proxy::SerializedVar /* web_session_id, String */)
794 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_UpdateSession,
795 PP_Instance /* instance */,
796 uint32_t /* promise_id */,
797 ppapi::proxy::SerializedVar /* web_session_id, String */,
798 ppapi::proxy::SerializedVar /* response, ArrayBuffer */)
799 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_CloseSession,
800 PP_Instance /* instance */,
801 uint32_t /* promise_id */,
802 std::string /* web_session_id */)
803 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_RemoveSession,
804 PP_Instance /* instance */,
805 uint32_t /* promise_id */,
806 std::string /* web_session_id */)
807 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_GetUsableKeyIds,
808 PP_Instance /* instance */,
809 uint32_t /* promise_id */,
810 std::string /* web_session_id */)
811 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_Decrypt,
812 PP_Instance /* instance */,
813 ppapi::proxy::PPPDecryptor_Buffer /* buffer */,
814 std::string /* serialized_block_info */)
815 IPC_MESSAGE_ROUTED3(
816 PpapiMsg_PPPContentDecryptor_InitializeAudioDecoder,
817 PP_Instance /* instance */,
818 std::string /* serialized_decoder_config */,
819 ppapi::proxy::PPPDecryptor_Buffer /* extra_data_buffer */)
820 IPC_MESSAGE_ROUTED3(
821 PpapiMsg_PPPContentDecryptor_InitializeVideoDecoder,
822 PP_Instance /* instance */,
823 std::string /* serialized_decoder_config */,
824 ppapi::proxy::PPPDecryptor_Buffer /* extra_data_buffer. */)
825 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_DeinitializeDecoder,
826 PP_Instance /* instance */,
827 PP_DecryptorStreamType /* decoder_type */,
828 uint32_t /* request_id */)
829 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_ResetDecoder,
830 PP_Instance /* instance */,
831 PP_DecryptorStreamType /* decoder_type */,
832 uint32_t /* request_id */)
833 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_DecryptAndDecode,
834 PP_Instance /* instance */,
835 PP_DecryptorStreamType /* decoder_type */,
836 ppapi::proxy::PPPDecryptor_Buffer /* buffer */,
837 std::string /* serialized_block_info */)
839 // PPP_Instance_Private.
840 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject,
841 PP_Instance /* instance */,
842 ppapi::proxy::SerializedVar /* result */)
844 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
846 // Reports to the browser that a plugin has been active.
847 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Keepalive)
849 // -----------------------------------------------------------------------------
850 // These are from the plugin to the renderer.
852 // Reply to PpapiMsg_CreateChannel. The handle will be NULL if the channel
853 // could not be established. This could be because the IPC could not be created
854 // for some weird reason, but more likely that the plugin failed to load or
855 // initialize properly.
856 IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated,
857 IPC::ChannelHandle /* handle */)
859 // Notify the renderer that the PPAPI channel gets ready in the plugin.
860 IPC_MESSAGE_CONTROL0(PpapiHostMsg_StartupInitializationComplete)
862 // Calls renderer to open a resource file for nacl_irt_open_resource().
863 IPC_SYNC_MESSAGE_CONTROL1_3(PpapiHostMsg_OpenResource,
864 std::string /* key */,
865 ppapi::proxy::SerializedHandle /* fd */,
866 uint64_t /* file_token_lo */,
867 uint64_t /* file_token_hi */)
869 // Logs the given message to the console of all instances.
870 IPC_MESSAGE_CONTROL4(PpapiHostMsg_LogWithSource,
871 PP_Instance /* instance */,
872 int /* log_level */,
873 std::string /* source */,
874 std::string /* value */)
876 // PPB_Audio.
877 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudio_Create,
878 PP_Instance /* instance_id */,
879 int32_t /* sample_rate */,
880 uint32_t /* sample_frame_count */,
881 ppapi::HostResource /* result */)
882 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop,
883 ppapi::HostResource /* audio_id */,
884 bool /* play */)
886 // PPB_Core.
887 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource,
888 ppapi::HostResource)
889 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource,
890 ppapi::HostResource)
892 // PPB_Graphics3D.
893 IPC_SYNC_MESSAGE_ROUTED3_3(PpapiHostMsg_PPBGraphics3D_Create,
894 PP_Instance /* instance */,
895 ppapi::HostResource /* share_context */,
896 std::vector<int32_t> /* attrib_list */,
897 ppapi::HostResource /* result */,
898 gpu::Capabilities /* capabilities */,
899 ppapi::proxy::SerializedHandle /* shared_state */)
900 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer,
901 ppapi::HostResource /* context */,
902 int32 /* transfer_buffer_id */)
903 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBGraphics3D_WaitForTokenInRange,
904 ppapi::HostResource /* context */,
905 int32 /* start */,
906 int32 /* end */,
907 gpu::CommandBuffer::State /* state */,
908 bool /* success */)
909 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBGraphics3D_WaitForGetOffsetInRange,
910 ppapi::HostResource /* context */,
911 int32 /* start */,
912 int32 /* end */,
913 gpu::CommandBuffer::State /* state */,
914 bool /* success */)
915 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics3D_AsyncFlush,
916 ppapi::HostResource /* context */,
917 int32 /* put_offset */)
918 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer,
919 ppapi::HostResource /* context */,
920 uint32 /* size */,
921 int32 /* id */,
922 ppapi::proxy::SerializedHandle /* transfer_buffer */)
923 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer,
924 ppapi::HostResource /* context */,
925 int32 /* id */)
926 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics3D_SwapBuffers,
927 ppapi::HostResource /* graphics_3d */)
928 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBGraphics3D_InsertSyncPoint,
929 ppapi::HostResource /* context */,
930 uint32 /* sync_point */)
931 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBGraphics3D_InsertFutureSyncPoint,
932 ppapi::HostResource /* context */,
933 uint32 /* sync_point */)
934 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics3D_RetireSyncPoint,
935 ppapi::HostResource /* context */,
936 uint32 /* sync_point */)
938 // PPB_ImageData.
939 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_CreatePlatform,
940 PP_Instance /* instance */,
941 int32 /* format */,
942 PP_Size /* size */,
943 PP_Bool /* init_to_zero */,
944 ppapi::HostResource /* result_resource */,
945 PP_ImageDataDesc /* image_data_desc */,
946 ppapi::proxy::ImageHandle /* result */)
947 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_CreateSimple,
948 PP_Instance /* instance */,
949 int32 /* format */,
950 PP_Size /* size */,
951 PP_Bool /* init_to_zero */,
952 ppapi::HostResource /* result_resource */,
953 PP_ImageDataDesc /* image_data_desc */,
954 ppapi::proxy::SerializedHandle /* result */)
956 // PPB_Instance.
957 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject,
958 PP_Instance /* instance */,
959 ppapi::proxy::SerializedVar /* result */)
960 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject,
961 PP_Instance /* instance */,
962 ppapi::proxy::SerializedVar /* result */)
963 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_BindGraphics,
964 PP_Instance /* instance */,
965 PP_Resource /* device */)
966 IPC_SYNC_MESSAGE_ROUTED1_1(
967 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputSampleRate,
968 PP_Instance /* instance */,
969 uint32_t /* result */)
970 IPC_SYNC_MESSAGE_ROUTED1_1(
971 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputBufferSize,
972 PP_Instance /* instance */,
973 uint32_t /* result */)
974 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_IsFullFrame,
975 PP_Instance /* instance */,
976 PP_Bool /* result */)
977 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBInstance_ExecuteScript,
978 PP_Instance /* instance */,
979 ppapi::proxy::SerializedVar /* script */,
980 ppapi::proxy::SerializedVar /* out_exception */,
981 ppapi::proxy::SerializedVar /* result */)
982 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetDefaultCharSet,
983 PP_Instance /* instance */,
984 ppapi::proxy::SerializedVar /* result */)
985 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_SetFullscreen,
986 PP_Instance /* instance */,
987 PP_Bool /* fullscreen */,
988 PP_Bool /* result */)
989 IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetScreenSize,
990 PP_Instance /* instance */,
991 PP_Bool /* result */,
992 PP_Size /* size */)
993 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_RequestInputEvents,
994 PP_Instance /* instance */,
995 bool /* is_filtering */,
996 uint32_t /* event_classes */)
997 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_ClearInputEvents,
998 PP_Instance /* instance */,
999 uint32_t /* event_classes */)
1000 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_StartTrackingLatency,
1001 PP_Instance /* instance */)
1002 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PostMessage,
1003 PP_Instance /* instance */,
1004 ppapi::proxy::SerializedVar /* message */)
1005 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_LockMouse,
1006 PP_Instance /* instance */)
1007 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_UnlockMouse,
1008 PP_Instance /* instance */)
1009 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_ResolveRelativeToDocument,
1010 PP_Instance /* instance */,
1011 ppapi::proxy::SerializedVar /* relative */,
1012 ppapi::proxy::SerializedVar /* result */)
1013 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanRequest,
1014 PP_Instance /* instance */,
1015 ppapi::proxy::SerializedVar /* relative */,
1016 PP_Bool /* result */)
1017 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanAccessDocument,
1018 PP_Instance /* active */,
1019 PP_Instance /* target */,
1020 PP_Bool /* result */)
1021 IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetDocumentURL,
1022 PP_Instance /* active */,
1023 PP_URLComponents_Dev /* components */,
1024 ppapi::proxy::SerializedVar /* result */)
1025 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetPluginInstanceURL,
1026 PP_Instance /* active */,
1027 ppapi::proxy::SerializedVar /* result */)
1028 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetPluginReferrerURL,
1029 PP_Instance /* instance */,
1030 ppapi::proxy::SerializedVar /* result */)
1031 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SetCursor,
1032 PP_Instance /* instance */,
1033 int32_t /* type */,
1034 ppapi::HostResource /* custom_image */,
1035 PP_Point /* hot_spot */)
1036 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SetTextInputType,
1037 PP_Instance /* instance */,
1038 PP_TextInput_Type /* type */)
1039 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_UpdateCaretPosition,
1040 PP_Instance /* instance */,
1041 PP_Rect /* caret */,
1042 PP_Rect /* bounding_box */)
1043 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_CancelCompositionText,
1044 PP_Instance /* instance */)
1045 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_UpdateSurroundingText,
1046 PP_Instance /* instance */,
1047 std::string /* text */,
1048 uint32_t /* caret */,
1049 uint32_t /* anchor */)
1051 // PPB_Var.
1052 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVar_AddRefObject,
1053 int64 /* object_id */)
1054 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_ReleaseObject,
1055 int64 /* object_id */)
1056 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasProperty,
1057 ppapi::proxy::SerializedVar /* object */,
1058 ppapi::proxy::SerializedVar /* property */,
1059 ppapi::proxy::SerializedVar /* out_exception */,
1060 PP_Bool /* result */)
1061 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasMethodDeprecated,
1062 ppapi::proxy::SerializedVar /* object */,
1063 ppapi::proxy::SerializedVar /* method */,
1064 ppapi::proxy::SerializedVar /* out_exception */,
1065 PP_Bool /* result */)
1066 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_GetProperty,
1067 ppapi::proxy::SerializedVar /* object */,
1068 ppapi::proxy::SerializedVar /* property */,
1069 ppapi::proxy::SerializedVar /* out_exception */,
1070 ppapi::proxy::SerializedVar /* result */)
1071 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_DeleteProperty,
1072 ppapi::proxy::SerializedVar /* object */,
1073 ppapi::proxy::SerializedVar /* property */,
1074 ppapi::proxy::SerializedVar /* out_exception */,
1075 PP_Bool /* result */)
1076 IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBVar_EnumerateProperties,
1077 ppapi::proxy::SerializedVar /* object */,
1078 std::vector<ppapi::proxy::SerializedVar> /* props */,
1079 ppapi::proxy::SerializedVar /* out_exception */)
1080 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_SetPropertyDeprecated,
1081 ppapi::proxy::SerializedVar /* object */,
1082 ppapi::proxy::SerializedVar /* name */,
1083 ppapi::proxy::SerializedVar /* value */,
1084 ppapi::proxy::SerializedVar /* out_exception */)
1085 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_CallDeprecated,
1086 ppapi::proxy::SerializedVar /* object */,
1087 ppapi::proxy::SerializedVar /* method_name */,
1088 std::vector<ppapi::proxy::SerializedVar> /* args */,
1089 ppapi::proxy::SerializedVar /* out_exception */,
1090 ppapi::proxy::SerializedVar /* result */)
1091 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_Construct,
1092 ppapi::proxy::SerializedVar /* object */,
1093 std::vector<ppapi::proxy::SerializedVar> /* args */,
1094 ppapi::proxy::SerializedVar /* out_exception */,
1095 ppapi::proxy::SerializedVar /* result */)
1096 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated,
1097 ppapi::proxy::SerializedVar /* var */,
1098 int64 /* object_class */,
1099 int64 /* object-data */,
1100 PP_Bool /* result */)
1101 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated,
1102 PP_Instance /* instance */,
1103 int64 /* object_class */,
1104 int64 /* object_data */,
1105 ppapi::proxy::SerializedVar /* result */)
1107 #if !defined(OS_NACL) && !defined(NACL_WIN64)
1108 // PPB_Broker.
1109 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBBroker_Create,
1110 PP_Instance /* instance */,
1111 ppapi::HostResource /* result_resource */)
1112 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBBroker_Connect,
1113 ppapi::HostResource /* broker */)
1115 // PPB_Buffer.
1116 IPC_SYNC_MESSAGE_ROUTED2_2(
1117 PpapiHostMsg_PPBBuffer_Create,
1118 PP_Instance /* instance */,
1119 uint32_t /* size */,
1120 ppapi::HostResource /* result_resource */,
1121 ppapi::proxy::SerializedHandle /* result_shm_handle */)
1123 // PPB_ContentDecryptor_Dev messages handled in PPB_Instance_Proxy.
1124 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PromiseResolved,
1125 PP_Instance /* instance */,
1126 uint32_t /* promise_id */)
1127 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_PromiseResolvedWithSession,
1128 PP_Instance /* instance */,
1129 uint32_t /* promise_id */,
1130 ppapi::proxy::SerializedVar /* web_session_id, String */)
1131 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_PromiseResolvedWithKeyIds,
1132 PP_Instance /* instance */,
1133 uint32_t /* promise_id */,
1134 std::vector<std::vector<uint8_t> > /* key_ids */)
1135 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_PromiseRejected,
1136 PP_Instance /* instance */,
1137 uint32_t /* promise_id */,
1138 PP_CdmExceptionCode /* exception_code */,
1139 int32_t /* system_code */,
1140 ppapi::proxy::SerializedVar /* error_description, String */)
1141 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SessionMessage,
1142 PP_Instance /* instance */,
1143 ppapi::proxy::SerializedVar /* web_session_id, String */,
1144 ppapi::proxy::SerializedVar /* message, ArrayBuffer */,
1145 ppapi::proxy::SerializedVar /* destination_url, String */)
1146 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_SessionKeysChange,
1147 PP_Instance /* instance */,
1148 std::string /* web_session_id */,
1149 PP_Bool /* has_additional_usable_key */)
1150 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_SessionExpirationChange,
1151 PP_Instance /* instance */,
1152 std::string /* web_session_id */,
1153 PP_Time /* new_expiry_time */)
1154 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SessionReady,
1155 PP_Instance /* instance */,
1156 ppapi::proxy::SerializedVar /* web_session_id, String */)
1157 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SessionClosed,
1158 PP_Instance /* instance */,
1159 ppapi::proxy::SerializedVar /* web_session_id, String */)
1160 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_SessionError,
1161 PP_Instance /* instance */,
1162 ppapi::proxy::SerializedVar /* web_session_id, String */,
1163 PP_CdmExceptionCode /* exception_code */,
1164 int32_t /* system_code */,
1165 ppapi::proxy::SerializedVar /* error_description, String */)
1166 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverBlock,
1167 PP_Instance /* instance */,
1168 PP_Resource /* decrypted_block, PPB_Buffer_Dev */,
1169 std::string /* serialized_block_info */)
1170 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_DecoderInitializeDone,
1171 PP_Instance /* instance */,
1172 PP_DecryptorStreamType /* decoder_type */,
1173 uint32_t /* request_id */,
1174 PP_Bool /* success */)
1175 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DecoderDeinitializeDone,
1176 PP_Instance /* instance */,
1177 PP_DecryptorStreamType /* decoder_type */,
1178 uint32_t /* request_id */)
1179 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DecoderResetDone,
1180 PP_Instance /* instance */,
1181 PP_DecryptorStreamType /* decoder_type */,
1182 uint32_t /* request_id */)
1183 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverFrame,
1184 PP_Instance /* instance */,
1185 PP_Resource /* decrypted_frame, PPB_Buffer_Dev */,
1186 std::string /* serialized_block_info */)
1187 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverSamples,
1188 PP_Instance /* instance */,
1189 PP_Resource /* audio_frames, PPB_Buffer_Dev */,
1190 std::string /* serialized_block_info */)
1191 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
1193 // PPB_Testing.
1194 IPC_SYNC_MESSAGE_ROUTED3_1(
1195 PpapiHostMsg_PPBTesting_ReadImageData,
1196 ppapi::HostResource /* device_context_2d */,
1197 ppapi::HostResource /* image */,
1198 PP_Point /* top_left */,
1199 PP_Bool /* result */)
1200 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance,
1201 PP_Instance /* instance */,
1202 uint32 /* result */)
1203 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTesting_SimulateInputEvent,
1204 PP_Instance /* instance */,
1205 ppapi::InputEventData /* input_event */)
1206 IPC_SYNC_MESSAGE_ROUTED1_0(
1207 PpapiHostMsg_PPBTesting_SetMinimumArrayBufferSizeForShmem,
1208 uint32_t /* threshold */)
1210 #if !defined(OS_NACL) && !defined(NACL_WIN64)
1212 // PPB_VideoDecoder_Dev.
1213 // (Messages from plugin to renderer.)
1214 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVideoDecoder_Create,
1215 PP_Instance /* instance */,
1216 ppapi::HostResource /* context */,
1217 PP_VideoDecoder_Profile /* profile */,
1218 ppapi::HostResource /* result */)
1219 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoDecoder_Decode,
1220 ppapi::HostResource /* video_decoder */,
1221 ppapi::HostResource /* bitstream buffer */,
1222 int32 /* bitstream buffer id */,
1223 uint32 /* size of buffer */)
1224 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_AssignPictureBuffers,
1225 ppapi::HostResource /* video_decoder */,
1226 std::vector<PP_PictureBuffer_Dev> /* picture buffers */)
1227 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer,
1228 ppapi::HostResource /* video_decoder */,
1229 int32_t /* picture buffer id */)
1230 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush,
1231 ppapi::HostResource /* video_decoder */)
1232 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset,
1233 ppapi::HostResource /* video_decoder */)
1234 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy,
1235 ppapi::HostResource /* video_decoder */)
1237 // PPB_VideoDecoder_Dev.
1238 // (Messages from renderer to plugin to notify it to run callbacks.)
1239 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK,
1240 ppapi::HostResource /* video_decoder */,
1241 int32_t /* bitstream buffer id */,
1242 int32_t /* PP_CompletionCallback result */)
1243 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_FlushACK,
1244 ppapi::HostResource /* video_decoder */,
1245 int32_t /* PP_CompletionCallback result */)
1246 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_ResetACK,
1247 ppapi::HostResource /* video_decoder */,
1248 int32_t /* PP_CompletionCallback result */)
1250 // PPP_VideoDecoder_Dev.
1251 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPVideoDecoder_ProvidePictureBuffers,
1252 ppapi::HostResource /* video_decoder */,
1253 uint32_t /* requested number of buffers */,
1254 PP_Size /* dimensions of buffers */,
1255 uint32_t /* texture_target */)
1256 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_DismissPictureBuffer,
1257 ppapi::HostResource /* video_decoder */,
1258 int32_t /* picture buffer id */)
1259 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_PictureReady,
1260 ppapi::HostResource /* video_decoder */,
1261 PP_Picture_Dev /* output picture */)
1262 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_NotifyError,
1263 ppapi::HostResource /* video_decoder */,
1264 PP_VideoDecodeError_Dev /* error */)
1265 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
1267 // PPB_X509Certificate_Private
1268 IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER,
1269 std::vector<char> /* der */,
1270 bool /* succeeded */,
1271 ppapi::PPB_X509Certificate_Fields /* result */)
1273 //-----------------------------------------------------------------------------
1274 // Resource call/reply messages.
1276 // These are the new-style resource implementations where the resource is only
1277 // implemented in the proxy and "resource messages" are sent between this and a
1278 // host object. Resource messages are a wrapper around some general routing
1279 // information and a separate message of a type defined by the specific resource
1280 // sending/receiving it. The extra paremeters allow the nested message to be
1281 // routed automatically to the correct resource.
1283 // Notification that a resource has been created in the plugin. The nested
1284 // message will be resource-type-specific.
1285 IPC_MESSAGE_CONTROL3(PpapiHostMsg_ResourceCreated,
1286 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1287 PP_Instance /* instance */,
1288 IPC::Message /* nested_msg */)
1290 // Notification that a resource has been destroyed in the plugin.
1291 IPC_MESSAGE_CONTROL1(PpapiHostMsg_ResourceDestroyed,
1292 PP_Resource /* resource */)
1294 // Most resources are created by the plugin, which then sends a ResourceCreated
1295 // message to create a corresponding ResourceHost in the renderer or browser
1296 // host process. However, some resources are first created in the host and
1297 // "pushed" or returned to the plugin.
1299 // In this case, the host will create a "pending" ResourceHost object which
1300 // is identified by an ID. The ID is sent to the plugin process and the
1301 // PluginResource object is created. This message is sent from the plugin to
1302 // the host process to connect the PluginResource and the pending ResourceHost
1303 // (at which point, it's no longer pending).
1304 IPC_MESSAGE_CONTROL2(PpapiHostMsg_AttachToPendingHost,
1305 PP_Resource /* resource */,
1306 int /* pending_host_id */)
1308 // A resource call is a request from the plugin to the host. It may or may not
1309 // require a reply, depending on the params. The nested message will be
1310 // resource-type-specific.
1311 IPC_MESSAGE_CONTROL2(PpapiHostMsg_ResourceCall,
1312 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1313 IPC::Message /* nested_msg */)
1314 IPC_MESSAGE_CONTROL3(PpapiHostMsg_InProcessResourceCall,
1315 int /* routing_id */,
1316 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1317 IPC::Message /* nested_msg */)
1319 // A resource reply is a response to a ResourceCall from a host to the
1320 // plugin. The resource ID + sequence number in the params will correspond to
1321 // that of the previous ResourceCall.
1322 IPC_MESSAGE_CONTROL2(
1323 PpapiPluginMsg_ResourceReply,
1324 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1325 IPC::Message /* nested_msg */)
1326 IPC_MESSAGE_ROUTED2(
1327 PpapiHostMsg_InProcessResourceReply,
1328 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1329 IPC::Message /* nested_msg */)
1331 IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_ResourceSyncCall,
1332 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1333 IPC::Message /* nested_msg */,
1334 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1335 IPC::Message /* reply_msg */)
1337 // This message is sent from the renderer to the browser when it wants to create
1338 // ResourceHosts in the browser. It contains the process ID of the plugin and
1339 // the instance of the plugin for which to create the resource for. params
1340 // contains the sequence number for the message to track the response.
1341 // The nested messages are ResourceHost creation messages.
1342 IPC_MESSAGE_CONTROL5(
1343 PpapiHostMsg_CreateResourceHostsFromHost,
1344 int /* routing_id */,
1345 int /* child_process_id */,
1346 ppapi::proxy::ResourceMessageCallParams /* params */,
1347 PP_Instance /* instance */,
1348 std::vector<IPC::Message> /* nested_msgs */)
1350 // This message is sent from the browser to the renderer when it has created
1351 // ResourceHosts for the renderer. It contains the sequence number that was sent
1352 // in the request and the IDs of the pending ResourceHosts which were created in
1353 // the browser. These IDs are only useful for the plugin which can attach to the
1354 // ResourceHosts in the browser.
1355 IPC_MESSAGE_ROUTED2(
1356 PpapiHostMsg_CreateResourceHostsFromHostReply,
1357 int32_t /* sequence */,
1358 std::vector<int> /* pending_host_ids */)
1360 //-----------------------------------------------------------------------------
1361 // Messages for resources using call/reply above.
1363 // Broker ----------------------------------------------------------------------
1364 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_Create)
1366 // Queries whether the plugin has permission to connect to the Pepper broker.
1367 // The response is contained in the error value of the
1368 // ResourceMessageReplyParams in the reply message.
1369 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_IsAllowed)
1371 // UMA
1372 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UMA_Create)
1373 IPC_MESSAGE_CONTROL5(PpapiHostMsg_UMA_HistogramCustomTimes,
1374 std::string /* name */,
1375 int64_t /* sample */,
1376 int64_t /* min */,
1377 int64_t /* max */,
1378 uint32_t /* bucket_count */)
1379 IPC_MESSAGE_CONTROL5(PpapiHostMsg_UMA_HistogramCustomCounts,
1380 std::string /* name */,
1381 int32_t /* sample */,
1382 int32_t /* min */,
1383 int32_t /* max */,
1384 uint32_t /* bucket_count */)
1385 IPC_MESSAGE_CONTROL3(PpapiHostMsg_UMA_HistogramEnumeration,
1386 std::string /* name */,
1387 int32_t /* sample */,
1388 int32_t /* boundary_value */)
1389 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UMA_IsCrashReportingEnabled)
1390 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UMA_IsCrashReportingEnabledReply)
1392 // Compositor
1393 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Compositor_Create)
1394 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Compositor_CommitLayers,
1395 std::vector<ppapi::CompositorLayerData> /* layers */,
1396 bool /* reset */)
1397 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Compositor_CommitLayersReply)
1398 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_Compositor_ReleaseResource,
1399 int32_t /* id */,
1400 uint32_t /* sync_point */,
1401 bool /* is_lost */)
1403 // File chooser.
1404 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create)
1405 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show,
1406 bool /* save_as */,
1407 bool /* open_multiple */,
1408 std::string /* suggested_file_name */,
1409 std::vector<std::string> /* accept_mime_types */)
1410 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply,
1411 std::vector<ppapi::FileRefCreateInfo> /* files */)
1413 // FileIO
1414 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Create)
1415 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Open,
1416 PP_Resource /* file_ref_resource */,
1417 int32_t /* open_flags */)
1418 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileIO_OpenReply,
1419 PP_Resource /* quota_file_system */,
1420 int64_t /* file_size */)
1421 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_Close,
1422 ppapi::FileGrowth /* file_growth */)
1423 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Touch,
1424 PP_Time /* last_access_time */,
1425 PP_Time /* last_modified_time */)
1426 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_SetLength,
1427 int64_t /* length */)
1428 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Flush)
1429 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_RequestOSFileHandle)
1430 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_RequestOSFileHandleReply)
1431 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_GeneralReply)
1433 // FileRef
1434 // Creates a FileRef to a path on an external file system. This message may
1435 // only be sent from the renderer.
1436 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileRef_CreateForRawFS,
1437 base::FilePath /* external_path */)
1439 // Creates a FileRef to a path on a file system that uses fileapi.
1440 // This message may be sent from the renderer or the plugin.
1441 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileRef_CreateForFileAPI,
1442 PP_Resource /* file_system */,
1443 std::string /* internal_path */)
1445 // Requests that the browser create a directory at the location indicated by
1446 // the FileRef.
1447 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileRef_MakeDirectory,
1448 int32_t /* make_directory_flags */)
1449 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileRef_MakeDirectoryReply)
1451 // Requests that the browser update the last accessed and last modified times
1452 // at the location indicated by the FileRef.
1453 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileRef_Touch,
1454 PP_Time /* last_accessed */,
1455 PP_Time /* last_modified */)
1456 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileRef_TouchReply)
1458 // Requests that the browser delete a file or directory at the location
1459 // indicated by the FileRef.
1460 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_Delete)
1461 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileRef_DeleteReply)
1463 // Requests that the browser rename a file or directory at the location
1464 // indicated by the FileRef.
1465 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileRef_Rename,
1466 PP_Resource /* new_file_ref */)
1467 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileRef_RenameReply)
1469 // Requests that the browser retrieve metadata information for a file or
1470 // directory at the location indicated by the FileRef.
1471 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_Query)
1472 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileRef_QueryReply,
1473 PP_FileInfo /* file_info */)
1475 // Requests that the browser retrieve then entries in a directory at the
1476 // location indicated by the FileRef.
1477 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_ReadDirectoryEntries)
1479 // FileRefCreateInfo does not provide file type information, so two
1480 // corresponding vectors are returned.
1481 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileRef_ReadDirectoryEntriesReply,
1482 std::vector<ppapi::FileRefCreateInfo> /* files */,
1483 std::vector<PP_FileType> /* file_types */)
1485 // Requests that the browser reply with the absolute path to the indicated
1486 // file.
1487 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_GetAbsolutePath)
1488 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileRef_GetAbsolutePathReply,
1489 std::string /* absolute_path */)
1491 // FileSystem
1492 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileSystem_Create,
1493 PP_FileSystemType /* type */)
1494 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileSystem_Open,
1495 int64_t /* expected_size */)
1496 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileSystem_OpenReply)
1497 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_InitIsolatedFileSystem,
1498 std::string /* fsid */,
1499 PP_IsolatedFileSystemType_Private /* type */)
1500 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileSystem_InitIsolatedFileSystemReply)
1501 // Passed from renderer to browser. Creates an already-open file system with a
1502 // given |root_url| and |file_system_type|.
1503 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_CreateFromRenderer,
1504 std::string /* root_url */,
1505 PP_FileSystemType /* file_system_type */)
1506 // Nested within a ResourceVar for file systems being passed from the renderer
1507 // to the plugin. Creates an already-open file system resource on the plugin,
1508 // linked to the existing resource host given in the ResourceVar.
1509 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileSystem_CreateFromPendingHost,
1510 PP_FileSystemType /* file_system_type */)
1511 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_ReserveQuota,
1512 int64_t /* amount */,
1513 ppapi::FileGrowthMap /* file_growths */)
1514 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileSystem_ReserveQuotaReply,
1515 int64_t /* amount */,
1516 ppapi::FileSizeMap /* file_sizes */)
1518 // Gamepad.
1519 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create)
1521 // Requests that the gamepad host send the shared memory handle to the plugin
1522 // process.
1523 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_RequestMemory)
1525 // Reply to a RequestMemory call. This supplies the shared memory handle. The
1526 // actual handle is passed in the ReplyParams struct.
1527 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Gamepad_SendMemory)
1530 // Graphics2D, plugin -> host
1531 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_Create,
1532 PP_Size /* size */,
1533 PP_Bool /* is_always_opaque */)
1534 IPC_MESSAGE_CONTROL4(PpapiHostMsg_Graphics2D_PaintImageData,
1535 ppapi::HostResource /* image_data */,
1536 PP_Point /* top_left */,
1537 bool /* src_rect_specified */,
1538 PP_Rect /* src_rect */)
1539 IPC_MESSAGE_CONTROL3(PpapiHostMsg_Graphics2D_Scroll,
1540 bool /* clip_specified */,
1541 PP_Rect /* clip */,
1542 PP_Point /* amount */)
1543 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_ReplaceContents,
1544 ppapi::HostResource /* image_data */)
1545 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_SetScale,
1546 float /* scale */)
1548 // Graphics2D, plugin -> host -> plugin
1549 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_Flush,
1550 std::vector<ui::LatencyInfo> /* latency_info */)
1551 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_FlushAck)
1553 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_ReadImageData,
1554 PP_Resource /* image */,
1555 PP_Point /* top_left */)
1556 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck)
1558 // IsolatedFileSystem
1559 IPC_MESSAGE_CONTROL0(PpapiHostMsg_IsolatedFileSystem_Create)
1560 IPC_MESSAGE_CONTROL1(PpapiHostMsg_IsolatedFileSystem_BrowserOpen,
1561 PP_IsolatedFileSystemType_Private /* type */)
1562 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_IsolatedFileSystem_BrowserOpenReply,
1563 std::string /* fsid */)
1565 // MediaStream -----------------------------------------------------------------
1566 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamAudioTrack_CreateFromPendingHost,
1567 std::string /* track_id */)
1568 IPC_MESSAGE_CONTROL1(
1569 PpapiHostMsg_MediaStreamAudioTrack_Configure,
1570 ppapi::MediaStreamAudioTrackShared::Attributes /* attributes */)
1571 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_MediaStreamAudioTrack_ConfigureReply)
1572 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamVideoTrack_CreateFromPendingHost,
1573 std::string /* track_id */)
1574 IPC_MESSAGE_CONTROL0(PpapiHostMsg_MediaStreamVideoTrack_Create)
1575 IPC_MESSAGE_CONTROL1(
1576 PpapiHostMsg_MediaStreamVideoTrack_Configure,
1577 ppapi::MediaStreamVideoTrackShared::Attributes /* attributes */)
1578 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamVideoTrack_ConfigureReply,
1579 std::string /* track_id */)
1581 // Message for init buffers. It also takes a shared memory handle which is put
1582 // in the outer ResourceReplyMessage.
1583 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_MediaStreamTrack_InitBuffers,
1584 int32_t /* number_of_buffers */,
1585 int32_t /* buffer_size */,
1586 bool /* readonly */)
1587 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamTrack_EnqueueBuffer,
1588 int32_t /* index */)
1589 IPC_MESSAGE_CONTROL1(PpapiHostMsg_MediaStreamTrack_EnqueueBuffer,
1590 int32_t /* index */)
1591 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamTrack_EnqueueBuffers,
1592 std::vector<int32_t> /* indices */)
1593 IPC_MESSAGE_CONTROL0(PpapiHostMsg_MediaStreamTrack_Close)
1595 // NetworkMonitor.
1596 IPC_MESSAGE_CONTROL0(PpapiHostMsg_NetworkMonitor_Create)
1597 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_NetworkMonitor_NetworkList,
1598 ppapi::proxy::SerializedNetworkList /* network_list */)
1599 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_NetworkMonitor_Forbidden)
1601 // NetworkProxy ----------------------------------------------------------------
1602 IPC_MESSAGE_CONTROL0(PpapiHostMsg_NetworkProxy_Create)
1604 // Query the browser for the proxy server to use for the given URL.
1605 IPC_MESSAGE_CONTROL1(PpapiHostMsg_NetworkProxy_GetProxyForURL,
1606 std::string /* url */)
1608 // Reply message for GetProxyForURL containing the proxy server.
1609 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_NetworkProxy_GetProxyForURLReply,
1610 std::string /* proxy */)
1612 // TrueTypeFont.
1613 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFontSingleton_Create)
1614 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFontSingleton_GetFontFamilies)
1615 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFontSingleton_GetFontFamiliesReply,
1616 std::vector<std::string> /* font_families */)
1617 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TrueTypeFontSingleton_GetFontsInFamily,
1618 std::string /* family */)
1619 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFontSingleton_GetFontsInFamilyReply,
1620 std::vector<ppapi::proxy::SerializedTrueTypeFontDesc>
1621 /* fonts */)
1622 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TrueTypeFont_Create,
1623 ppapi::proxy::SerializedTrueTypeFontDesc /* desc */)
1624 // Unsolicited reply to return the actual font's desc to the plugin.
1625 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_TrueTypeFont_CreateReply,
1626 ppapi::proxy::SerializedTrueTypeFontDesc /* desc */,
1627 int32_t /* result */)
1628 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFont_GetTableTags)
1629 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFont_GetTableTagsReply,
1630 std::vector<uint32_t> /* tags */)
1631 IPC_MESSAGE_CONTROL3(PpapiHostMsg_TrueTypeFont_GetTable,
1632 uint32_t /* table */,
1633 int32_t /* offset */,
1634 int32_t /* max_data_length */)
1635 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFont_GetTableReply,
1636 std::string /* data */)
1638 // Host Resolver ---------------------------------------------------------------
1639 // Creates a PPB_HostResolver resource.
1640 IPC_MESSAGE_CONTROL0(PpapiHostMsg_HostResolver_Create)
1642 // Creates a PPB_HostResolver_Private resource.
1643 IPC_MESSAGE_CONTROL0(PpapiHostMsg_HostResolver_CreatePrivate)
1645 // Resolves the given hostname.
1646 IPC_MESSAGE_CONTROL2(PpapiHostMsg_HostResolver_Resolve,
1647 ppapi::HostPortPair /* host_port */,
1648 PP_HostResolver_Private_Hint /* hint */)
1650 // This message is a reply to HostResolver_Resolve. On success,
1651 // |canonical_name| contains the canonical name of the host; |net_address_list|
1652 // is a list of network addresses. On failure, both fields are set to empty.
1653 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_HostResolver_ResolveReply,
1654 std::string /* canonical_name */,
1655 std::vector<PP_NetAddress_Private> /* net_address_list */)
1657 // Platform Verification -------------------------------------------------------
1658 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PlatformVerification_Create)
1659 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PlatformVerification_ChallengePlatform,
1660 std::string /* service_id */,
1661 std::vector<uint8_t> /* challenge */)
1662 IPC_MESSAGE_CONTROL3(PpapiHostMsg_PlatformVerification_ChallengePlatformReply,
1663 std::vector<uint8_t> /* signed_data */,
1664 std::vector<uint8_t> /* signed_data_signature */,
1665 std::string /* platform_key_certificate */)
1667 // Printing.
1668 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create)
1669 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings)
1670 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply,
1671 PP_PrintSettings_Dev /* print_settings */)
1673 // TCP Socket ------------------------------------------------------------------
1674 // Creates a PPB_TCPSocket resource.
1675 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Create,
1676 ppapi::TCPSocketVersion /* version */)
1678 // Creates a PPB_TCPSocket_Private resource.
1679 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_CreatePrivate)
1681 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Bind,
1682 PP_NetAddress_Private /* net_addr */)
1683 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPSocket_BindReply,
1684 PP_NetAddress_Private /* local_addr */)
1685 IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPSocket_Connect,
1686 std::string /* host */,
1687 uint16_t /* port */)
1688 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_ConnectWithNetAddress,
1689 PP_NetAddress_Private /* net_addr */)
1690 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_TCPSocket_ConnectReply,
1691 PP_NetAddress_Private /* local_addr */,
1692 PP_NetAddress_Private /* remote_addr */)
1693 IPC_MESSAGE_CONTROL4(PpapiHostMsg_TCPSocket_SSLHandshake,
1694 std::string /* server_name */,
1695 uint16_t /* server_port */,
1696 std::vector<std::vector<char> > /* trusted_certs */,
1697 std::vector<std::vector<char> > /* untrusted_certs */)
1698 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPSocket_SSLHandshakeReply,
1699 ppapi::PPB_X509Certificate_Fields /* certificate_fields */)
1700 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Read,
1701 int32_t /* bytes_to_read */)
1702 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPSocket_ReadReply,
1703 std::string /* data */)
1704 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Write,
1705 std::string /* data */)
1706 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_TCPSocket_WriteReply)
1707 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Listen,
1708 int32_t /* backlog */)
1709 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_TCPSocket_ListenReply)
1710 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_Accept)
1711 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_TCPSocket_AcceptReply,
1712 int /* pending_host_id*/,
1713 PP_NetAddress_Private /* local_addr */,
1714 PP_NetAddress_Private /* remote_addr */)
1715 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_Close)
1716 IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPSocket_SetOption,
1717 PP_TCPSocket_Option /* name */,
1718 ppapi::SocketOptionData /* value */)
1719 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_TCPSocket_SetOptionReply)
1721 // TCP Server Socket -----------------------------------------------------------
1722 // Creates a PPB_TCPServerSocket_Private resource.
1723 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_CreatePrivate)
1725 IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPServerSocket_Listen,
1726 PP_NetAddress_Private /* addr */,
1727 int32_t /* backlog */)
1728 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPServerSocket_ListenReply,
1729 PP_NetAddress_Private /* local_addr */)
1730 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_Accept)
1731 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_TCPServerSocket_AcceptReply,
1732 int /* pending_resource_id */,
1733 PP_NetAddress_Private /* local_addr */,
1734 PP_NetAddress_Private /* remote_addr */)
1735 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_StopListening)
1737 // UDP Socket ------------------------------------------------------------------
1738 // Creates a PPB_UDPSocket resource.
1739 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Create)
1741 // Creates a PPB_UDPSocket_Private resource.
1742 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_CreatePrivate)
1744 IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocket_SetOption,
1745 PP_UDPSocket_Option /* name */,
1746 ppapi::SocketOptionData /* value */)
1747 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UDPSocket_SetOptionReply)
1748 IPC_MESSAGE_CONTROL1(PpapiHostMsg_UDPSocket_Bind,
1749 PP_NetAddress_Private /* net_addr */)
1750 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_UDPSocket_BindReply,
1751 PP_NetAddress_Private /* bound_addr */)
1752 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_UDPSocket_PushRecvResult,
1753 int32_t /* result */,
1754 std::string /* data */,
1755 PP_NetAddress_Private /* remote_addr */)
1756 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_RecvSlotAvailable)
1757 IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocket_SendTo,
1758 std::string /* data */,
1759 PP_NetAddress_Private /* net_addr */)
1760 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_UDPSocket_SendToReply,
1761 int32_t /* bytes_written */)
1762 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Close)
1764 // URLLoader ------------------------------------------------------------------
1766 IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_Create)
1768 // These messages correspond to PPAPI calls and all should get a
1769 // CallbackComplete message.
1770 IPC_MESSAGE_CONTROL1(PpapiHostMsg_URLLoader_Open,
1771 ppapi::URLRequestInfoData /* request_data */)
1773 // The plugin can tell the host to defer a load to hold off on sending more
1774 // data because the buffer in the plugin is full. When defers_loading is set to
1775 // false, data streaming will resume.
1777 // When auditing redirects (no auto follow) the load will be automatically
1778 // deferred each time we get a redirect. The plugin will reset this to false
1779 // by sending this message when it wants to continue following the redirect.
1781 // When streaming data, the host may still send more data after this call (for
1782 // example, it could already be in-flight at the time of this request).
1783 IPC_MESSAGE_CONTROL1(PpapiHostMsg_URLLoader_SetDeferLoading,
1784 bool /* defers_loading */)
1786 // Closes the URLLoader. There is no reply.
1787 IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_Close)
1789 // Requests that cross-site restrictions be ignored. The plugin must have
1790 // the private permission set. Otherwise this message will be ignored by the
1791 // renderer. There is no reply.
1792 IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_GrantUniversalAccess)
1794 // Push notification that a response is available.
1795 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_URLLoader_ReceivedResponse,
1796 ppapi::URLResponseInfoData /* response */)
1798 // Push notification with load data from the renderer. It is a custom generated
1799 // message with the response data (array of bytes stored via WriteData)
1800 // appended.
1801 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_URLLoader_SendData)
1803 // Push notification indicating that all data has been sent, either via
1804 // SendData or by streaming it to a file. Note that since this is a push
1805 // notification, we don't use the result field of the ResourceMessageReply.
1806 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_URLLoader_FinishedLoading,
1807 int32_t /* result */)
1809 // Push notification from the renderer to the plugin to tell it about download
1810 // and upload progress. This will only be sent if the plugin has requested
1811 // progress updates, and only the fields requested by the plugin will be
1812 // valid.
1813 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_URLLoader_UpdateProgress,
1814 int64_t /* bytes_sent */,
1815 int64_t /* total_bytes_to_be_sent */,
1816 int64_t /* bytes_received */,
1817 int64_t /* total_bytes_to_be_received */)
1819 // Shared memory ---------------------------------------------------------------
1821 // Creates shared memory on the host side, returning a handle to the shared
1822 // memory on the plugin and keeping the memory mapped in on the host.
1823 // We return a "host handle_id" that can be mapped back to the
1824 // handle on the host side by PpapiGlobals::UntrackSharedMemoryHandle().
1825 IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_SharedMemory_CreateSharedMemory,
1826 PP_Instance /* instance */,
1827 uint32_t /* size */,
1828 int /* host_handle_id */,
1829 ppapi::proxy::SerializedHandle /* plugin_handle */)
1831 // MediaStream -----------------------------------------------------------------
1833 // VideoDestination Private.
1834 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDestination_Create)
1835 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoDestination_Open,
1836 std::string /* stream_url */)
1837 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDestination_OpenReply)
1838 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDestination_PutFrame,
1839 ppapi::HostResource /* image_data */,
1840 PP_TimeTicks /* timestamp */)
1841 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDestination_Close)
1843 // VideoSource Private.
1844 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Create)
1845 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoSource_Open,
1846 std::string /* stream_url */)
1847 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoSource_OpenReply)
1848 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_GetFrame)
1849 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoSource_GetFrameReply,
1850 ppapi::HostResource /* resource_id */,
1851 PP_ImageDataDesc /* image_data_desc */,
1852 PP_TimeTicks /* timestamp */)
1853 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Close)
1855 // WebSocket -------------------------------------------------------------------
1857 IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create)
1859 // Establishes the connection to a server. This message requires
1860 // WebSocket_ConnectReply as a reply message.
1861 IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Connect,
1862 std::string /* url */,
1863 std::vector<std::string> /* protocols */)
1865 // Closes established connection with graceful closing handshake. This message
1866 // requires WebSocket_CloseReply as a reply message.
1867 IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Close,
1868 int32_t /* code */,
1869 std::string /* reason */)
1871 // Sends a text frame to the server. No reply is defined.
1872 IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_SendText,
1873 std::string /* message */)
1875 // Sends a binary frame to the server. No reply is defined.
1876 IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_SendBinary,
1877 std::vector<uint8_t> /* message */)
1879 // Fails the connection. This message invokes RFC6455 defined
1880 // _Fail the WebSocket Connection_ operation. No reply is defined.
1881 IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_Fail,
1882 std::string /* message */)
1884 // This message is a reply to WebSocket_Connect. If the |url| and |protocols|
1885 // are invalid, WebSocket_ConnectReply is issued immediately and it contains
1886 // proper error code in its result. Otherwise, WebSocket_ConnectReply is sent
1887 // with valid |url|, |protocol|, and result PP_OK. |protocol| is not a passed
1888 // |protocols|, but a result of opening handshake negotiation. If the
1889 // connection can not be established successfully, WebSocket_ConnectReply is
1890 // not issued, but WebSocket_ClosedReply is sent instead.
1891 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_WebSocket_ConnectReply,
1892 std::string /* url */,
1893 std::string /* protocol */)
1895 // This message is a reply to WebSocket_Close. If the operation fails,
1896 // WebSocket_CloseReply is issued immediately and it contains PP_ERROR_FAILED.
1897 // Otherwise, CloseReply will be issued after the closing handshake is
1898 // finished. All arguments will be valid iff the result is PP_OK and it means
1899 // that the client initiated closing handshake is finished gracefully.
1900 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_WebSocket_CloseReply,
1901 uint64_t /* buffered_amount */,
1902 bool /* was_clean */,
1903 uint16_t /* code */,
1904 std::string /* reason */)
1906 // Unsolicited reply message to transmit a receiving text frame.
1907 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_ReceiveTextReply,
1908 std::string /* message */)
1910 // Unsolicited reply message to transmit a receiving binary frame.
1911 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_ReceiveBinaryReply,
1912 std::vector<uint8_t> /* message */)
1914 // Unsolicited reply message to notify a error on underlying network connetion.
1915 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_WebSocket_ErrorReply)
1917 // Unsolicited reply message to update the buffered amount value.
1918 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_BufferedAmountReply,
1919 uint64_t /* buffered_amount */)
1921 // Unsolicited reply message to update |state| because of incoming external
1922 // events, e.g., protocol error, or unexpected network closure.
1923 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_StateReply,
1924 int32_t /* state */)
1926 // Unsolicited reply message to notify that the connection is closed without
1927 // any WebSocket_Close request. Server initiated closing handshake or
1928 // unexpected network errors will invoke this message.
1929 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_WebSocket_ClosedReply,
1930 uint64_t /* buffered_amount */,
1931 bool /* was_clean */,
1932 uint16_t /* code */,
1933 std::string /* reason */)
1935 // OutputProtection -----------------------------------------------------------
1937 IPC_MESSAGE_CONTROL0(PpapiHostMsg_OutputProtection_Create)
1938 IPC_MESSAGE_CONTROL1(PpapiHostMsg_OutputProtection_EnableProtection,
1939 uint32_t /* desired_method_mask */)
1940 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_OutputProtection_EnableProtectionReply)
1941 IPC_MESSAGE_CONTROL0(PpapiHostMsg_OutputProtection_QueryStatus)
1942 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_OutputProtection_QueryStatusReply,
1943 uint32_t /* link_mask */,
1944 uint32_t /* protection_mask */)
1946 // VideoDecoder ------------------------------------------------------
1948 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Create)
1949 IPC_MESSAGE_CONTROL3(PpapiHostMsg_VideoDecoder_Initialize,
1950 ppapi::HostResource /* graphics_context */,
1951 PP_VideoProfile /* profile */,
1952 PP_HardwareAcceleration /* acceleration */)
1953 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_InitializeReply)
1954 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDecoder_GetShm,
1955 uint32_t /* shm_id */,
1956 uint32_t /* shm_size */)
1957 // On success, a shm handle is passed in the ReplyParams struct.
1958 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_GetShmReply,
1959 uint32_t /* shm_size */)
1960 IPC_MESSAGE_CONTROL3(PpapiHostMsg_VideoDecoder_Decode,
1961 uint32_t /* shm_id */,
1962 uint32_t /* size */,
1963 int32_t /* decode_id */)
1964 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DecodeReply,
1965 uint32_t /* shm_id */)
1966 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_VideoDecoder_RequestTextures,
1967 uint32_t /* num_textures */,
1968 PP_Size /* size */,
1969 uint32_t /* texture_target */,
1970 std::vector<gpu::Mailbox> /* mailboxes*/)
1971 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDecoder_AssignTextures,
1972 PP_Size /* size */,
1973 std::vector<uint32_t> /* texture_ids */)
1974 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoDecoder_PictureReady,
1975 int32_t /* decode_id */,
1976 uint32_t /* texture_id */,
1977 PP_Rect /* visible_rect */)
1978 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoDecoder_RecyclePicture,
1979 uint32_t /* texture_id */)
1980 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DismissPicture,
1981 uint32_t /* texture_id */)
1982 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Flush)
1983 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_FlushReply)
1984 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Reset)
1985 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_ResetReply)
1986 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_NotifyError,
1987 int32_t /* error */)
1989 #if !defined(OS_NACL) && !defined(NACL_WIN64)
1991 // Audio input.
1992 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create)
1993 IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open,
1994 std::string /* device_id */,
1995 PP_AudioSampleRate /* sample_rate */,
1996 uint32_t /* sample_frame_count */)
1997 // Reply to an Open call. This supplies a socket handle and a shared memory
1998 // handle. Both handles are passed in the ReplyParams struct.
1999 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_AudioInput_OpenReply)
2000 IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioInput_StartOrStop, bool /* capture */)
2001 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Close)
2003 // BrowserFont -----------------------------------------------------------------
2005 IPC_MESSAGE_CONTROL0(PpapiHostMsg_BrowserFontSingleton_Create)
2007 // Requests that the browser reply with the list of font families via
2008 // PpapiPluginMsg_BrowserFontSingleton_GetFontFamiliesReply.
2009 IPC_MESSAGE_CONTROL0(PpapiHostMsg_BrowserFontSingleton_GetFontFamilies)
2011 // Reply to PpapiHostMsg_BrowserFontSingleton_GetFontFamilies with the font
2012 // family list. The |families| result is encoded by separating each family name
2013 // by a null character.
2014 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_BrowserFontSingleton_GetFontFamiliesReply,
2015 std::string /* families */)
2017 // Flash -----------------------------------------------------------------------
2019 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create)
2021 // Message to notify the browser to register an update in system activity.
2022 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_UpdateActivity)
2024 // Query the browser for the proxy server to use for the given URL.
2025 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_GetProxyForURL, std::string /* url */)
2026 // Reply message for GetProxyForURL containing the proxy server.
2027 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetProxyForURLReply,
2028 std::string /* proxy */)
2030 // Queries the browser for the local time zone offset for a given time.
2031 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_GetLocalTimeZoneOffset,
2032 base::Time /* time */)
2033 // Reply to GetLocalTimeZoneOffset containing the time zone offset as a double.
2034 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetLocalTimeZoneOffsetReply,
2035 double /* offset */)
2037 // Query the browser for the restrictions on storing Flash LSOs.
2038 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_GetLocalDataRestrictions)
2039 // Reply message for GetLocalDataRestrictions containing the restrictions to
2040 // use. These are PP_FlashLSORestrictions cast to an int32_t.
2041 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetLocalDataRestrictionsReply,
2042 int32_t /* restrictions */)
2044 // Notifies the renderer whether the Flash instance is in windowed mode. No
2045 // reply is sent.
2046 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_SetInstanceAlwaysOnTop,
2047 bool /* on_top */)
2049 // Notifies the renderer to draw text to the given PP_ImageData resource. All
2050 // parmeters for drawing (including the resource to draw to) are contianed in
2051 // the PPBFlash_DrawGlyphs_Params structure. An error code is sent in a reply
2052 // message indicating success.
2053 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_DrawGlyphs,
2054 ppapi::proxy::PPBFlash_DrawGlyphs_Params /* params */)
2056 // Notifies the renderer to navigate to the given URL contained in the
2057 // URLRequestInfoData. An error code is sent in a reply message indicating
2058 // success.
2059 IPC_MESSAGE_CONTROL3(PpapiHostMsg_Flash_Navigate,
2060 ppapi::URLRequestInfoData /* data */,
2061 std::string /* target */,
2062 bool /* from_user_action */)
2064 // Queries the renderer on whether the plugin instance is the topmost element
2065 // in the area of the instance specified by the given PP_Rect. PP_OK is sent as
2066 // the error code in a reply message if the rect is topmost otherwise
2067 // PP_ERROR_FAILED is sent.
2068 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_IsRectTopmost,
2069 PP_Rect /* rect */)
2071 // Notifies the renderer to invoke printing for the given plugin instance. No
2072 // reply is sent.
2073 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_InvokePrinting)
2075 // DeviceEnumeration -----------------------------------------------------------
2076 // Device enumeration messages used by audio input and video capture.
2077 IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_EnumerateDevices)
2078 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_DeviceEnumeration_EnumerateDevicesReply,
2079 std::vector<ppapi::DeviceRefData> /* devices */)
2080 IPC_MESSAGE_CONTROL1(PpapiHostMsg_DeviceEnumeration_MonitorDeviceChange,
2081 uint32_t /* callback_id */)
2082 IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_StopMonitoringDeviceChange)
2083 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_DeviceEnumeration_NotifyDeviceChange,
2084 uint32_t /* callback_id */,
2085 std::vector<ppapi::DeviceRefData> /* devices */)
2087 // Flash clipboard.
2088 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashClipboard_Create)
2089 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashClipboard_RegisterCustomFormat,
2090 std::string /* format_name */)
2091 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_RegisterCustomFormatReply,
2092 uint32_t /* format */)
2093 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_IsFormatAvailable,
2094 uint32_t /* clipboard_type */,
2095 uint32_t /* format */)
2096 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_ReadData,
2097 uint32_t /* clipboard_type */,
2098 uint32_t /* format */)
2099 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_ReadDataReply,
2100 std::string /* result */)
2101 IPC_MESSAGE_CONTROL3(PpapiHostMsg_FlashClipboard_WriteData,
2102 uint32_t /* clipboard_type */,
2103 std::vector<uint32_t> /* formats */,
2104 std::vector<std::string> /* data */)
2105 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashClipboard_GetSequenceNumber,
2106 uint32_t /* clipboard_type */)
2107 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_GetSequenceNumberReply,
2108 uint64_t /* sequence_number */)
2110 // Flash DRM.
2111 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_Create)
2113 // Requests the device ID.
2114 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetDeviceID)
2115 // Reply for GetDeviceID which includes the device ID as a string.
2116 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetDeviceIDReply,
2117 std::string /* id */)
2119 // Requests the HMONITOR corresponding to the monitor on which the instance is
2120 // displayed.
2121 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetHmonitor)
2122 // Reply message for GetHmonitor which contains the HMONITOR as an int64_t.
2123 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetHmonitorReply,
2124 int64_t /* hmonitor */)
2126 // Requests the voucher file which is used to verify the integrity of the Flash
2127 // module. A PPB_FileRef resource will be created.
2128 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetVoucherFile)
2129 // Reply message for GetVoucherFile which contains the CreateInfo for a
2130 // PPB_FileRef which points to the voucher file.
2131 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetVoucherFileReply,
2132 ppapi::FileRefCreateInfo /* file_info */)
2134 // Requests a value indicating whether the monitor on which the instance is
2135 // displayed is external.
2136 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_MonitorIsExternal)
2137 // Reply message for MonitorIsExternal which contains the value indicating if
2138 // the monitor is external.
2139 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_MonitorIsExternalReply,
2140 PP_Bool /* is_external */)
2142 // Flash file.
2143 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFile_Create)
2144 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_OpenFile,
2145 ppapi::PepperFilePath /* path */,
2146 int /* pp_open_flags */)
2147 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_RenameFile,
2148 ppapi::PepperFilePath /* from_path */,
2149 ppapi::PepperFilePath /* to_path */)
2150 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_DeleteFileOrDir,
2151 ppapi::PepperFilePath /* path */,
2152 bool /* recursive */)
2153 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_CreateDir,
2154 ppapi::PepperFilePath /* path */)
2155 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_QueryFile,
2156 ppapi::PepperFilePath /* path */)
2157 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFile_QueryFileReply,
2158 base::File::Info /* file_info */)
2159 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_GetDirContents,
2160 ppapi::PepperFilePath /* path */)
2161 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFile_GetDirContentsReply,
2162 ppapi::DirContents /* entries */)
2163 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFile_CreateTemporaryFile)
2165 // Flash font file.
2166 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFontFile_Create,
2167 ppapi::proxy::SerializedFontDescription /* description */,
2168 PP_PrivateFontCharset /* charset */)
2169 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFontFile_GetFontTable,
2170 uint32_t /* table */)
2171 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFontFile_GetFontTableReply,
2172 std::string /* output */)
2174 // Flash fullscreen.
2175 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFullscreen_Create)
2176 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFullscreen_SetFullscreen,
2177 bool /* fullscreen */)
2179 // FlashMenu.
2181 // Creates the flash menu with the given data.
2182 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashMenu_Create,
2183 ppapi::proxy::SerializedFlashMenu /* menu_data */)
2185 // Shows the menu at the given location relative to the plugin instance.
2186 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashMenu_Show,
2187 PP_Point /* location */)
2189 // Reply to a show command. If the resource reply is PP_OK, the selected_id
2190 // will be the menu item ID chosen by the user.
2191 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashMenu_ShowReply,
2192 int32_t /* selected_id */)
2194 // PPB_Flash_MessageLoop.
2195 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Create,
2196 PP_Instance /* instance */,
2197 ppapi::HostResource /* result */)
2198 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Run,
2199 ppapi::HostResource /* flash_message_loop */,
2200 int32_t /* result */)
2201 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlashMessageLoop_Quit,
2202 ppapi::HostResource /* flash_message_loop */)
2204 // PDF ------------------------------------------------------------------------
2206 // Creates the PDF resource.
2207 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_Create)
2209 // Requests the localized string for the given ID.
2210 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_GetLocalizedString,
2211 PP_ResourceString /* string_id */)
2212 // Reply for PpapiHostMsg_PDF_GetLocalizedString containing the localized
2213 // string.
2214 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_PDF_GetLocalizedStringReply,
2215 std::string /* localized_string*/)
2217 // Notifies the renderer that the PDF started loading.
2218 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_DidStartLoading)
2220 // Notifies the renderer that the PDF stopped loading.
2221 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_DidStopLoading)
2223 // Sets any restrictions on the PDF content.
2224 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetContentRestriction,
2225 int /* restrictions */)
2227 // Requests that the specified action be recorded with UMA.
2228 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_UserMetricsRecordAction,
2229 std::string /* action */)
2231 // Notifies the renderer that the current PDF uses an unsupported feature.
2232 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_HasUnsupportedFeature)
2234 // Notifies the renderer to print the current PDF.
2235 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_Print)
2237 // Notifies the renderer to save the current PDF.
2238 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_SaveAs)
2240 // Requests a resource image for the plugin at a particular scale.
2241 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PDF_GetResourceImage,
2242 PP_ResourceImage /* image_id */,
2243 float /* scale */)
2245 // Reply for PpapiHostMsg_PDF_GetResourceImage containing the host resource id
2246 // of the image and a PP_ImageDataDesc which describes the image. Also carries
2247 // a shared memory handle pointing to the memory containg the image.
2248 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_PDF_GetResourceImageReply,
2249 ppapi::HostResource /* resource_id */,
2250 PP_ImageDataDesc /* image_data_desc */)
2252 // Called by the plugin when its selection changes.
2253 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetSelectedText,
2254 base::string16 /* selected_text */)
2256 // Called by the plugin to set the link under the cursor.
2257 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetLinkUnderCursor,
2258 std::string /* url */)
2260 // VideoCapture_Dev, plugin -> host
2261 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Create)
2262 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StartCapture)
2263 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoCapture_ReuseBuffer,
2264 uint32_t /* buffer */)
2265 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StopCapture)
2266 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Close)
2268 // VideoCapture_Dev, plugin -> host -> plugin
2269 IPC_MESSAGE_CONTROL3(PpapiHostMsg_VideoCapture_Open,
2270 std::string /* device_id */,
2271 PP_VideoCaptureDeviceInfo_Dev /* requested_info */,
2272 uint32_t /* buffer_count */)
2273 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoCapture_OpenReply)
2275 // VideoCapture_Dev, host -> plugin
2276 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoCapture_OnDeviceInfo,
2277 PP_VideoCaptureDeviceInfo_Dev /* info */,
2278 std::vector<ppapi::HostResource> /* buffers */,
2279 uint32_t /* buffer_size */)
2280 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
2281 uint32_t /* status */)
2282 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
2283 uint32_t /* error */)
2284 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
2285 uint32_t /* buffer */)
2287 // Talk ------------------------------------------------------------------------
2289 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_Create)
2290 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission,
2291 PP_TalkPermission /* permission */)
2292 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply)
2293 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting)
2294 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply)
2295 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting)
2296 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply)
2297 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */)
2299 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)