blob: 2a1cfb296a7fff42b987d8bae22cc20b150a29c3 [file] [log] [blame]
[email protected]c80a0ba2012-01-13 00:02:291// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]c2932f5e2010-11-03 03:22:332// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]631179b2011-03-14 22:26:205// Multiply-included message header, no traditional include guard.
[email protected]c2932f5e2010-11-03 03:22:336#include <string>
7#include <vector>
8
9#include "base/basictypes.h"
[email protected]631179b2011-03-14 22:26:2010#include "base/file_path.h"
[email protected]5d84d012010-12-02 17:17:2111#include "base/process.h"
12#include "base/shared_memory.h"
[email protected]19d2b012010-11-08 16:32:1813#include "base/string16.h"
[email protected]5d84d012010-12-02 17:17:2114#include "base/sync_socket.h"
[email protected]631179b2011-03-14 22:26:2015#include "gpu/command_buffer/common/command_buffer.h"
16#include "gpu/ipc/gpu_command_buffer_traits.h"
17#include "ipc/ipc_channel_handle.h"
18#include "ipc/ipc_message_macros.h"
[email protected]c2932f5e2010-11-03 03:22:3319#include "ipc/ipc_message_utils.h"
[email protected]5d84d012010-12-02 17:17:2120#include "ipc/ipc_platform_file.h"
[email protected]0fa46e82011-08-09 07:31:4921#include "ppapi/c/dev/pp_video_capture_dev.h"
[email protected]e8f07ac2012-01-03 17:43:3622#include "ppapi/c/dev/pp_video_dev.h"
[email protected]2daba2f32011-09-29 04:23:0923#include "ppapi/c/dev/ppb_text_input_dev.h"
[email protected]32938de2012-10-19 18:42:3224#include "ppapi/c/dev/ppb_url_util_dev.h"
[email protected]3890cfff2012-02-29 07:54:1825#include "ppapi/c/dev/ppp_printing_dev.h"
[email protected]19d2b012010-11-08 16:32:1826#include "ppapi/c/pp_bool.h"
[email protected]ea505a9d2011-07-07 18:34:4027#include "ppapi/c/pp_file_info.h"
[email protected]c2932f5e2010-11-03 03:22:3328#include "ppapi/c/pp_instance.h"
29#include "ppapi/c/pp_module.h"
[email protected]9b7cc082011-04-20 20:25:5530#include "ppapi/c/pp_point.h"
31#include "ppapi/c/pp_rect.h"
[email protected]c2932f5e2010-11-03 03:22:3332#include "ppapi/c/pp_resource.h"
[email protected]9b7cc082011-04-20 20:25:5533#include "ppapi/c/pp_size.h"
[email protected]3b98ced72012-03-09 02:08:3334#include "ppapi/c/pp_time.h"
[email protected]77b55502012-11-08 22:20:2035#include "ppapi/c/ppb_audio_config.h"
[email protected]23de87452012-10-12 07:03:0936#include "ppapi/c/private/pp_content_decryptor.h"
[email protected]cb65f132012-10-09 17:06:0937#include "ppapi/c/private/pp_private_font_charset.h"
[email protected]ea628e32012-08-02 21:50:1638#include "ppapi/c/private/ppb_flash.h"
[email protected]24931102012-03-15 01:21:2739#include "ppapi/c/private/ppb_host_resolver_private.h"
40#include "ppapi/c/private/ppb_net_address_private.h"
[email protected]fb575bc2011-11-16 07:06:2441#include "ppapi/c/private/ppb_tcp_socket_private.h"
[email protected]0addda92012-08-31 08:55:2842#include "ppapi/c/private/ppb_udp_socket_private.h"
[email protected]1a559442012-05-27 07:18:4643#include "ppapi/c/private/ppp_flash_browser_operations.h"
[email protected]c2932f5e2010-11-03 03:22:3344#include "ppapi/proxy/ppapi_param_traits.h"
[email protected]f0a04c42011-08-26 22:43:2045#include "ppapi/proxy/ppapi_proxy_export.h"
[email protected]077ecfd42012-06-21 21:46:2646#include "ppapi/proxy/resource_message_params.h"
[email protected]7358d572011-02-15 18:44:4047#include "ppapi/proxy/serialized_flash_menu.h"
[email protected]fb35dcf2010-11-14 17:08:0048#include "ppapi/proxy/serialized_structs.h"
[email protected]cb65f132012-10-09 17:06:0949#include "ppapi/proxy/serialized_var.h"
[email protected]0c92b0d2012-12-08 00:46:2350#include "ppapi/shared_impl/dir_contents.h"
51#include "ppapi/shared_impl/file_path.h"
[email protected]208aad792011-05-26 19:05:2852#include "ppapi/shared_impl/ppapi_preferences.h"
[email protected]dca65e12012-01-21 07:54:1753#include "ppapi/shared_impl/ppb_device_ref_shared.h"
[email protected]9a578392011-12-07 18:59:2754#include "ppapi/shared_impl/ppb_input_event_shared.h"
[email protected]5b9b80e2012-03-20 20:19:3955#include "ppapi/shared_impl/ppb_network_list_private_shared.h"
[email protected]e8f07ac2012-01-03 17:43:3656#include "ppapi/shared_impl/ppb_view_shared.h"
[email protected]ee4dd682012-06-12 15:49:3357#include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h"
[email protected]24931102012-03-15 01:21:2758#include "ppapi/shared_impl/private/ppb_host_resolver_shared.h"
[email protected]de2895262012-04-04 17:15:4859#include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h"
[email protected]7b2f7292012-09-19 19:52:1260#include "ppapi/shared_impl/url_request_info_data.h"
[email protected]844fecb2012-11-16 20:11:0661#include "ppapi/shared_impl/url_response_info_data.h"
[email protected]19d2b012010-11-08 16:32:1862
[email protected]f0a04c42011-08-26 22:43:2063#undef IPC_MESSAGE_EXPORT
64#define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT
65
[email protected]631179b2011-03-14 22:26:2066#define IPC_MESSAGE_START PpapiMsgStart
[email protected]c2932f5e2010-11-03 03:22:3367
[email protected]77b55502012-11-08 22:20:2068IPC_ENUM_TRAITS(PP_AudioSampleRate)
[email protected]dca65e12012-01-21 07:54:1769IPC_ENUM_TRAITS(PP_DeviceType_Dev)
[email protected]23de87452012-10-12 07:03:0970IPC_ENUM_TRAITS(PP_DecryptorStreamType)
[email protected]1a559442012-05-27 07:18:4671IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission)
72IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType)
[email protected]ea628e32012-08-02 21:50:1673IPC_ENUM_TRAITS(PP_FlashSetting)
[email protected]493d14212011-07-07 15:38:4874IPC_ENUM_TRAITS(PP_InputEvent_MouseButton)
[email protected]24931102012-03-15 01:21:2775IPC_ENUM_TRAITS(PP_InputEvent_Type)
76IPC_ENUM_TRAITS(PP_NetAddressFamily_Private)
[email protected]5b9b80e2012-03-20 20:19:3977IPC_ENUM_TRAITS(PP_NetworkListState_Private)
[email protected]0addda92012-08-31 08:55:2878IPC_ENUM_TRAITS(PP_NetworkListType_Private)
[email protected]772a74622012-06-14 21:15:5079IPC_ENUM_TRAITS(PP_PrintOrientation_Dev)
80IPC_ENUM_TRAITS(PP_PrintOutputFormat_Dev)
81IPC_ENUM_TRAITS(PP_PrintScalingOption_Dev)
[email protected]cb65f132012-10-09 17:06:0982IPC_ENUM_TRAITS(PP_PrivateFontCharset)
[email protected]2daba2f32011-09-29 04:23:0983IPC_ENUM_TRAITS(PP_TextInput_Type)
[email protected]7ace8ad2011-08-06 03:23:5884IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev)
[email protected]24931102012-03-15 01:21:2785IPC_ENUM_TRAITS(PP_VideoDecoder_Profile)
[email protected]493d14212011-07-07 15:38:4886
[email protected]9b7cc082011-04-20 20:25:5587IPC_STRUCT_TRAITS_BEGIN(PP_Point)
88 IPC_STRUCT_TRAITS_MEMBER(x)
89 IPC_STRUCT_TRAITS_MEMBER(y)
90IPC_STRUCT_TRAITS_END()
91
[email protected]493d14212011-07-07 15:38:4892IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint)
93 IPC_STRUCT_TRAITS_MEMBER(x)
94 IPC_STRUCT_TRAITS_MEMBER(y)
95IPC_STRUCT_TRAITS_END()
96
[email protected]9b7cc082011-04-20 20:25:5597IPC_STRUCT_TRAITS_BEGIN(PP_Size)
98 IPC_STRUCT_TRAITS_MEMBER(height)
99 IPC_STRUCT_TRAITS_MEMBER(width)
100IPC_STRUCT_TRAITS_END()
101
102IPC_STRUCT_TRAITS_BEGIN(PP_Rect)
103 IPC_STRUCT_TRAITS_MEMBER(point)
104 IPC_STRUCT_TRAITS_MEMBER(size)
105IPC_STRUCT_TRAITS_END()
106
[email protected]7ace8ad2011-08-06 03:23:58107IPC_STRUCT_TRAITS_BEGIN(PP_PictureBuffer_Dev)
108 IPC_STRUCT_TRAITS_MEMBER(id)
109 IPC_STRUCT_TRAITS_MEMBER(size)
110 IPC_STRUCT_TRAITS_MEMBER(texture_id)
111IPC_STRUCT_TRAITS_END()
112
113IPC_STRUCT_TRAITS_BEGIN(PP_Picture_Dev)
114 IPC_STRUCT_TRAITS_MEMBER(picture_buffer_id)
115 IPC_STRUCT_TRAITS_MEMBER(bitstream_buffer_id)
116IPC_STRUCT_TRAITS_END()
117
[email protected]3890cfff2012-02-29 07:54:18118IPC_STRUCT_TRAITS_BEGIN(PP_PrintPageNumberRange_Dev)
119 IPC_STRUCT_TRAITS_MEMBER(first_page_number)
120 IPC_STRUCT_TRAITS_MEMBER(last_page_number)
121IPC_STRUCT_TRAITS_END()
122
[email protected]0fa46e82011-08-09 07:31:49123IPC_STRUCT_TRAITS_BEGIN(PP_VideoCaptureDeviceInfo_Dev)
124 IPC_STRUCT_TRAITS_MEMBER(width)
125 IPC_STRUCT_TRAITS_MEMBER(height)
126 IPC_STRUCT_TRAITS_MEMBER(frames_per_second)
127IPC_STRUCT_TRAITS_END()
128
[email protected]24931102012-03-15 01:21:27129IPC_STRUCT_TRAITS_BEGIN(PP_HostResolver_Private_Hint)
130 IPC_STRUCT_TRAITS_MEMBER(family)
131 IPC_STRUCT_TRAITS_MEMBER(flags)
132IPC_STRUCT_TRAITS_END()
133
[email protected]772a74622012-06-14 21:15:50134IPC_STRUCT_TRAITS_BEGIN(PP_PrintSettings_Dev)
135 IPC_STRUCT_TRAITS_MEMBER(printable_area)
136 IPC_STRUCT_TRAITS_MEMBER(content_area)
137 IPC_STRUCT_TRAITS_MEMBER(paper_size)
138 IPC_STRUCT_TRAITS_MEMBER(dpi)
139 IPC_STRUCT_TRAITS_MEMBER(orientation)
140 IPC_STRUCT_TRAITS_MEMBER(print_scaling_option)
141 IPC_STRUCT_TRAITS_MEMBER(grayscale)
142 IPC_STRUCT_TRAITS_MEMBER(format)
143IPC_STRUCT_TRAITS_END()
144
[email protected]32938de2012-10-19 18:42:32145IPC_STRUCT_TRAITS_BEGIN(PP_URLComponent_Dev)
146 IPC_STRUCT_TRAITS_MEMBER(begin)
147 IPC_STRUCT_TRAITS_MEMBER(len)
148IPC_STRUCT_TRAITS_END()
149
150IPC_STRUCT_TRAITS_BEGIN(PP_URLComponents_Dev)
151 IPC_STRUCT_TRAITS_MEMBER(scheme)
152 IPC_STRUCT_TRAITS_MEMBER(username)
153 IPC_STRUCT_TRAITS_MEMBER(password)
154 IPC_STRUCT_TRAITS_MEMBER(host)
155 IPC_STRUCT_TRAITS_MEMBER(port)
156 IPC_STRUCT_TRAITS_MEMBER(path)
157 IPC_STRUCT_TRAITS_MEMBER(query)
158 IPC_STRUCT_TRAITS_MEMBER(ref)
159IPC_STRUCT_TRAITS_END()
160
[email protected]dca65e12012-01-21 07:54:17161IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData)
162 IPC_STRUCT_TRAITS_MEMBER(type)
163 IPC_STRUCT_TRAITS_MEMBER(name)
164 IPC_STRUCT_TRAITS_MEMBER(id)
165IPC_STRUCT_TRAITS_END()
166
[email protected]0c92b0d2012-12-08 00:46:23167IPC_STRUCT_TRAITS_BEGIN(ppapi::DirEntry)
168 IPC_STRUCT_TRAITS_MEMBER(name)
169 IPC_STRUCT_TRAITS_MEMBER(is_dir)
170IPC_STRUCT_TRAITS_END()
171
[email protected]ee4dd682012-06-12 15:49:33172IPC_STRUCT_TRAITS_BEGIN(ppapi::FlashSiteSetting)
173 IPC_STRUCT_TRAITS_MEMBER(site)
174 IPC_STRUCT_TRAITS_MEMBER(permission)
175IPC_STRUCT_TRAITS_END()
176
[email protected]e8f07ac2012-01-03 17:43:36177IPC_STRUCT_TRAITS_BEGIN(ppapi::ViewData)
178 IPC_STRUCT_TRAITS_MEMBER(rect)
179 IPC_STRUCT_TRAITS_MEMBER(is_fullscreen)
180 IPC_STRUCT_TRAITS_MEMBER(is_page_visible)
181 IPC_STRUCT_TRAITS_MEMBER(clip_rect)
[email protected]0cd5b9df2012-06-28 19:33:33182 IPC_STRUCT_TRAITS_MEMBER(device_scale)
183 IPC_STRUCT_TRAITS_MEMBER(css_scale)
[email protected]e8f07ac2012-01-03 17:43:36184IPC_STRUCT_TRAITS_END()
185
[email protected]cdf4e912012-06-21 23:15:10186IPC_STRUCT_TRAITS_BEGIN(PP_TouchPoint)
187 IPC_STRUCT_TRAITS_MEMBER(id)
188 IPC_STRUCT_TRAITS_MEMBER(position)
189 IPC_STRUCT_TRAITS_MEMBER(radius)
190 IPC_STRUCT_TRAITS_MEMBER(rotation_angle)
191 IPC_STRUCT_TRAITS_MEMBER(pressure)
192IPC_STRUCT_TRAITS_END()
193
[email protected]4d2efd22011-08-18 21:58:02194IPC_STRUCT_TRAITS_BEGIN(ppapi::Preferences)
[email protected]966d1e12012-05-18 07:20:32195 IPC_STRUCT_TRAITS_MEMBER(standard_font_family_map)
196 IPC_STRUCT_TRAITS_MEMBER(fixed_font_family_map)
197 IPC_STRUCT_TRAITS_MEMBER(serif_font_family_map)
198 IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family_map)
[email protected]208aad792011-05-26 19:05:28199 IPC_STRUCT_TRAITS_MEMBER(default_font_size)
200 IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size)
[email protected]6b4dcb072012-06-18 22:26:51201 IPC_STRUCT_TRAITS_MEMBER(number_of_cpu_cores)
[email protected]e0d8c422012-06-04 22:57:19202 IPC_STRUCT_TRAITS_MEMBER(is_3d_supported)
203 IPC_STRUCT_TRAITS_MEMBER(is_stage3d_supported)
[email protected]208aad792011-05-26 19:05:28204IPC_STRUCT_TRAITS_END()
205
[email protected]4d2efd22011-08-18 21:58:02206IPC_STRUCT_TRAITS_BEGIN(ppapi::InputEventData)
[email protected]493d14212011-07-07 15:38:48207 IPC_STRUCT_TRAITS_MEMBER(is_filtered)
208 IPC_STRUCT_TRAITS_MEMBER(event_type)
209 IPC_STRUCT_TRAITS_MEMBER(event_time_stamp)
210 IPC_STRUCT_TRAITS_MEMBER(event_modifiers)
211 IPC_STRUCT_TRAITS_MEMBER(mouse_button)
212 IPC_STRUCT_TRAITS_MEMBER(mouse_position)
213 IPC_STRUCT_TRAITS_MEMBER(mouse_click_count)
[email protected]80473262011-08-31 17:15:18214 IPC_STRUCT_TRAITS_MEMBER(mouse_movement)
[email protected]493d14212011-07-07 15:38:48215 IPC_STRUCT_TRAITS_MEMBER(wheel_delta)
216 IPC_STRUCT_TRAITS_MEMBER(wheel_ticks)
217 IPC_STRUCT_TRAITS_MEMBER(wheel_scroll_by_page)
218 IPC_STRUCT_TRAITS_MEMBER(key_code)
[email protected]e1e08b42012-02-21 22:42:58219 IPC_STRUCT_TRAITS_MEMBER(usb_key_code)
[email protected]493d14212011-07-07 15:38:48220 IPC_STRUCT_TRAITS_MEMBER(character_text)
[email protected]2daba2f32011-09-29 04:23:09221 IPC_STRUCT_TRAITS_MEMBER(composition_segment_offsets)
222 IPC_STRUCT_TRAITS_MEMBER(composition_target_segment)
223 IPC_STRUCT_TRAITS_MEMBER(composition_selection_start)
224 IPC_STRUCT_TRAITS_MEMBER(composition_selection_end)
[email protected]cdf4e912012-06-21 23:15:10225 IPC_STRUCT_TRAITS_MEMBER(touches)
226 IPC_STRUCT_TRAITS_MEMBER(changed_touches)
227 IPC_STRUCT_TRAITS_MEMBER(target_touches)
[email protected]493d14212011-07-07 15:38:48228IPC_STRUCT_TRAITS_END()
229
[email protected]24931102012-03-15 01:21:27230IPC_STRUCT_TRAITS_BEGIN(ppapi::HostPortPair)
231 IPC_STRUCT_TRAITS_MEMBER(host)
232 IPC_STRUCT_TRAITS_MEMBER(port)
233IPC_STRUCT_TRAITS_END()
234
[email protected]7b2f7292012-09-19 19:52:12235IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData)
[email protected]6f75c952011-08-26 04:51:07236 IPC_STRUCT_TRAITS_MEMBER(url)
237 IPC_STRUCT_TRAITS_MEMBER(method)
238 IPC_STRUCT_TRAITS_MEMBER(headers)
239 IPC_STRUCT_TRAITS_MEMBER(stream_to_file)
240 IPC_STRUCT_TRAITS_MEMBER(follow_redirects)
241 IPC_STRUCT_TRAITS_MEMBER(record_download_progress)
242 IPC_STRUCT_TRAITS_MEMBER(record_upload_progress)
243 IPC_STRUCT_TRAITS_MEMBER(has_custom_referrer_url)
244 IPC_STRUCT_TRAITS_MEMBER(custom_referrer_url)
245 IPC_STRUCT_TRAITS_MEMBER(allow_cross_origin_requests)
246 IPC_STRUCT_TRAITS_MEMBER(allow_credentials)
247 IPC_STRUCT_TRAITS_MEMBER(has_custom_content_transfer_encoding)
248 IPC_STRUCT_TRAITS_MEMBER(custom_content_transfer_encoding)
249 IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_upper_threshold)
250 IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_lower_threshold)
[email protected]c094eaf2012-07-10 16:09:01251 IPC_STRUCT_TRAITS_MEMBER(has_custom_user_agent)
252 IPC_STRUCT_TRAITS_MEMBER(custom_user_agent)
[email protected]6f75c952011-08-26 04:51:07253 IPC_STRUCT_TRAITS_MEMBER(body)
254IPC_STRUCT_TRAITS_END()
255
[email protected]7b2f7292012-09-19 19:52:12256IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData::BodyItem)
[email protected]6f75c952011-08-26 04:51:07257 IPC_STRUCT_TRAITS_MEMBER(is_file)
258 IPC_STRUCT_TRAITS_MEMBER(data)
259 // Note: we don't serialize file_ref.
260 IPC_STRUCT_TRAITS_MEMBER(file_ref_host_resource)
261 IPC_STRUCT_TRAITS_MEMBER(start_offset)
262 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes)
263 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time)
264IPC_STRUCT_TRAITS_END()
265
[email protected]844fecb2012-11-16 20:11:06266IPC_STRUCT_TRAITS_BEGIN(ppapi::URLResponseInfoData)
267 IPC_STRUCT_TRAITS_MEMBER(url)
268 IPC_STRUCT_TRAITS_MEMBER(headers)
269 IPC_STRUCT_TRAITS_MEMBER(status_code)
270 IPC_STRUCT_TRAITS_MEMBER(status_text)
271 IPC_STRUCT_TRAITS_MEMBER(redirect_url)
272 IPC_STRUCT_TRAITS_MEMBER(body_as_file_ref)
273IPC_STRUCT_TRAITS_END()
274
[email protected]5b9b80e2012-03-20 20:19:39275IPC_STRUCT_TRAITS_BEGIN(ppapi::NetworkInfo)
276 IPC_STRUCT_TRAITS_MEMBER(name)
277 IPC_STRUCT_TRAITS_MEMBER(type)
278 IPC_STRUCT_TRAITS_MEMBER(state)
279 IPC_STRUCT_TRAITS_MEMBER(addresses)
280 IPC_STRUCT_TRAITS_MEMBER(display_name)
281 IPC_STRUCT_TRAITS_MEMBER(mtu)
282IPC_STRUCT_TRAITS_END()
[email protected]e5aeef02012-08-17 00:18:43283
[email protected]e8f578d2012-09-17 19:27:10284#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]e8f578d2012-09-17 19:27:10285
[email protected]e5aeef02012-08-17 00:18:43286IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer)
287 IPC_STRUCT_TRAITS_MEMBER(resource)
288 IPC_STRUCT_TRAITS_MEMBER(handle)
289 IPC_STRUCT_TRAITS_MEMBER(size)
290IPC_STRUCT_TRAITS_END()
291
[email protected]667591d2012-09-04 21:30:12292#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]5b9b80e2012-03-20 20:19:39293
[email protected]eb415bf0e2011-04-14 02:45:42294// These are from the browser to the plugin.
[email protected]631179b2011-03-14 22:26:20295// Loads the given plugin.
[email protected]195d4cde2012-10-02 18:12:41296IPC_MESSAGE_CONTROL2(PpapiMsg_LoadPlugin,
297 FilePath /* path */,
298 ppapi::PpapiPermissions /* permissions */)
[email protected]631179b2011-03-14 22:26:20299
300// Creates a channel to talk to a renderer. The plugin will respond with
301// PpapiHostMsg_ChannelCreated.
[email protected]f0ecb552012-05-11 22:09:11302IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel,
[email protected]bc2eeb42012-05-02 22:35:53303 int /* renderer_id */,
304 bool /* incognito */)
[email protected]631179b2011-03-14 22:26:20305
[email protected]8510d282012-08-30 19:47:38306// Creates a channel to talk to a renderer. This message is only used by the
307// NaCl IPC proxy. It is intercepted by NaClIPCAdapter, which creates the
308// actual channel and rewrites the message for the untrusted side.
[email protected]195d4cde2012-10-02 18:12:41309IPC_MESSAGE_CONTROL4(PpapiMsg_CreateNaClChannel,
[email protected]8510d282012-08-30 19:47:38310 int /* renderer_id */,
[email protected]195d4cde2012-10-02 18:12:41311 ppapi::PpapiPermissions /* permissions */,
[email protected]8510d282012-08-30 19:47:38312 bool /* incognito */,
313 ppapi::proxy::SerializedHandle /* channel_handle */)
314
[email protected]631179b2011-03-14 22:26:20315// Each plugin may be referenced by multiple renderers. We need the instance
316// IDs to be unique within a plugin, despite coming from different renderers,
317// and unique within a renderer, despite going to different plugins. This means
318// that neither the renderer nor the plugin can generate instance IDs without
319// consulting the other.
320//
321// We resolve this by having the renderer generate a unique instance ID inside
322// its process. It then asks the plugin to reserve that ID by sending this sync
323// message. If the plugin has not yet seen this ID, it will remember it as used
324// (to prevent a race condition if another renderer tries to then use the same
325// instance), and set usable as true.
326//
327// If the plugin has already seen the instance ID, it will set usable as false
328// and the renderer must retry a new instance ID.
329IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_ReserveInstanceId,
330 PP_Instance /* instance */,
331 bool /* usable */)
332
[email protected]208aad792011-05-26 19:05:28333// Passes the WebKit preferences to the plugin.
334IPC_MESSAGE_CONTROL1(PpapiMsg_SetPreferences,
[email protected]4d2efd22011-08-18 21:58:02335 ppapi::Preferences)
[email protected]208aad792011-05-26 19:05:28336
[email protected]631179b2011-03-14 22:26:20337// Sent in both directions to see if the other side supports the given
338// interface.
339IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface,
340 std::string /* interface_name */,
341 bool /* result */)
342
[email protected]246fc492012-08-27 20:28:18343#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:49344// Network state notification from the browser for implementing
345// PPP_NetworkState_Dev.
346IPC_MESSAGE_CONTROL1(PpapiMsg_SetNetworkState,
347 bool /* online */)
348
[email protected]951ef0b2012-07-27 22:46:53349// Requests a list of sites that have data stored from the plugin. The plugin
350// process will respond with PpapiHostMsg_GetSitesWithDataResult. This is used
351// for Flash.
352IPC_MESSAGE_CONTROL2(PpapiMsg_GetSitesWithData,
353 uint32 /* request_id */,
354 FilePath /* plugin_data_path */)
355IPC_MESSAGE_CONTROL2(PpapiHostMsg_GetSitesWithDataResult,
356 uint32 /* request_id */,
357 std::vector<std::string> /* sites */)
358
[email protected]1bf0fb22012-04-12 21:44:16359// Instructs the plugin to clear data for the given site & time. The plugin
360// process will respond with PpapiHostMsg_ClearSiteDataResult. This is used
361// for Flash.
[email protected]951ef0b2012-07-27 22:46:53362IPC_MESSAGE_CONTROL5(PpapiMsg_ClearSiteData,
363 uint32 /* request_id */,
[email protected]1bf0fb22012-04-12 21:44:16364 FilePath /* plugin_data_path */,
365 std::string /* site */,
366 uint64 /* flags */,
367 uint64 /* max_age */)
[email protected]951ef0b2012-07-27 22:46:53368IPC_MESSAGE_CONTROL2(PpapiHostMsg_ClearSiteDataResult,
369 uint32 /* request_id */,
[email protected]1bf0fb22012-04-12 21:44:16370 bool /* success */)
[email protected]2b657fd2011-04-18 16:00:47371
[email protected]1a559442012-05-27 07:18:46372IPC_MESSAGE_CONTROL2(PpapiMsg_DeauthorizeContentLicenses,
373 uint32 /* request_id */,
374 FilePath /* plugin_data_path */)
375IPC_MESSAGE_CONTROL2(PpapiHostMsg_DeauthorizeContentLicensesResult,
376 uint32 /* request_id */,
377 bool /* success */)
378
[email protected]ee4dd682012-06-12 15:49:33379IPC_MESSAGE_CONTROL3(PpapiMsg_GetPermissionSettings,
380 uint32 /* request_id */,
381 FilePath /* plugin_data_path */,
382 PP_Flash_BrowserOperations_SettingType /* setting_type */)
383IPC_MESSAGE_CONTROL4(
384 PpapiHostMsg_GetPermissionSettingsResult,
385 uint32 /* request_id */,
386 bool /* success */,
387 PP_Flash_BrowserOperations_Permission /* default_permission */,
388 ppapi::FlashSiteSettings /* sites */)
389
390IPC_MESSAGE_CONTROL5(PpapiMsg_SetDefaultPermission,
391 uint32 /* request_id */,
392 FilePath /* plugin_data_path */,
393 PP_Flash_BrowserOperations_SettingType /* setting_type */,
394 PP_Flash_BrowserOperations_Permission /* permission */,
395 bool /* clear_site_specific */)
396IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetDefaultPermissionResult,
397 uint32 /* request_id */,
398 bool /* success */)
399
400IPC_MESSAGE_CONTROL4(PpapiMsg_SetSitePermission,
401 uint32 /* request_id */,
402 FilePath /* plugin_data_path */,
403 PP_Flash_BrowserOperations_SettingType /* setting_type */,
404 ppapi::FlashSiteSettings /* sites */)
405IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetSitePermissionResult,
406 uint32 /* request_id */,
407 bool /* success */)
408
[email protected]1bf0fb22012-04-12 21:44:16409// Broker Process.
[email protected]6990e5d2011-09-30 18:10:57410IPC_SYNC_MESSAGE_CONTROL2_1(PpapiMsg_ConnectToPlugin,
[email protected]2b657fd2011-04-18 16:00:47411 PP_Instance /* instance */,
[email protected]6990e5d2011-09-30 18:10:57412 IPC::PlatformFileForTransit /* handle */,
413 int32_t /* result */)
[email protected]246fc492012-08-27 20:28:18414#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]2b657fd2011-04-18 16:00:47415
[email protected]631179b2011-03-14 22:26:20416// PPB_Audio.
417
418// Notifies the result of the audio stream create call. This is called in
419// both error cases and in the normal success case. These cases are
420// differentiated by the result code, which is one of the standard PPAPI
421// result codes.
422//
423// The handler of this message should always close all of the handles passed
424// in, since some could be valid even in the error case.
[email protected]246fc492012-08-27 20:28:18425IPC_MESSAGE_ROUTED4(PpapiMsg_PPBAudio_NotifyAudioStreamCreated,
[email protected]be0a84b2011-08-13 04:18:44426 ppapi::HostResource /* audio_id */,
[email protected]631179b2011-03-14 22:26:20427 int32_t /* result_code (will be != PP_OK on failure) */,
[email protected]246fc492012-08-27 20:28:18428 ppapi::proxy::SerializedHandle /* socket_handle */,
429 ppapi::proxy::SerializedHandle /* handle */)
[email protected]631179b2011-03-14 22:26:20430
[email protected]cc6db922011-12-10 16:54:22431// PPB_FileIO.
432IPC_MESSAGE_ROUTED2(PpapiMsg_PPBFileIO_GeneralComplete,
433 ppapi::HostResource /* file_io */,
434 int32_t /* result */)
435IPC_MESSAGE_ROUTED2(PpapiMsg_PPBFileIO_OpenFileComplete,
436 ppapi::HostResource /* file_io */,
437 int32_t /* result */)
438IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFileIO_QueryComplete,
439 ppapi::HostResource /* file_io */,
440 int32_t /* result */,
441 PP_FileInfo /* info */)
442IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFileIO_ReadComplete,
443 ppapi::HostResource /* file_io */,
444 int32_t /* result */,
445 std::string /* data */)
446
[email protected]0f41c012011-10-21 19:49:20447// PPB_FileRef.
448IPC_MESSAGE_ROUTED3(
449 PpapiMsg_PPBFileRef_CallbackComplete,
450 ppapi::HostResource /* resource */,
451 int /* callback_id */,
452 int32_t /* result */)
453
[email protected]631179b2011-03-14 22:26:20454// PPB_FileSystem.
455IPC_MESSAGE_ROUTED2(
456 PpapiMsg_PPBFileSystem_OpenComplete,
[email protected]be0a84b2011-08-13 04:18:44457 ppapi::HostResource /* filesystem */,
[email protected]631179b2011-03-14 22:26:20458 int32_t /* result */)
459
[email protected]eeb4e4a2011-07-19 16:22:06460// PPB_Graphics3D.
461IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK,
[email protected]be0a84b2011-08-13 04:18:44462 ppapi::HostResource /* graphics_3d */,
[email protected]eeb4e4a2011-07-19 16:22:06463 int32_t /* pp_error */)
464
[email protected]c42835772012-08-22 18:22:13465// PPB_ImageData.
466IPC_MESSAGE_ROUTED1(PpapiMsg_PPBImageData_NotifyUnusedImageData,
467 ppapi::HostResource /* old_image_data */)
468
[email protected]0f41c012011-10-21 19:49:20469// PPB_Instance.
470IPC_MESSAGE_ROUTED2(PpapiMsg_PPBInstance_MouseLockComplete,
471 PP_Instance /* instance */,
472 int32_t /* result */)
473
[email protected]631179b2011-03-14 22:26:20474// PPP_Class.
475IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty,
476 int64 /* ppp_class */,
477 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02478 ppapi::proxy::SerializedVar /* property */,
479 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:20480 bool /* result */)
481IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod,
482 int64 /* ppp_class */,
483 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02484 ppapi::proxy::SerializedVar /* method */,
485 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:20486 bool /* result */)
487IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_GetProperty,
488 int64 /* ppp_class */,
489 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02490 ppapi::proxy::SerializedVar /* property */,
491 ppapi::proxy::SerializedVar /* out_exception */,
492 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20493IPC_SYNC_MESSAGE_ROUTED2_2(PpapiMsg_PPPClass_EnumerateProperties,
494 int64 /* ppp_class */,
495 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02496 std::vector<ppapi::proxy::SerializedVar> /* props */,
497 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:20498IPC_SYNC_MESSAGE_ROUTED4_1(PpapiMsg_PPPClass_SetProperty,
499 int64 /* ppp_class */,
500 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02501 ppapi::proxy::SerializedVar /* name */,
502 ppapi::proxy::SerializedVar /* value */,
503 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:20504IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPClass_RemoveProperty,
505 int64 /* ppp_class */,
506 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02507 ppapi::proxy::SerializedVar /* property */,
508 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:20509IPC_SYNC_MESSAGE_ROUTED4_2(PpapiMsg_PPPClass_Call,
510 int64 /* ppp_class */,
511 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02512 ppapi::proxy::SerializedVar /* method_name */,
513 std::vector<ppapi::proxy::SerializedVar> /* args */,
514 ppapi::proxy::SerializedVar /* out_exception */,
515 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20516IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_Construct,
517 int64 /* ppp_class */,
518 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02519 std::vector<ppapi::proxy::SerializedVar> /* args */,
520 ppapi::proxy::SerializedVar /* out_exception */,
521 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20522IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate,
523 int64 /* ppp_class */,
524 int64 /* object */)
525
[email protected]8c3bd1d2011-04-12 20:01:42526// PPP_Graphics3D_Dev.
527IPC_MESSAGE_ROUTED1(PpapiMsg_PPPGraphics3D_ContextLost,
528 PP_Instance /* instance */)
529
[email protected]493d14212011-07-07 15:38:48530// PPP_InputEvent.
531IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInputEvent_HandleInputEvent,
532 PP_Instance /* instance */,
533 ppapi::InputEventData /* data */)
534IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInputEvent_HandleFilteredInputEvent,
535 PP_Instance /* instance */,
536 ppapi::InputEventData /* data */,
537 PP_Bool /* result */)
[email protected]3b98ced72012-03-09 02:08:33538// (Message from the plugin to the browser that it handled an input event.)
539IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInputEvent_HandleInputEvent_ACK,
540 PP_Instance /* instance */,
541 PP_TimeTicks /* timestamp */)
[email protected]493d14212011-07-07 15:38:48542
[email protected]631179b2011-03-14 22:26:20543// PPP_Instance.
544IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate,
545 PP_Instance /* instance */,
546 std::vector<std::string> /* argn */,
547 std::vector<std::string> /* argv */,
548 PP_Bool /* result */)
[email protected]5e5d0b02011-04-04 19:32:07549IPC_SYNC_MESSAGE_ROUTED1_0(PpapiMsg_PPPInstance_DidDestroy,
550 PP_Instance /* instance */)
[email protected]e8f07ac2012-01-03 17:43:36551IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_DidChangeView,
[email protected]631179b2011-03-14 22:26:20552 PP_Instance /* instance */,
[email protected]e8f07ac2012-01-03 17:43:36553 ppapi::ViewData /* new_data */,
[email protected]06e0a342011-09-27 04:24:30554 PP_Bool /* flash_fullscreen */)
[email protected]631179b2011-03-14 22:26:20555IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus,
556 PP_Instance /* instance */,
557 PP_Bool /* has_focus */)
[email protected]631179b2011-03-14 22:26:20558IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInstance_HandleDocumentLoad,
559 PP_Instance /* instance */,
[email protected]be0a84b2011-08-13 04:18:44560 ppapi::HostResource /* url_loader */,
[email protected]631179b2011-03-14 22:26:20561 PP_Bool /* result */)
[email protected]631179b2011-03-14 22:26:20562
[email protected]b20df1c2011-08-03 14:38:24563// PPP_Messaging.
564IPC_MESSAGE_ROUTED2(PpapiMsg_PPPMessaging_HandleMessage,
565 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:02566 ppapi::proxy::SerializedVar /* message */)
[email protected]b20df1c2011-08-03 14:38:24567
[email protected]1314f5f2011-10-16 02:26:56568// PPP_MouseLock.
[email protected]18d871f2011-09-08 16:56:34569IPC_MESSAGE_ROUTED1(PpapiMsg_PPPMouseLock_MouseLockLost,
570 PP_Instance /* instance */)
571
[email protected]e8f578d2012-09-17 19:27:10572// PPB_NetworkMonitor_Private.
573IPC_MESSAGE_ROUTED2(PpapiMsg_PPBNetworkMonitor_NetworkList,
574 uint32 /* plugin_dispatcher_id */,
575 ppapi::NetworkList /* network_list */)
576
[email protected]3890cfff2012-02-29 07:54:18577// PPP_Printing
578IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_QuerySupportedFormats,
579 PP_Instance /* instance */,
580 uint32_t /* result */)
581IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_Begin,
582 PP_Instance /* instance */,
583 std::string /* settings_string */,
584 int32_t /* result */)
585IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_PrintPages,
586 PP_Instance /* instance */,
587 std::vector<PP_PrintPageNumberRange_Dev> /* pages */,
588 ppapi::HostResource /* result */)
589IPC_MESSAGE_ROUTED1(PpapiMsg_PPPPrinting_End,
590 PP_Instance /* instance */)
591IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_IsScalingDisabled,
592 PP_Instance /* instance */,
593 bool /* result */)
594
[email protected]3c8c74c2012-03-15 07:34:52595// PPP_TextInput.
596IPC_MESSAGE_ROUTED2(PpapiMsg_PPPTextInput_RequestSurroundingText,
597 PP_Instance /* instance */,
598 uint32_t /* desired_number_of_characters */)
599
[email protected]631179b2011-03-14 22:26:20600// PPB_URLLoader
601// (Messages from browser to plugin to notify it of changes in state.)
[email protected]214832f2012-09-18 05:44:23602//
603// NOTE: The ReadResponseBody_Ack message is a custom generated message
604// with the following fields appended:
605// ppapi::HostResource
606// response data (array of bytes stored via WriteData)
607// int result
608//
609IPC_MESSAGE_ROUTED0(PpapiMsg_PPBURLLoader_ReadResponseBody_Ack)
[email protected]0f41c012011-10-21 19:49:20610IPC_MESSAGE_ROUTED2(PpapiMsg_PPBURLLoader_CallbackComplete,
611 ppapi::HostResource /* loader */,
612 int32_t /* result */)
[email protected]246fc492012-08-27 20:28:18613#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:49614// PPB_Broker.
615IPC_MESSAGE_ROUTED3(
616 PpapiMsg_PPBBroker_ConnectComplete,
617 ppapi::HostResource /* broker */,
618 IPC::PlatformFileForTransit /* handle */,
619 int32_t /* result */)
620
[email protected]e5aeef02012-08-17 00:18:43621// PPP_ContentDecryptor_Dev
[email protected]f1b1db02012-10-29 22:50:23622IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_GenerateKeyRequest,
[email protected]e5aeef02012-08-17 00:18:43623 PP_Instance /* instance */,
624 ppapi::proxy::SerializedVar /* key_system, String */,
[email protected]f1b1db02012-10-29 22:50:23625 ppapi::proxy::SerializedVar /* type, String */,
[email protected]e5aeef02012-08-17 00:18:43626 ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */)
[email protected]98ad9782012-08-22 04:06:22627IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_AddKey,
[email protected]e5aeef02012-08-17 00:18:43628 PP_Instance /* instance */,
629 ppapi::proxy::SerializedVar /* session_id, String */,
[email protected]98ad9782012-08-22 04:06:22630 ppapi::proxy::SerializedVar /* key, ArrayBuffer */,
631 ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */)
[email protected]e5aeef02012-08-17 00:18:43632IPC_MESSAGE_ROUTED2(PpapiMsg_PPPContentDecryptor_CancelKeyRequest,
633 PP_Instance /* instance */,
634 ppapi::proxy::SerializedVar /* session_id, String */)
635IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_Decrypt,
636 PP_Instance /* instance */,
637 ppapi::proxy::PPPDecryptor_Buffer /* buffer */,
[email protected]98ad9782012-08-22 04:06:22638 std::string /* serialized_block_info */)
[email protected]e9d3a1022012-10-11 23:43:55639IPC_MESSAGE_ROUTED3(
[email protected]c999b3b72012-10-19 22:33:46640 PpapiMsg_PPPContentDecryptor_InitializeAudioDecoder,
641 PP_Instance /* instance */,
642 std::string /* serialized_decoder_config */,
643 ppapi::proxy::PPPDecryptor_Buffer /* extra_data_buffer */)
644IPC_MESSAGE_ROUTED3(
[email protected]e9d3a1022012-10-11 23:43:55645 PpapiMsg_PPPContentDecryptor_InitializeVideoDecoder,
646 PP_Instance /* instance */,
647 std::string /* serialized_decoder_config */,
648 ppapi::proxy::PPPDecryptor_Buffer /* extra_data_buffer. */)
[email protected]23de87452012-10-12 07:03:09649IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_DeinitializeDecoder,
650 PP_Instance /* instance */,
651 PP_DecryptorStreamType /* decoder_type */,
652 uint32_t /* request_id */)
653IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_ResetDecoder,
654 PP_Instance /* instance */,
655 PP_DecryptorStreamType /* decoder_type */,
656 uint32_t /* request_id */)
[email protected]467434d2012-10-12 10:48:53657IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_DecryptAndDecode,
[email protected]e5aeef02012-08-17 00:18:43658 PP_Instance /* instance */,
[email protected]467434d2012-10-12 10:48:53659 PP_DecryptorStreamType /* decoder_type */,
[email protected]98ad9782012-08-22 04:06:22660 ppapi::proxy::PPPDecryptor_Buffer /* buffer */,
661 std::string /* serialized_block_info */)
[email protected]667591d2012-09-04 21:30:12662#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:49663
664// PPB_TCPSocket_Private.
665IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPSocket_ConnectACK,
666 uint32 /* plugin_dispatcher_id */,
667 uint32 /* socket_id */,
668 bool /* succeeded */,
669 PP_NetAddress_Private /* local_addr */,
670 PP_NetAddress_Private /* remote_addr */)
671IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_SSLHandshakeACK,
672 uint32 /* plugin_dispatcher_id */,
673 uint32 /* socket_id */,
674 bool /* succeeded */,
675 ppapi::PPB_X509Certificate_Fields /* certificate_fields */)
676IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_ReadACK,
677 uint32 /* plugin_dispatcher_id */,
678 uint32 /* socket_id */,
679 bool /* succeeded */,
680 std::string /* data */)
681IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_WriteACK,
682 uint32 /* plugin_dispatcher_id */,
683 uint32 /* socket_id */,
684 bool /* succeeded */,
685 int32_t /* bytes_written */)
686
687// PPB_UDPSocket_Private.
688IPC_MESSAGE_ROUTED4(PpapiMsg_PPBUDPSocket_BindACK,
689 uint32 /* plugin_dispatcher_id */,
690 uint32 /* socket_id */,
691 bool /* succeeded */,
692 PP_NetAddress_Private /* bound_addr */)
693IPC_MESSAGE_ROUTED5(PpapiMsg_PPBUDPSocket_RecvFromACK,
694 uint32 /* plugin_dispatcher_id */,
695 uint32 /* socket_id */,
696 bool /* succeeded */,
697 std::string /* data */,
698 PP_NetAddress_Private /* remote_addr */)
699IPC_MESSAGE_ROUTED4(PpapiMsg_PPBUDPSocket_SendToACK,
700 uint32 /* plugin_dispatcher_id */,
701 uint32 /* socket_id */,
702 bool /* succeeded */,
703 int32_t /* bytes_written */)
704
705// PPB_URLLoader_Trusted
706IPC_MESSAGE_ROUTED1(
707 PpapiMsg_PPBURLLoader_UpdateProgress,
708 ppapi::proxy::PPBURLLoader_UpdateProgress_Params /* params */)
709
710// PPB_TCPServerSocket_Private.
711
712// |socket_resource| should not be used as Resource in browser. The
713// only purpose of this argument is to be echoed back.
714// |status| == PP_ERROR_NOSPACE means that the socket table is full
715// and new socket can't be initialized.
716// |status| == PP_ERROR_FAILED means that socket is correctly
717// initialized (if needed) but Listen call is failed.
718// |status| == PP_OK means that socket is correctly initialized (if
719// needed) and Listen call succeeds.
720IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPServerSocket_ListenACK,
721 uint32 /* plugin_dispatcher_id */,
722 PP_Resource /* socket_resource */,
723 uint32 /* socket_id */,
724 int32_t /* status */)
725IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPServerSocket_AcceptACK,
726 uint32 /* plugin_dispatcher_id */,
727 uint32 /* server_socket_id */,
728 uint32 /* accepted_socket_id */,
729 PP_NetAddress_Private /* local_addr */,
730 PP_NetAddress_Private /* remote_addr */)
731
732// PPB_HostResolver_Private.
733IPC_MESSAGE_ROUTED5(PpapiMsg_PPBHostResolver_ResolveACK,
734 uint32 /* plugin_dispatcher_id */,
735 uint32 /* host_resolver_id */,
736 bool /* succeeded */,
737 std::string /* canonical_name */,
[email protected]9984ca02012-09-13 18:12:02738 std::vector<PP_NetAddress_Private> /* net_address_list */)
[email protected]6761d632012-04-18 17:54:49739
[email protected]667591d2012-09-04 21:30:12740#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:49741// PPP_Instance_Private.
742IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject,
743 PP_Instance /* instance */,
744 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20745
[email protected]7ace8ad2011-08-06 03:23:58746// PPB_VideoDecoder_Dev.
747// (Messages from renderer to plugin to notify it to run callbacks.)
748IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK,
[email protected]be0a84b2011-08-13 04:18:44749 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58750 int32_t /* bitstream buffer id */,
751 int32_t /* PP_CompletionCallback result */)
752IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_FlushACK,
[email protected]be0a84b2011-08-13 04:18:44753 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58754 int32_t /* PP_CompletionCallback result */)
755IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_ResetACK,
[email protected]be0a84b2011-08-13 04:18:44756 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58757 int32_t /* PP_CompletionCallback result */)
758
759// PPP_VideoDecoder_Dev.
[email protected]08bab532012-06-08 19:39:45760IPC_MESSAGE_ROUTED4(PpapiMsg_PPPVideoDecoder_ProvidePictureBuffers,
[email protected]be0a84b2011-08-13 04:18:44761 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58762 uint32_t /* requested number of buffers */,
[email protected]08bab532012-06-08 19:39:45763 PP_Size /* dimensions of buffers */,
764 uint32_t /* texture_target */)
[email protected]7ace8ad2011-08-06 03:23:58765IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_DismissPictureBuffer,
[email protected]be0a84b2011-08-13 04:18:44766 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58767 int32_t /* picture buffer id */)
768IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_PictureReady,
[email protected]be0a84b2011-08-13 04:18:44769 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58770 PP_Picture_Dev /* output picture */)
[email protected]7ace8ad2011-08-06 03:23:58771IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_NotifyError,
[email protected]be0a84b2011-08-13 04:18:44772 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:58773 PP_VideoDecodeError_Dev /* error */)
[email protected]246fc492012-08-27 20:28:18774#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]7ace8ad2011-08-06 03:23:58775
[email protected]631179b2011-03-14 22:26:20776// -----------------------------------------------------------------------------
777// These are from the plugin to the renderer.
778
779// Reply to PpapiMsg_CreateChannel. The handle will be NULL if the channel
780// could not be established. This could be because the IPC could not be created
781// for some weird reason, but more likely that the plugin failed to load or
782// initialize properly.
783IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated,
784 IPC::ChannelHandle /* handle */)
785
[email protected]a9b16dd2012-01-31 05:00:26786// Logs the given message to the console of all instances.
787IPC_MESSAGE_CONTROL4(PpapiHostMsg_LogWithSource,
788 PP_Instance /* instance */,
789 int /* log_level */,
790 std::string /* source */,
791 std::string /* value */)
792
[email protected]631179b2011-03-14 22:26:20793// PPB_Audio.
[email protected]55cdf6052011-05-13 19:22:53794IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudio_Create,
[email protected]631179b2011-03-14 22:26:20795 PP_Instance /* instance_id */,
[email protected]55cdf6052011-05-13 19:22:53796 int32_t /* sample_rate */,
797 uint32_t /* sample_frame_count */,
[email protected]be0a84b2011-08-13 04:18:44798 ppapi::HostResource /* result */)
[email protected]631179b2011-03-14 22:26:20799IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop,
[email protected]be0a84b2011-08-13 04:18:44800 ppapi::HostResource /* audio_id */,
[email protected]631179b2011-03-14 22:26:20801 bool /* play */)
802
[email protected]631179b2011-03-14 22:26:20803// PPB_Core.
804IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource,
[email protected]be0a84b2011-08-13 04:18:44805 ppapi::HostResource)
[email protected]631179b2011-03-14 22:26:20806IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource,
[email protected]be0a84b2011-08-13 04:18:44807 ppapi::HostResource)
[email protected]631179b2011-03-14 22:26:20808
[email protected]cc6db922011-12-10 16:54:22809// PPB_FileIO.
810IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileIO_Create,
811 PP_Instance /* instance */,
812 ppapi::HostResource /* result */)
813IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Open,
814 ppapi::HostResource /* host_resource */,
815 ppapi::HostResource /* file_ref_resource */,
816 int32_t /* open_flags */)
817IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Close,
818 ppapi::HostResource /* host_resource */)
819IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Query,
820 ppapi::HostResource /* host_resource */)
821IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Touch,
822 ppapi::HostResource /* host_resource */,
823 PP_Time /* last_access_time */,
824 PP_Time /* last_modified_time */)
825IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Read,
826 ppapi::HostResource /* host_resource */,
827 int64_t /* offset */,
828 int32_t /* bytes_to_read */)
829IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Write,
830 ppapi::HostResource /* host_resource */,
831 int64_t /* offset */,
832 std::string /* data */)
833IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileIO_SetLength,
834 ppapi::HostResource /* host_resource */,
835 int64_t /* length */)
836IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Flush,
837 ppapi::HostResource /* host_resource */)
838IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_WillWrite,
839 ppapi::HostResource /* host_resource */,
840 int64_t /* offset */,
841 int32_t /* bytes_to_write */)
842IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileIO_WillSetLength,
843 ppapi::HostResource /* host_resource */,
844 int64_t /* length */)
845
[email protected]631179b2011-03-14 22:26:20846// PPB_FileRef.
847IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileRef_Create,
[email protected]be0a84b2011-08-13 04:18:44848 ppapi::HostResource /* file_system */,
[email protected]631179b2011-03-14 22:26:20849 std::string /* path */,
[email protected]6f75c952011-08-26 04:51:07850 ppapi::PPB_FileRef_CreateInfo /* result */)
[email protected]631179b2011-03-14 22:26:20851IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent,
[email protected]be0a84b2011-08-13 04:18:44852 ppapi::HostResource /* file_ref */,
[email protected]6f75c952011-08-26 04:51:07853 ppapi::PPB_FileRef_CreateInfo /* result */)
[email protected]631179b2011-03-14 22:26:20854IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory,
[email protected]be0a84b2011-08-13 04:18:44855 ppapi::HostResource /* file_ref */,
[email protected]631179b2011-03-14 22:26:20856 PP_Bool /* make_ancestors */,
[email protected]0f41c012011-10-21 19:49:20857 int /* callback_id */)
[email protected]631179b2011-03-14 22:26:20858IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileRef_Touch,
[email protected]be0a84b2011-08-13 04:18:44859 ppapi::HostResource /* file_ref */,
[email protected]631179b2011-03-14 22:26:20860 PP_Time /* last_access */,
861 PP_Time /* last_modified */,
[email protected]0f41c012011-10-21 19:49:20862 int /* callback_id */)
[email protected]631179b2011-03-14 22:26:20863IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Delete,
[email protected]be0a84b2011-08-13 04:18:44864 ppapi::HostResource /* file_ref */,
[email protected]0f41c012011-10-21 19:49:20865 int /* callback_id */)
[email protected]631179b2011-03-14 22:26:20866IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_Rename,
[email protected]be0a84b2011-08-13 04:18:44867 ppapi::HostResource /* file_ref */,
868 ppapi::HostResource /* new_file_ref */,
[email protected]0f41c012011-10-21 19:49:20869 int /* callback_id */)
[email protected]f12a3832011-11-28 23:11:45870IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetAbsolutePath,
871 ppapi::HostResource /* file_ref */,
872 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20873
874// PPB_FileSystem.
875IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create,
876 PP_Instance /* instance */,
877 int /* type */,
[email protected]be0a84b2011-08-13 04:18:44878 ppapi::HostResource /* result */)
[email protected]631179b2011-03-14 22:26:20879IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open,
[email protected]be0a84b2011-08-13 04:18:44880 ppapi::HostResource /* result */,
[email protected]631179b2011-03-14 22:26:20881 int64_t /* expected_size */)
882
[email protected]eeb4e4a2011-07-19 16:22:06883// PPB_Graphics3D.
[email protected]9ed07f82012-05-29 21:54:55884IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Create,
[email protected]eeb4e4a2011-07-19 16:22:06885 PP_Instance /* instance */,
[email protected]9ed07f82012-05-29 21:54:55886 ppapi::HostResource /* share_context */,
[email protected]eeb4e4a2011-07-19 16:22:06887 std::vector<int32_t> /* attrib_list */,
[email protected]be0a84b2011-08-13 04:18:44888 ppapi::HostResource /* result */)
[email protected]503b3a22011-12-12 23:29:40889IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBGraphics3D_InitCommandBuffer,
890 ppapi::HostResource /* context */)
891IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer,
[email protected]be0a84b2011-08-13 04:18:44892 ppapi::HostResource /* context */,
[email protected]503b3a22011-12-12 23:29:40893 int32 /* transfer_buffer_id */)
[email protected]571b35e82012-05-19 00:04:35894IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBGraphics3D_GetState,
[email protected]be0a84b2011-08-13 04:18:44895 ppapi::HostResource /* context */,
[email protected]571b35e82012-05-19 00:04:35896 gpu::CommandBuffer::State /* state */,
897 bool /* success */)
898IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBGraphics3D_Flush,
[email protected]be0a84b2011-08-13 04:18:44899 ppapi::HostResource /* context */,
[email protected]eeb4e4a2011-07-19 16:22:06900 int32 /* put_offset */,
901 int32 /* last_known_get */,
[email protected]571b35e82012-05-19 00:04:35902 gpu::CommandBuffer::State /* state */,
903 bool /* success */)
[email protected]eeb4e4a2011-07-19 16:22:06904IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics3D_AsyncFlush,
[email protected]be0a84b2011-08-13 04:18:44905 ppapi::HostResource /* context */,
[email protected]eeb4e4a2011-07-19 16:22:06906 int32 /* put_offset */)
[email protected]eeb4e4a2011-07-19 16:22:06907IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer,
[email protected]be0a84b2011-08-13 04:18:44908 ppapi::HostResource /* context */,
[email protected]b31199e2012-12-12 00:48:29909 uint32 /* size */,
[email protected]eeb4e4a2011-07-19 16:22:06910 int32 /* id */)
[email protected]eeb4e4a2011-07-19 16:22:06911IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer,
[email protected]be0a84b2011-08-13 04:18:44912 ppapi::HostResource /* context */,
[email protected]eeb4e4a2011-07-19 16:22:06913 int32 /* id */)
[email protected]246fc492012-08-27 20:28:18914IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBGraphics3D_GetTransferBuffer,
[email protected]be0a84b2011-08-13 04:18:44915 ppapi::HostResource /* context */,
[email protected]eeb4e4a2011-07-19 16:22:06916 int32 /* id */,
[email protected]246fc492012-08-27 20:28:18917 ppapi::proxy::SerializedHandle /* transfer_buffer */)
[email protected]eeb4e4a2011-07-19 16:22:06918IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics3D_SwapBuffers,
[email protected]be0a84b2011-08-13 04:18:44919 ppapi::HostResource /* graphics_3d */)
[email protected]eeb4e4a2011-07-19 16:22:06920
[email protected]2a1d6d912011-12-04 23:29:06921// PPB_ImageData.
922IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_Create,
923 PP_Instance /* instance */,
924 int32 /* format */,
925 PP_Size /* size */,
926 PP_Bool /* init_to_zero */,
927 ppapi::HostResource /* result_resource */,
928 std::string /* image_data_desc */,
929 ppapi::proxy::ImageHandle /* result */)
[email protected]16b7b272012-07-25 21:54:49930IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_CreateNaCl,
931 PP_Instance /* instance */,
932 int32 /* format */,
933 PP_Size /* size */,
934 PP_Bool /* init_to_zero */,
935 ppapi::HostResource /* result_resource */,
936 std::string /* image_data_desc */,
[email protected]246fc492012-08-27 20:28:18937 ppapi::proxy::SerializedHandle /* result */)
[email protected]2a1d6d912011-12-04 23:29:06938
[email protected]631179b2011-03-14 22:26:20939// PPB_Instance.
940IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject,
941 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:02942 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20943IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject,
944 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:02945 ppapi::proxy::SerializedVar /* result */)
[email protected]473ef7d2012-12-03 23:39:05946IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_BindGraphics,
947 PP_Instance /* instance */,
948 PP_Resource /* device */)
[email protected]c59ed5892012-02-18 01:10:19949IPC_SYNC_MESSAGE_ROUTED1_1(
950 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputSampleRate,
951 PP_Instance /* instance */,
952 uint32_t /* result */)
953IPC_SYNC_MESSAGE_ROUTED1_1(
954 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputBufferSize,
955 PP_Instance /* instance */,
956 uint32_t /* result */)
[email protected]631179b2011-03-14 22:26:20957IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_IsFullFrame,
958 PP_Instance /* instance */,
959 PP_Bool /* result */)
960IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBInstance_ExecuteScript,
961 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:02962 ppapi::proxy::SerializedVar /* script */,
963 ppapi::proxy::SerializedVar /* out_exception */,
964 ppapi::proxy::SerializedVar /* result */)
[email protected]8d770e492011-10-11 04:54:31965IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetDefaultCharSet,
966 PP_Instance /* instance */,
967 ppapi::proxy::SerializedVar /* result */)
[email protected]7a26d92e2012-02-17 20:15:25968IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBInstance_GetFontFamilies,
969 std::string /* result */)
[email protected]06e0a342011-09-27 04:24:30970IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_SetFullscreen,
971 PP_Instance /* instance */,
972 PP_Bool /* fullscreen */,
973 PP_Bool /* result */)
974IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetScreenSize,
975 PP_Instance /* instance */,
976 PP_Bool /* result */,
977 PP_Size /* size */)
[email protected]493d14212011-07-07 15:38:48978IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_RequestInputEvents,
979 PP_Instance /* instance */,
980 bool /* is_filtering */,
981 uint32_t /* event_classes */)
982IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_ClearInputEvents,
983 PP_Instance /* instance */,
984 uint32_t /* event_classes */)
[email protected]55a5a522011-07-06 22:52:40985IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PostMessage,
986 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:02987 ppapi::proxy::SerializedVar /* message */)
[email protected]0f41c012011-10-21 19:49:20988IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_LockMouse,
989 PP_Instance /* instance */)
[email protected]18d871f2011-09-08 16:56:34990IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_UnlockMouse,
991 PP_Instance /* instance */)
[email protected]03460232011-10-10 17:23:57992IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_ResolveRelativeToDocument,
993 PP_Instance /* instance */,
994 ppapi::proxy::SerializedVar /* relative */,
995 ppapi::proxy::SerializedVar /* result */)
996IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanRequest,
997 PP_Instance /* instance */,
998 ppapi::proxy::SerializedVar /* relative */,
999 PP_Bool /* result */)
1000IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanAccessDocument,
1001 PP_Instance /* active */,
1002 PP_Instance /* target */,
1003 PP_Bool /* result */)
[email protected]32938de2012-10-19 18:42:321004IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetDocumentURL,
[email protected]03460232011-10-10 17:23:571005 PP_Instance /* active */,
[email protected]32938de2012-10-19 18:42:321006 PP_URLComponents_Dev /* components */,
[email protected]03460232011-10-10 17:23:571007 ppapi::proxy::SerializedVar /* result */)
1008IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetPluginInstanceURL,
1009 PP_Instance /* active */,
1010 ppapi::proxy::SerializedVar /* result */)
[email protected]33ec50562012-04-08 20:28:431011IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SetCursor,
1012 PP_Instance /* instance */,
1013 int32_t /* type */,
1014 ppapi::HostResource /* custom_image */,
1015 PP_Point /* hot_spot */)
[email protected]4c44183a2012-04-27 16:52:231016IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SetTextInputType,
[email protected]2daba2f32011-09-29 04:23:091017 PP_Instance /* instance */,
1018 PP_TextInput_Type /* type */)
[email protected]4c44183a2012-04-27 16:52:231019IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_UpdateCaretPosition,
[email protected]2daba2f32011-09-29 04:23:091020 PP_Instance /* instance */,
1021 PP_Rect /* caret */,
1022 PP_Rect /* bounding_box */)
[email protected]4c44183a2012-04-27 16:52:231023IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_CancelCompositionText,
[email protected]2daba2f32011-09-29 04:23:091024 PP_Instance /* instance */)
[email protected]4c44183a2012-04-27 16:52:231025IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_UpdateSurroundingText,
[email protected]3c8c74c2012-03-15 07:34:521026 PP_Instance /* instance */,
1027 std::string /* text */,
1028 uint32_t /* caret */,
1029 uint32_t /* anchor */)
[email protected]2daba2f32011-09-29 04:23:091030
[email protected]631179b2011-03-14 22:26:201031// PPB_URLLoader.
1032IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create,
1033 PP_Instance /* instance */,
[email protected]be0a84b2011-08-13 04:18:441034 ppapi::HostResource /* result */)
[email protected]0f41c012011-10-21 19:49:201035IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_Open,
[email protected]be0a84b2011-08-13 04:18:441036 ppapi::HostResource /* loader */,
[email protected]7b2f7292012-09-19 19:52:121037 ppapi::URLRequestInfoData /* request_data */)
[email protected]0f41c012011-10-21 19:49:201038IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FollowRedirect,
1039 ppapi::HostResource /* loader */)
[email protected]844fecb2012-11-16 20:11:061040IPC_SYNC_MESSAGE_ROUTED1_2(
[email protected]631179b2011-03-14 22:26:201041 PpapiHostMsg_PPBURLLoader_GetResponseInfo,
[email protected]be0a84b2011-08-13 04:18:441042 ppapi::HostResource /* loader */,
[email protected]844fecb2012-11-16 20:11:061043 bool /* success */,
1044 ppapi::URLResponseInfoData /* result */)
[email protected]631179b2011-03-14 22:26:201045IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_ReadResponseBody,
[email protected]be0a84b2011-08-13 04:18:441046 ppapi::HostResource /* loader */,
[email protected]631179b2011-03-14 22:26:201047 int32_t /* bytes_to_read */)
[email protected]0f41c012011-10-21 19:49:201048IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FinishStreamingToFile,
1049 ppapi::HostResource /* loader */)
[email protected]631179b2011-03-14 22:26:201050IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_Close,
[email protected]be0a84b2011-08-13 04:18:441051 ppapi::HostResource /* loader */)
[email protected]bf712f8e2011-06-17 02:10:451052IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_GrantUniversalAccess,
[email protected]be0a84b2011-08-13 04:18:441053 ppapi::HostResource /* loader */)
[email protected]631179b2011-03-14 22:26:201054
[email protected]631179b2011-03-14 22:26:201055// PPB_Var.
[email protected]5b2d3852011-04-19 23:22:401056IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVar_AddRefObject,
1057 int64 /* object_id */,
1058 int /* unused - need a return value for sync msgs */)
[email protected]631179b2011-03-14 22:26:201059IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_ReleaseObject,
1060 int64 /* object_id */)
1061IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_ConvertType,
1062 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:021063 ppapi::proxy::SerializedVar /* var */,
[email protected]631179b2011-03-14 22:26:201064 int /* new_type */,
[email protected]4d2efd22011-08-18 21:58:021065 ppapi::proxy::SerializedVar /* exception */,
1066 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201067IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasProperty,
[email protected]4d2efd22011-08-18 21:58:021068 ppapi::proxy::SerializedVar /* object */,
1069 ppapi::proxy::SerializedVar /* property */,
1070 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:201071 PP_Bool /* result */)
1072IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasMethodDeprecated,
[email protected]4d2efd22011-08-18 21:58:021073 ppapi::proxy::SerializedVar /* object */,
1074 ppapi::proxy::SerializedVar /* method */,
1075 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:201076 PP_Bool /* result */)
1077IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_GetProperty,
[email protected]4d2efd22011-08-18 21:58:021078 ppapi::proxy::SerializedVar /* object */,
1079 ppapi::proxy::SerializedVar /* property */,
1080 ppapi::proxy::SerializedVar /* out_exception */,
1081 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201082IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_DeleteProperty,
[email protected]4d2efd22011-08-18 21:58:021083 ppapi::proxy::SerializedVar /* object */,
1084 ppapi::proxy::SerializedVar /* property */,
1085 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:201086 PP_Bool /* result */)
1087IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBVar_EnumerateProperties,
[email protected]4d2efd22011-08-18 21:58:021088 ppapi::proxy::SerializedVar /* object */,
1089 std::vector<ppapi::proxy::SerializedVar> /* props */,
1090 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:201091IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_SetPropertyDeprecated,
[email protected]4d2efd22011-08-18 21:58:021092 ppapi::proxy::SerializedVar /* object */,
1093 ppapi::proxy::SerializedVar /* name */,
1094 ppapi::proxy::SerializedVar /* value */,
1095 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:201096IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_CallDeprecated,
[email protected]4d2efd22011-08-18 21:58:021097 ppapi::proxy::SerializedVar /* object */,
1098 ppapi::proxy::SerializedVar /* method_name */,
1099 std::vector<ppapi::proxy::SerializedVar> /* args */,
1100 ppapi::proxy::SerializedVar /* out_exception */,
1101 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201102IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_Construct,
[email protected]4d2efd22011-08-18 21:58:021103 ppapi::proxy::SerializedVar /* object */,
1104 std::vector<ppapi::proxy::SerializedVar> /* args */,
1105 ppapi::proxy::SerializedVar /* out_exception */,
1106 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201107IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated,
[email protected]4d2efd22011-08-18 21:58:021108 ppapi::proxy::SerializedVar /* var */,
[email protected]631179b2011-03-14 22:26:201109 int64 /* object_class */,
1110 int64 /* object-data */,
1111 PP_Bool /* result */)
1112IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated,
1113 PP_Instance /* instance */,
1114 int64 /* object_class */,
1115 int64 /* object_data */,
[email protected]4d2efd22011-08-18 21:58:021116 ppapi::proxy::SerializedVar /* result */)
[email protected]6239d342011-05-06 22:55:471117
[email protected]246fc492012-08-27 20:28:181118#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:491119// PPB_Broker.
1120IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBBroker_Create,
1121 PP_Instance /* instance */,
1122 ppapi::HostResource /* result_resource */)
1123IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBBroker_Connect,
1124 ppapi::HostResource /* broker */)
1125
1126// PPB_Buffer.
[email protected]246fc492012-08-27 20:28:181127IPC_SYNC_MESSAGE_ROUTED2_2(
1128 PpapiHostMsg_PPBBuffer_Create,
1129 PP_Instance /* instance */,
1130 uint32_t /* size */,
1131 ppapi::HostResource /* result_resource */,
1132 ppapi::proxy::SerializedHandle /* result_shm_handle */)
[email protected]6761d632012-04-18 17:54:491133
[email protected]e5aeef02012-08-17 00:18:431134// PPB_ContentDecryptor_Dev messages handled in PPB_Instance_Proxy.
1135IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_NeedKey,
1136 PP_Instance /* instance */,
1137 ppapi::proxy::SerializedVar /* key_system, String */,
1138 ppapi::proxy::SerializedVar /* session_id, String */,
1139 ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */)
1140IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_KeyAdded,
1141 PP_Instance /* instance */,
1142 ppapi::proxy::SerializedVar /* key_system, String */,
1143 ppapi::proxy::SerializedVar /* session_id, String */)
1144IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_KeyMessage,
1145 PP_Instance /* instance */,
1146 ppapi::proxy::SerializedVar /* key_system, String */,
1147 ppapi::proxy::SerializedVar /* session_id, String */,
[email protected]a6e4fbf2012-12-12 05:25:001148 ppapi::proxy::SerializedVar /* message, ArrayBuffer */,
[email protected]e5aeef02012-08-17 00:18:431149 ppapi::proxy::SerializedVar /* default_url, String */)
1150IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_KeyError,
1151 PP_Instance /* instance */,
1152 ppapi::proxy::SerializedVar /* key_system, String */,
1153 ppapi::proxy::SerializedVar /* session_id, String */,
1154 int32_t /* media_error */,
1155 int32_t /* system_code */)
1156IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverBlock,
1157 PP_Instance /* instance */,
1158 PP_Resource /* decrypted_block, PPB_Buffer_Dev */,
[email protected]98ad9782012-08-22 04:06:221159 std::string /* serialized_block_info */)
[email protected]c999b3b72012-10-19 22:33:461160IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_DecoderInitializeDone,
[email protected]e9d3a1022012-10-11 23:43:551161 PP_Instance /* instance */,
[email protected]c999b3b72012-10-19 22:33:461162 PP_DecryptorStreamType /* decoder_type */,
1163 uint32_t /* request_id */,
1164 PP_Bool /* success */)
[email protected]23de87452012-10-12 07:03:091165IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DecoderDeinitializeDone,
1166 PP_Instance /* instance */,
1167 PP_DecryptorStreamType /* decoder_type */,
1168 uint32_t /* request_id */)
1169IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DecoderResetDone,
1170 PP_Instance /* instance */,
1171 PP_DecryptorStreamType /* decoder_type */,
1172 uint32_t /* request_id */)
[email protected]e5aeef02012-08-17 00:18:431173IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverFrame,
1174 PP_Instance /* instance */,
1175 PP_Resource /* decrypted_frame, PPB_Buffer_Dev */,
[email protected]98ad9782012-08-22 04:06:221176 std::string /* serialized_block_info */)
[email protected]e5aeef02012-08-17 00:18:431177IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverSamples,
1178 PP_Instance /* instance */,
[email protected]c999b3b72012-10-19 22:33:461179 PP_Resource /* audio_frames, PPB_Buffer_Dev */,
[email protected]98ad9782012-08-22 04:06:221180 std::string /* serialized_block_info */)
[email protected]e8f578d2012-09-17 19:27:101181#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]e5aeef02012-08-17 00:18:431182
[email protected]6761d632012-04-18 17:54:491183// PPB_NetworkMonitor_Private.
1184IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start,
1185 uint32 /* plugin_dispatcher_id */)
1186IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop,
1187 uint32 /* plugin_dispatcher_id */)
1188
1189// PPB_HostResolver_Private.
1190IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBHostResolver_Resolve,
1191 int32 /* routing_id */,
1192 uint32 /* plugin_dispatcher_id */,
1193 uint32 /* host_resolver_id */,
1194 ppapi::HostPortPair /* host_port */,
1195 PP_HostResolver_Private_Hint /* hint */)
1196
[email protected]667591d2012-09-04 21:30:121197#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:491198// PPB_PDF
1199IPC_SYNC_MESSAGE_ROUTED3_1(
1200 PpapiHostMsg_PPBPDF_GetFontFileWithFallback,
1201 PP_Instance /* instance */,
1202 ppapi::proxy::SerializedFontDescription /* description */,
1203 int32_t /* charset */,
1204 ppapi::HostResource /* result */)
1205IPC_SYNC_MESSAGE_ROUTED2_1(
1206 PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile,
1207 ppapi::HostResource /* font_file */,
1208 uint32_t /* table */,
1209 std::string /* result */)
[email protected]667591d2012-09-04 21:30:121210#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:491211
1212// PPB_Testing.
1213IPC_SYNC_MESSAGE_ROUTED3_1(
1214 PpapiHostMsg_PPBTesting_ReadImageData,
1215 ppapi::HostResource /* device_context_2d */,
1216 ppapi::HostResource /* image */,
1217 PP_Point /* top_left */,
1218 PP_Bool /* result */)
1219IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance,
1220 PP_Instance /* instance */,
1221 uint32 /* result */)
1222IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTesting_SimulateInputEvent,
1223 PP_Instance /* instance */,
1224 ppapi::InputEventData /* input_event */)
1225
[email protected]667591d2012-09-04 21:30:121226#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]0fa46e82011-08-09 07:31:491227
[email protected]7ace8ad2011-08-06 03:23:581228// PPB_VideoDecoder.
1229IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVideoDecoder_Create,
1230 PP_Instance /* instance */,
[email protected]be0a84b2011-08-13 04:18:441231 ppapi::HostResource /* context */,
[email protected]2ffc31a2011-09-01 03:18:281232 PP_VideoDecoder_Profile /* profile */,
[email protected]be0a84b2011-08-13 04:18:441233 ppapi::HostResource /* result */)
[email protected]7ace8ad2011-08-06 03:23:581234IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoDecoder_Decode,
[email protected]be0a84b2011-08-13 04:18:441235 ppapi::HostResource /* video_decoder */,
1236 ppapi::HostResource /* bitstream buffer */,
[email protected]7ace8ad2011-08-06 03:23:581237 int32 /* bitstream buffer id */,
[email protected]b31199e2012-12-12 00:48:291238 uint32 /* size of buffer */)
[email protected]7ace8ad2011-08-06 03:23:581239IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_AssignPictureBuffers,
[email protected]be0a84b2011-08-13 04:18:441240 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:581241 std::vector<PP_PictureBuffer_Dev> /* picture buffers */)
1242IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer,
[email protected]be0a84b2011-08-13 04:18:441243 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:581244 int32_t /* picture buffer id */)
1245IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush,
[email protected]be0a84b2011-08-13 04:18:441246 ppapi::HostResource /* video_decoder */)
[email protected]7ace8ad2011-08-06 03:23:581247IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset,
[email protected]be0a84b2011-08-13 04:18:441248 ppapi::HostResource /* video_decoder */)
[email protected]7ace8ad2011-08-06 03:23:581249IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy,
[email protected]be0a84b2011-08-13 04:18:441250 ppapi::HostResource /* video_decoder */)
[email protected]339fbcff2012-02-29 16:10:321251
[email protected]339fbcff2012-02-29 16:10:321252// PPB_Flash.
[email protected]1b0eac862012-12-13 19:29:481253IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlash_SetInstanceAlwaysOnTop,
1254 PP_Instance /* instance */,
1255 PP_Bool /* on_top */)
1256// This has to be synchronous becuase the caller may want to composite on
1257// top of the resulting text after the call is complete.
1258IPC_SYNC_MESSAGE_ROUTED2_1(
1259 PpapiHostMsg_PPBFlash_DrawGlyphs,
1260 PP_Instance /* instance */,
1261 ppapi::proxy::PPBFlash_DrawGlyphs_Params /* params */,
1262 PP_Bool /* result */)
1263IPC_SYNC_MESSAGE_ROUTED4_1(PpapiHostMsg_PPBFlash_Navigate,
1264 PP_Instance /* instance */,
1265 ppapi::URLRequestInfoData /* request_data */,
1266 std::string /* target */,
1267 PP_Bool /* from_user_action */,
1268 int32_t /* result */)
[email protected]339fbcff2012-02-29 16:10:321269IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetLocalTimeZoneOffset,
1270 PP_Instance /* instance */,
1271 PP_Time /* t */,
1272 double /* offset */)
[email protected]1b0eac862012-12-13 19:29:481273IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_IsRectTopmost,
1274 PP_Instance /* instance */,
1275 PP_Rect /* rect */,
1276 PP_Bool /* result */)
[email protected]ea628e32012-08-02 21:50:161277IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetSetting,
1278 PP_Instance /* instance */,
1279 PP_FlashSetting /* setting */,
1280 ppapi::proxy::SerializedVar /* result */)
[email protected]765b08442012-05-07 22:01:411281IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFlash_InvokePrinting,
1282 PP_Instance /* instance */)
[email protected]339fbcff2012-02-29 16:10:321283
[email protected]339fbcff2012-02-29 16:10:321284// PPB_Flash_MessageLoop.
1285IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Create,
1286 PP_Instance /* instance */,
1287 ppapi::HostResource /* result */)
1288IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Run,
1289 ppapi::HostResource /* flash_message_loop */,
1290 int32_t /* result */)
1291IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlashMessageLoop_Quit,
1292 ppapi::HostResource /* flash_message_loop */)
[email protected]667591d2012-09-04 21:30:121293#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]339fbcff2012-02-29 16:10:321294
[email protected]339fbcff2012-02-29 16:10:321295// PPB_TCPSocket_Private.
1296IPC_SYNC_MESSAGE_CONTROL2_1(PpapiHostMsg_PPBTCPSocket_Create,
1297 int32 /* routing_id */,
1298 uint32 /* plugin_dispatcher_id */,
1299 uint32 /* socket_id */)
1300IPC_MESSAGE_CONTROL4(PpapiHostMsg_PPBTCPSocket_Connect,
1301 int32 /* routing_id */,
1302 uint32 /* socket_id */,
1303 std::string /* host */,
1304 uint16_t /* port */)
1305IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBTCPSocket_ConnectWithNetAddress,
1306 int32 /* routing_id */,
1307 uint32 /* socket_id */,
1308 PP_NetAddress_Private /* net_addr */)
[email protected]92a794992012-04-12 03:38:221309IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBTCPSocket_SSLHandshake,
[email protected]339fbcff2012-02-29 16:10:321310 uint32 /* socket_id */,
1311 std::string /* server_name */,
[email protected]92a794992012-04-12 03:38:221312 uint16_t /* server_port */,
1313 std::vector<std::vector<char> > /* trusted_certs */,
1314 std::vector<std::vector<char> > /* untrusted_certs */)
[email protected]339fbcff2012-02-29 16:10:321315IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Read,
1316 uint32 /* socket_id */,
1317 int32_t /* bytes_to_read */)
1318IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Write,
1319 uint32 /* socket_id */,
1320 std::string /* data */)
1321IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPSocket_Disconnect,
1322 uint32 /* socket_id */)
1323
1324// PPB_UDPSocket_Private.
1325IPC_SYNC_MESSAGE_CONTROL2_1(PpapiHostMsg_PPBUDPSocket_Create,
1326 int32 /* routing_id */,
1327 uint32 /* plugin_dispatcher_id */,
1328 uint32 /* socket_id */)
[email protected]0addda92012-08-31 08:55:281329IPC_MESSAGE_CONTROL4(PpapiHostMsg_PPBUDPSocket_SetBoolSocketFeature,
1330 int32 /* routing_id */,
1331 uint32 /* socket_id */,
1332 int32_t /* name */,
1333 bool /* value */)
[email protected]339fbcff2012-02-29 16:10:321334IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBUDPSocket_Bind,
1335 int32 /* routing_id */,
1336 uint32 /* socket_id */,
1337 PP_NetAddress_Private /* net_addr */)
1338IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBUDPSocket_RecvFrom,
1339 uint32 /* socket_id */,
1340 int32_t /* num_bytes */)
[email protected]157cc902012-11-02 06:31:581341IPC_MESSAGE_CONTROL4(PpapiHostMsg_PPBUDPSocket_SendTo,
1342 int32 /* routing_id */,
[email protected]339fbcff2012-02-29 16:10:321343 uint32 /* socket_id */,
1344 std::string /* data */,
1345 PP_NetAddress_Private /* net_addr */)
1346IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBUDPSocket_Close,
1347 uint32 /* socket_id */)
1348
1349// PPB_TCPServerSocket_Private.
1350IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBTCPServerSocket_Listen,
1351 int32 /* routing_id */,
1352 uint32 /* plugin_dispatcher_id */,
[email protected]2d011e82012-03-15 09:39:561353 PP_Resource /* socket_resource */,
[email protected]339fbcff2012-02-29 16:10:321354 PP_NetAddress_Private /* addr */,
1355 int32_t /* backlog */)
[email protected]2d011e82012-03-15 09:39:561356IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPServerSocket_Accept,
1357 int32 /* tcp_client_socket_routing_id */,
1358 uint32 /* server_socket_id */)
[email protected]339fbcff2012-02-29 16:10:321359IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Destroy,
[email protected]2d011e82012-03-15 09:39:561360 uint32 /* socket_id */)
[email protected]339fbcff2012-02-29 16:10:321361
[email protected]de2895262012-04-04 17:15:481362// PPB_X509Certificate_Private
1363IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER,
1364 std::vector<char> /* der */,
1365 bool /* succeeded */,
1366 ppapi::PPB_X509Certificate_Fields /* result */)
1367
[email protected]667591d2012-09-04 21:30:121368#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]339fbcff2012-02-29 16:10:321369// PPB_Font.
1370IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies,
1371 std::string /* result */)
[email protected]077ecfd42012-06-21 21:46:261372
[email protected]246fc492012-08-27 20:28:181373#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]077ecfd42012-06-21 21:46:261374
1375//-----------------------------------------------------------------------------
1376// Resource call/reply messages.
1377//
1378// These are the new-style resource implementations where the resource is only
1379// implemented in the proxy and "resource messages" are sent between this and a
1380// host object. Resource messages are a wrapper around some general routing
1381// information and a separate message of a type defined by the specific resource
1382// sending/receiving it. The extra paremeters allow the nested message to be
1383// routed automatically to the correct resource.
1384
1385// Notification that a resource has been created in the plugin. The nested
1386// message will be resource-type-specific.
1387IPC_MESSAGE_CONTROL3(PpapiHostMsg_ResourceCreated,
1388 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1389 PP_Instance /* instance */,
1390 IPC::Message /* nested_msg */)
1391
1392// Notification that a resource has been destroyed in the plugin.
1393IPC_MESSAGE_CONTROL1(PpapiHostMsg_ResourceDestroyed,
1394 PP_Resource /* resource */)
1395
[email protected]db70c132012-12-05 00:41:201396// Most resources are created by the plugin, which then sends a ResourceCreated
1397// message to create a corresponding ResourceHost in the renderer or browser
1398// host process. However, some resources are first created in the host and
1399// "pushed" or returned to the plugin.
1400//
1401// In this case, the host will create a "pending" ResourceHost object which
1402// is identified by an ID. The ID is sent to the plugin process and the
1403// PluginResource object is created. This message is sent from the plugin to
1404// the host process to connect the PluginResource and the pending ResourceHost
1405// (at which point, it's no longer pending).
1406IPC_MESSAGE_CONTROL2(PpapiHostMsg_AttachToPendingHost,
1407 PP_Resource /* resource */,
1408 int /* pending_host_id */)
1409
[email protected]077ecfd42012-06-21 21:46:261410// A resource call is a request from the plugin to the host. It may or may not
1411// require a reply, depending on the params. The nested message will be
1412// resource-type-specific.
1413IPC_MESSAGE_CONTROL2(PpapiHostMsg_ResourceCall,
1414 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1415 IPC::Message /* nested_msg */)
1416
1417// A resource reply is a response to a ResourceCall from a host to the
1418// plugin. The resource ID + sequence number in the params will correspond to
1419// that of the previous ResourceCall.
1420IPC_MESSAGE_CONTROL2(
1421 PpapiPluginMsg_ResourceReply,
1422 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1423 IPC::Message /* nested_msg */)
[email protected]eccf80312012-07-14 15:43:421424
[email protected]ff44fc12012-10-03 00:52:161425IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_ResourceSyncCall,
1426 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1427 IPC::Message /* nested_msg */,
1428 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1429 IPC::Message /* reply_msg */)
1430
[email protected]eccf80312012-07-14 15:43:421431//-----------------------------------------------------------------------------
1432// Messages for resources using call/reply above.
1433
[email protected]83d12c8d2012-12-10 19:28:461434// Broker ----------------------------------------------------------------------
1435IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_Create)
1436
1437// Queries whether the plugin has permission to connect to the Pepper broker.
1438// The response is contained in the error value of the
1439// ResourceMessageReplyParams in the reply message.
1440IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_IsAllowed)
1441
[email protected]eccf80312012-07-14 15:43:421442// File chooser.
1443IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create)
1444IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show,
1445 bool /* save_as */,
1446 bool /* open_multiple */,
1447 std::string /* suggested_file_name */,
1448 std::vector<std::string> /* accept_mime_types */)
1449IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply,
1450 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */)
[email protected]f5118812012-08-24 19:54:301451
[email protected]b7631cc2012-09-15 05:08:381452// Flash device ID.
1453IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_Create)
1454IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_GetDeviceID)
1455IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDeviceID_GetDeviceIDReply,
1456 std::string /* id */)
1457
[email protected]f5118812012-08-24 19:54:301458// Gamepad.
1459IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create)
[email protected]00c0d042012-09-10 07:06:391460
1461// Requests that the gamepad host send the shared memory handle to the plugin
1462// process.
[email protected]f5118812012-08-24 19:54:301463IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_RequestMemory)
[email protected]00c0d042012-09-10 07:06:391464
1465// Reply to a RequestMemory call. This supplies the shared memory handle. The
1466// actual handle is passed in the ReplyParams struct.
1467IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Gamepad_SendMemory)
1468
[email protected]08e65c12012-11-29 18:53:291469
1470// Graphics2D, plugin -> host
1471IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_Create,
1472 PP_Size /* size */,
1473 PP_Bool /* is_always_opaque */)
1474IPC_MESSAGE_CONTROL4(PpapiHostMsg_Graphics2D_PaintImageData,
1475 ppapi::HostResource /* image_data */,
1476 PP_Point /* top_left */,
1477 bool /* src_rect_specified */,
1478 PP_Rect /* src_rect */)
1479IPC_MESSAGE_CONTROL3(PpapiHostMsg_Graphics2D_Scroll,
1480 bool /* clip_specified */,
1481 PP_Rect /* clip */,
1482 PP_Point /* amount */)
1483IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_ReplaceContents,
1484 ppapi::HostResource /* image_data */)
1485IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_Dev_SetScale,
1486 float /* scale */)
1487
1488// Graphics2D, plugin -> host -> plugin
1489IPC_MESSAGE_CONTROL0(PpapiHostMsg_Graphics2D_Flush)
1490IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_FlushAck)
1491
1492IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_ReadImageData,
1493 PP_Resource /* image */,
1494 PP_Point /* top_left */)
1495IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck)
1496
1497
[email protected]e9cb0b792012-09-07 07:11:061498// Printing.
1499IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create)
1500IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings)
1501IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply,
1502 PP_PrintSettings_Dev /* print_settings */)
[email protected]9d5eadf2012-10-09 03:43:481503
1504// WebSocket ------------------------------------------------------------------
[email protected]9d5eadf2012-10-09 03:43:481505IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create)
1506
1507// Establishes the connection to a server. This message requires
1508// WebSocket_ConnectReply as a reply message.
1509IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Connect,
1510 std::string /* url */,
1511 std::vector<std::string> /* protocols */)
1512
1513// Closes established connection with graceful closing handshake. This message
1514// requires WebSocket_CloseReply as a reply message.
1515IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Close,
1516 int32_t /* code */,
1517 std::string /* reason */)
1518
1519// Sends a text frame to the server. No reply is defined.
1520IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_SendText,
1521 std::string /* message */)
1522
1523// Sends a binary frame to the server. No reply is defined.
1524IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_SendBinary,
1525 std::vector<uint8_t> /* message */)
1526
1527// Fails the connection. This message invokes RFC6455 defined
1528// _Fail the WebSocket Connection_ operation. No reply is defined.
1529IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_Fail,
1530 std::string /* message */)
1531
1532// This message is a reply to WebSocket_Connect. If the |url| and |protocols|
1533// are invalid, WebSocket_ConnectReply is issued immediately and it contains
1534// proper error code in its result. Otherwise, WebSocket_ConnectReply is sent
1535// with valid |url|, |protocol|, and result PP_OK. |protocol| is not a passed
1536// |protocols|, but a result of opening handshake negotiation. If the
1537// connection can not be established successfully, WebSocket_ConnectReply is
1538// not issued, but WebSocket_ClosedReply is sent instead.
1539IPC_MESSAGE_CONTROL2(PpapiPluginMsg_WebSocket_ConnectReply,
1540 std::string /* url */,
1541 std::string /* protocol */)
1542
1543// This message is a reply to WebSocket_Close. If the operation fails,
1544// WebSocket_CloseReply is issued immediately and it contains PP_ERROR_FAILED.
1545// Otherwise, CloseReply will be issued after the closing handshake is
1546// finished. All arguments will be valid iff the result is PP_OK and it means
1547// that the client initiated closing handshake is finished gracefully.
1548IPC_MESSAGE_CONTROL4(PpapiPluginMsg_WebSocket_CloseReply,
[email protected]76e6df02012-11-09 01:43:071549 uint64_t /* buffered_amount */,
[email protected]9d5eadf2012-10-09 03:43:481550 bool /* was_clean */,
[email protected]76e6df02012-11-09 01:43:071551 uint16_t /* code */,
[email protected]9d5eadf2012-10-09 03:43:481552 std::string /* reason */)
1553
1554// Unsolicited reply message to transmit a receiving text frame.
1555IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_ReceiveTextReply,
1556 std::string /* message */)
1557
1558// Unsolicited reply message to transmit a receiving binary frame.
1559IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_ReceiveBinaryReply,
1560 std::vector<uint8_t> /* message */)
1561
1562// Unsolicited reply message to notify a error on underlying network connetion.
1563IPC_MESSAGE_CONTROL0(PpapiPluginMsg_WebSocket_ErrorReply)
1564
1565// Unsolicited reply message to update the buffered amount value.
1566IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_BufferedAmountReply,
[email protected]76e6df02012-11-09 01:43:071567 uint64_t /* buffered_amount */)
[email protected]9d5eadf2012-10-09 03:43:481568
1569// Unsolicited reply message to update |state| because of incoming external
1570// events, e.g., protocol error, or unexpected network closure.
1571IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_StateReply,
1572 int32_t /* state */)
1573
1574// Unsolicited reply message to notify that the connection is closed without
1575// any WebSocket_Close request. Server initiated closing handshake or
1576// unexpected network errors will invoke this message.
1577IPC_MESSAGE_CONTROL4(PpapiPluginMsg_WebSocket_ClosedReply,
[email protected]76e6df02012-11-09 01:43:071578 uint64_t /* buffered_amount */,
[email protected]9d5eadf2012-10-09 03:43:481579 bool /* was_clean */,
[email protected]76e6df02012-11-09 01:43:071580 uint16_t /* code */,
[email protected]9d5eadf2012-10-09 03:43:481581 std::string /* reason */)
[email protected]cb65f132012-10-09 17:06:091582
1583#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]a1686e272012-11-01 23:39:341584
[email protected]77b55502012-11-08 22:20:201585// Audio input.
1586IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create)
[email protected]77b55502012-11-08 22:20:201587IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open,
1588 std::string /* device_id */,
1589 PP_AudioSampleRate /* sample_rate */,
1590 uint32_t /* sample_frame_count */)
1591// Reply to an Open call. This supplies a socket handle and a shared memory
1592// handle. Both handles are passed in the ReplyParams struct.
1593IPC_MESSAGE_CONTROL0(PpapiPluginMsg_AudioInput_OpenReply)
1594IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioInput_StartOrStop, bool /* capture */)
1595IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Close)
1596
[email protected]a9f2a6212012-12-04 08:47:341597// Flash.
1598IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create)
1599IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_UpdateActivity)
1600IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_GetProxyForURL, std::string /* url */)
1601IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetProxyForURLReply,
1602 std::string /* proxy */)
1603
[email protected]c92465382012-12-17 23:51:211604// Queries the browser for the local time zone offset for a given time.
1605IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_GetLocalTimeZoneOffset,
1606 base::Time /* time */)
1607// Reply to GetLocalTimeZoneOffset containing the time zone offset as a double.
1608IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetLocalTimeZoneOffsetReply,
1609 double /* offset */)
1610
[email protected]4f01c762012-12-05 02:44:181611// Device enumeration messages used by audio input and video capture.
1612IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_EnumerateDevices)
1613IPC_MESSAGE_CONTROL1(PpapiPluginMsg_DeviceEnumeration_EnumerateDevicesReply,
1614 std::vector<ppapi::DeviceRefData> /* devices */)
1615IPC_MESSAGE_CONTROL1(PpapiHostMsg_DeviceEnumeration_MonitorDeviceChange,
1616 uint32_t /* callback_id */)
1617IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_StopMonitoringDeviceChange)
1618IPC_MESSAGE_CONTROL2(PpapiPluginMsg_DeviceEnumeration_NotifyDeviceChange,
1619 uint32_t /* callback_id */,
1620 std::vector<ppapi::DeviceRefData> /* devices */)
1621
[email protected]a1686e272012-11-01 23:39:341622// Flash clipboard.
1623IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashClipboard_Create)
1624IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashClipboard_RegisterCustomFormat,
1625 std::string /* format_name */)
1626IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_RegisterCustomFormatReply,
1627 uint32_t /* format */)
1628IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_IsFormatAvailable,
1629 uint32_t /* clipboard_type */,
1630 uint32_t /* format */)
1631IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_ReadData,
1632 uint32_t /* clipboard_type */,
1633 uint32_t /* format */)
1634IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_ReadDataReply,
1635 std::string /* result */)
1636IPC_MESSAGE_CONTROL3(PpapiHostMsg_FlashClipboard_WriteData,
1637 uint32_t /* clipboard_type */,
1638 std::vector<uint32_t> /* formats */,
1639 std::vector<std::string> /* data */)
[email protected]77b55502012-11-08 22:20:201640
[email protected]0c92b0d2012-12-08 00:46:231641// Flash file.
1642IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFile_Create)
1643IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_OpenFile,
1644 ppapi::PepperFilePath /* path */,
1645 int /* flags */)
1646IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_RenameFile,
1647 ppapi::PepperFilePath /* from_path */,
1648 ppapi::PepperFilePath /* to_path */)
1649IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_DeleteFileOrDir,
1650 ppapi::PepperFilePath /* path */,
1651 bool /* recursive */)
1652IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_CreateDir,
1653 ppapi::PepperFilePath /* path */)
1654IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_QueryFile,
1655 ppapi::PepperFilePath /* path */)
1656IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFile_QueryFileReply,
1657 base::PlatformFileInfo /* file_info */)
1658IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_GetDirContents,
1659 ppapi::PepperFilePath /* path */)
1660IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFile_GetDirContentsReply,
1661 ppapi::DirContents /* entries */)
1662IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFile_CreateTemporaryFile)
1663
[email protected]cb65f132012-10-09 17:06:091664// Flash font file.
1665IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFontFile_Create,
1666 ppapi::proxy::SerializedFontDescription /* description */,
1667 PP_PrivateFontCharset /* charset */)
1668IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFontFile_GetFontTable,
1669 uint32_t /* table */)
1670IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFontFile_GetFontTableReply,
1671 std::string /* output */)
[email protected]11d0c362012-10-11 02:02:111672
[email protected]22fdaa62012-11-30 01:55:441673// Flash fullscreen.
1674IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFullscreen_Create)
1675IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFullscreen_SetFullscreen,
1676 bool /* fullscreen */)
1677
[email protected]97f58132012-11-15 20:41:321678// FlashMenu ------------------------------------------------------------------
1679
1680// Creates the flash menu with the given data.
1681IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashMenu_Create,
1682 ppapi::proxy::SerializedFlashMenu /* menu_data */)
1683
1684// Shows the menu at the given location relative to the plugin instance.
1685IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashMenu_Show,
1686 PP_Point /* location */)
1687
1688// Reply to a show command. If the resource reply is PP_OK, the selected_id
1689// will be the menu item ID chosen by the user.
1690IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashMenu_ShowReply,
1691 int32_t /* selected_id */)
1692
[email protected]cc123872012-11-16 07:53:081693// VideoCapture_Dev, plugin -> host
1694IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Create)
1695IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StartCapture)
1696IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoCapture_ReuseBuffer,
1697 uint32_t /* buffer */)
1698IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StopCapture)
1699IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Close)
1700
1701// VideoCapture_Dev, plugin -> host -> plugin
[email protected]cc123872012-11-16 07:53:081702IPC_MESSAGE_CONTROL3(PpapiHostMsg_VideoCapture_Open,
1703 std::string /* device_id */,
1704 PP_VideoCaptureDeviceInfo_Dev /* requested_info */,
1705 uint32_t /* buffer_count */)
1706IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoCapture_OpenReply)
1707
[email protected]f20cc692012-11-28 19:21:201708// Talk ------------------------------------------------------------------------
1709
1710IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_Create)
1711
1712// Requests talk permissions. The host will respond with GetPermissionReply.
1713IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_GetPermission)
1714
1715// Response to GetPermission.
1716//
1717// The result of this message is the general Pepper "result" in the ReplyParams.
1718IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_GetPermissionReply)
1719
[email protected]cc123872012-11-16 07:53:081720// VideoCapture_Dev, host -> plugin
1721IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoCapture_OnDeviceInfo,
1722 PP_VideoCaptureDeviceInfo_Dev /* info */,
1723 std::vector<ppapi::HostResource> /* buffers */,
1724 uint32_t /* buffer_size */)
1725IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
1726 uint32_t /* status */)
1727IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
1728 uint32_t /* error */)
1729IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
1730 uint32_t /* buffer */)
1731
[email protected]cb65f132012-10-09 17:06:091732#endif // !defined(OS_NACL) && !defined(NACL_WIN64)