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