Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: ppapi/proxy/ppapi_messages_internal.h

Issue 6334016: Refactor PPAPI proxy resource handling to maintain which host they came from,... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/plugin_var_tracker_unittest.cc ('k') | ppapi/proxy/ppapi_param_traits.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ipc/ipc_message_macros.h" 5 #include "ipc/ipc_message_macros.h"
6 #include "ppapi/c/dev/pp_file_info_dev.h" 6 #include "ppapi/c/dev/pp_file_info_dev.h"
7 #include "ppapi/c/ppb_var.h" 7 #include "ppapi/c/ppb_var.h"
8 8
9 #define IPC_MESSAGE_START PpapiMsgStart 9 #define IPC_MESSAGE_START PpapiMsgStart
10 10
(...skipping 27 matching lines...) Expand all
38 38
39 // PPB_Audio. 39 // PPB_Audio.
40 40
41 // Notifies the result of the audio stream create call. This is called in 41 // Notifies the result of the audio stream create call. This is called in
42 // both error cases and in the normal success case. These cases are 42 // both error cases and in the normal success case. These cases are
43 // differentiated by the result code, which is one of the standard PPAPI 43 // differentiated by the result code, which is one of the standard PPAPI
44 // result codes. 44 // result codes.
45 // 45 //
46 // The handler of this message should always close all of the handles passed 46 // The handler of this message should always close all of the handles passed
47 // in, since some could be valid even in the error case. 47 // in, since some could be valid even in the error case.
48 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBAudio_NotifyAudioStreamCreated, 48 IPC_MESSAGE_ROUTED1(PpapiMsg_PPBAudio_NotifyAudioStreamCreated,
49 PP_Resource /* audio_id */, 49 pp::proxy::PPBAudio_NotifyAudioStreamCreated_Params);
50 int32_t /* result_code (will be != PP_OK on failure) */,
51 IPC::PlatformFileForTransit /* socket_handle */,
52 base::SharedMemoryHandle /* handle */,
53 int32_t /* length */)
54 50
55 // PPB_Graphics2D. 51 // PPB_Graphics2D.
56 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK, 52 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK,
57 PP_Resource /* graphics_2d */, 53 pp::proxy::HostResource /* graphics_2d */,
58 int32_t /* pp_error */) 54 int32_t /* pp_error */)
59 55
60 // PPP_Class. 56 // PPP_Class.
61 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty, 57 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty,
62 int64 /* ppp_class */, 58 int64 /* ppp_class */,
63 int64 /* object */, 59 int64 /* object */,
64 pp::proxy::SerializedVar /* property */, 60 pp::proxy::SerializedVar /* property */,
65 pp::proxy::SerializedVar /* out_exception */, 61 pp::proxy::SerializedVar /* out_exception */,
66 bool /* result */) 62 bool /* result */)
67 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod, 63 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 PP_Rect /* clip */) 119 PP_Rect /* clip */)
124 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus, 120 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus,
125 PP_Instance /* instance */, 121 PP_Instance /* instance */,
126 PP_Bool /* has_focus */) 122 PP_Bool /* has_focus */)
127 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInstance_HandleInputEvent, 123 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInstance_HandleInputEvent,
128 PP_Instance /* instance */, 124 PP_Instance /* instance */,
129 PP_InputEvent /* event */, 125 PP_InputEvent /* event */,
130 PP_Bool /* result */) 126 PP_Bool /* result */)
131 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInstance_HandleDocumentLoad, 127 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInstance_HandleDocumentLoad,
132 PP_Instance /* instance */, 128 PP_Instance /* instance */,
133 PP_Resource /* url_loader */, 129 pp::proxy::HostResource /* url_loader */,
134 PP_Bool /* result */) 130 PP_Bool /* result */)
135 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstance_GetInstanceObject, 131 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstance_GetInstanceObject,
136 PP_Instance /* instance */, 132 PP_Instance /* instance */,
137 pp::proxy::SerializedVar /* result */) 133 pp::proxy::SerializedVar /* result */)
138 134
139 135
140 // PPB_URLLoader 136 // PPB_URLLoader
141 // (Messages from browser to plugin to notify it of changes in state.) 137 // (Messages from browser to plugin to notify it of changes in state.)
142 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBURLLoader_UpdateProgress, 138 IPC_MESSAGE_ROUTED1(PpapiMsg_PPBURLLoader_UpdateProgress,
143 PP_Resource /* resource */, 139 pp::proxy::PPBURLLoader_UpdateProgress_Params /* params */)
144 int64 /* bytes_sent */,
145 int64 /* total_bytes_to_be_sent */,
146 int64 /* bytes_received */,
147 int64 /* total_bytes_to_be_received */)
148 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBURLLoader_ReadResponseBody_Ack, 140 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBURLLoader_ReadResponseBody_Ack,
149 PP_Resource /* loader */, 141 pp::proxy::HostResource /* loader */,
150 int32 /* result */, 142 int32 /* result */,
151 std::string /* data */) 143 std::string /* data */)
152 144
153 // ----------------------------------------------------------------------------- 145 // -----------------------------------------------------------------------------
154 // These are from the plugin to the renderer. 146 // These are from the plugin to the renderer.
155 // Reply to PpapiMsg_LoadPlugin. 147 // Reply to PpapiMsg_LoadPlugin.
156 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PluginLoaded, 148 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PluginLoaded,
157 IPC::ChannelHandle /* handle */) 149 IPC::ChannelHandle /* handle */)
158 150
159 // PPB_Audio. 151 // PPB_Audio.
160 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBAudio_Create, 152 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBAudio_Create,
161 PP_Instance /* instance_id */, 153 PP_Instance /* instance_id */,
162 PP_Resource /* config_id */, 154 pp::proxy::HostResource /* config_id */,
163 PP_Resource /* result */) 155 pp::proxy::HostResource /* result */)
164 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, 156 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop,
165 PP_Resource /* audio_id */, 157 pp::proxy::HostResource /* audio_id */,
166 bool /* play */) 158 bool /* play */)
167 159
168 // PPB_AudioConfig. 160 // PPB_AudioConfig.
169 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudioConfig_Create, 161 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudioConfig_Create,
170 PP_Instance /* instance */, 162 PP_Instance /* instance */,
171 int32_t /* sample_rate */, 163 int32_t /* sample_rate */,
172 uint32_t /* sample_frame_count */, 164 uint32_t /* sample_frame_count */,
173 PP_Resource /* result */) 165 pp::proxy::HostResource /* result */)
174 IPC_SYNC_MESSAGE_ROUTED2_1( 166 IPC_SYNC_MESSAGE_ROUTED2_1(
175 PpapiHostMsg_PPBAudioConfig_RecommendSampleFrameCount, 167 PpapiHostMsg_PPBAudioConfig_RecommendSampleFrameCount,
176 int32_t /* sample_rate */, 168 int32_t /* sample_rate */,
177 uint32_t /* requested */, 169 uint32_t /* requested */,
178 uint32_t /* result */) 170 uint32_t /* result */)
179 171
180 // PPB_Buffer. 172 // PPB_Buffer.
181 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBBuffer_Create, 173 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBBuffer_Create,
182 PP_Instance /* instance */, 174 PP_Instance /* instance */,
183 uint32_t /* size */, 175 uint32_t /* size */,
184 PP_Resource /* result_resource */, 176 pp::proxy::HostResource /* result_resource */,
185 int32_t /* result_shm_handle */) 177 int32_t /* result_shm_handle */)
186 178
187 // PPB_Core. 179 // PPB_Core.
188 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, PP_Resource) 180 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource,
189 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, PP_Resource) 181 pp::proxy::HostResource)
182 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource,
183 pp::proxy::HostResource)
190 184
191 // PPB_CharSet. 185 // PPB_CharSet.
192 IPC_SYNC_MESSAGE_ROUTED4_2(PpapiHostMsg_PPBCharSet_UTF16ToCharSet, 186 IPC_SYNC_MESSAGE_ROUTED4_2(PpapiHostMsg_PPBCharSet_UTF16ToCharSet,
193 PP_Instance /* instance */, 187 PP_Instance /* instance */,
194 string16 /* utf16 */, 188 string16 /* utf16 */,
195 std::string /* char_set */, 189 std::string /* char_set */,
196 int32_t /* on_error */, 190 int32_t /* on_error */,
197 std::string /* output */, 191 std::string /* output */,
198 bool /* output_is_success */) 192 bool /* output_is_success */)
199 IPC_SYNC_MESSAGE_ROUTED4_2(PpapiHostMsg_PPBCharSet_CharSetToUTF16, 193 IPC_SYNC_MESSAGE_ROUTED4_2(PpapiHostMsg_PPBCharSet_CharSetToUTF16,
200 PP_Instance /* instance */, 194 PP_Instance /* instance */,
201 std::string /* input */, 195 std::string /* input */,
202 std::string /* char_set */, 196 std::string /* char_set */,
203 int32_t /* on_error */, 197 int32_t /* on_error */,
204 string16 /* output */, 198 string16 /* output */,
205 bool /* output_is_success */) 199 bool /* output_is_success */)
206 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCharSet_GetDefaultCharSet, 200 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCharSet_GetDefaultCharSet,
207 PP_Instance /* instance */, 201 PP_Instance /* instance */,
208 pp::proxy::SerializedVar /* result */) 202 pp::proxy::SerializedVar /* result */)
209 203
210 // PPB_CursorControl. 204 // PPB_CursorControl.
211 IPC_SYNC_MESSAGE_ROUTED4_1(PpapiHostMsg_PPBCursorControl_SetCursor, 205 IPC_SYNC_MESSAGE_ROUTED4_1(PpapiHostMsg_PPBCursorControl_SetCursor,
212 PP_Instance /* instance */, 206 PP_Instance /* instance */,
213 int32_t /* type */, 207 int32_t /* type */,
214 PP_Resource /* custom_image */, 208 pp::proxy::HostResource /* custom_image */,
215 PP_Point /* hot_spot */, 209 PP_Point /* hot_spot */,
216 PP_Bool /* result */) 210 PP_Bool /* result */)
217 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_LockCursor, 211 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_LockCursor,
218 PP_Instance /* instance */, 212 PP_Instance /* instance */,
219 PP_Bool /* result */) 213 PP_Bool /* result */)
220 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_UnlockCursor, 214 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_UnlockCursor,
221 PP_Instance /* instance */, 215 PP_Instance /* instance */,
222 PP_Bool /* result */) 216 PP_Bool /* result */)
223 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_HasCursorLock, 217 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_HasCursorLock,
224 PP_Instance /* instance */, 218 PP_Instance /* instance */,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 PP_Instance /* instance */, 269 PP_Instance /* instance */,
276 std::string /* url */, 270 std::string /* url */,
277 std::string /* target */, 271 std::string /* target */,
278 PP_Bool /* result */) 272 PP_Bool /* result */)
279 273
280 // PPB_Font. 274 // PPB_Font.
281 IPC_SYNC_MESSAGE_ROUTED2_3( 275 IPC_SYNC_MESSAGE_ROUTED2_3(
282 PpapiHostMsg_PPBFont_Create, 276 PpapiHostMsg_PPBFont_Create,
283 PP_Instance /* instance */, 277 PP_Instance /* instance */,
284 pp::proxy::SerializedFontDescription /* in_description */, 278 pp::proxy::SerializedFontDescription /* in_description */,
285 PP_Resource /* result */, 279 pp::proxy::HostResource /* result */,
286 pp::proxy::SerializedFontDescription /* out_description */, 280 pp::proxy::SerializedFontDescription /* out_description */,
287 std::string /* out_metrics */) 281 std::string /* out_metrics */)
288 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFont_DrawTextAt, 282 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFont_DrawTextAt,
289 pp::proxy::SerializedVar /* text */, 283 pp::proxy::SerializedVar /* text */,
290 pp::proxy::PPBFont_DrawTextAt_Params /* params */, 284 pp::proxy::PPBFont_DrawTextAt_Params /* params */,
291 PP_Bool /* result */) 285 PP_Bool /* result */)
292 IPC_SYNC_MESSAGE_ROUTED4_1(PpapiHostMsg_PPBFont_MeasureText, 286 IPC_SYNC_MESSAGE_ROUTED4_1(PpapiHostMsg_PPBFont_MeasureText,
293 PP_Resource /* font */, 287 pp::proxy::HostResource /* font */,
294 pp::proxy::SerializedVar /* text */, 288 pp::proxy::SerializedVar /* text */,
295 PP_Bool /* text_is_rtl */, 289 PP_Bool /* text_is_rtl */,
296 PP_Bool /* override_direction */, 290 PP_Bool /* override_direction */,
297 int32_t /* result */) 291 int32_t /* result */)
298 IPC_SYNC_MESSAGE_ROUTED5_1(PpapiHostMsg_PPBFont_CharacterOffsetForPixel, 292 IPC_SYNC_MESSAGE_ROUTED5_1(PpapiHostMsg_PPBFont_CharacterOffsetForPixel,
299 PP_Resource /* font */, 293 pp::proxy::HostResource /* font */,
300 pp::proxy::SerializedVar /* text */, 294 pp::proxy::SerializedVar /* text */,
301 PP_Bool /* text_is_rtl */, 295 PP_Bool /* text_is_rtl */,
302 PP_Bool /* override_direction */, 296 PP_Bool /* override_direction */,
303 int32_t /* pixel_pos */, 297 int32_t /* pixel_pos */,
304 uint32_t /* result */) 298 uint32_t /* result */)
305 IPC_SYNC_MESSAGE_ROUTED5_1(PpapiHostMsg_PPBFont_PixelOffsetForCharacter, 299 IPC_SYNC_MESSAGE_ROUTED5_1(PpapiHostMsg_PPBFont_PixelOffsetForCharacter,
306 PP_Resource /* font */, 300 pp::proxy::HostResource /* font */,
307 pp::proxy::SerializedVar /* text */, 301 pp::proxy::SerializedVar /* text */,
308 PP_Bool /* text_is_rtl */, 302 PP_Bool /* text_is_rtl */,
309 PP_Bool /* override_direction */, 303 PP_Bool /* override_direction */,
310 uint32_t /* char_offset */, 304 uint32_t /* char_offset */,
311 int32_t /* result */) 305 int32_t /* result */)
312 306
313 // PPB_Fullscreen. 307 // PPB_Fullscreen.
314 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFullscreen_IsFullscreen, 308 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFullscreen_IsFullscreen,
315 PP_Instance /* instance */, 309 PP_Instance /* instance */,
316 PP_Bool /* result */) 310 PP_Bool /* result */)
317 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFullscreen_SetFullscreen, 311 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFullscreen_SetFullscreen,
318 PP_Instance /* instance */, 312 PP_Instance /* instance */,
319 PP_Bool /* fullscreen */, 313 PP_Bool /* fullscreen */,
320 PP_Bool /* result */) 314 PP_Bool /* result */)
321 315
322 // PPB_Graphics2D. 316 // PPB_Graphics2D.
323 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create, 317 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create,
324 PP_Instance /* instance */, 318 PP_Instance /* instance */,
325 PP_Size /* size */, 319 PP_Size /* size */,
326 PP_Bool /* is_always_opaque */, 320 PP_Bool /* is_always_opaque */,
327 PP_Resource /* result */) 321 pp::proxy::HostResource /* result */)
328 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData, 322 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData,
329 PP_Resource /* graphics_2d */, 323 pp::proxy::HostResource /* graphics_2d */,
330 PP_Resource /* image_data */, 324 pp::proxy::HostResource /* image_data */,
331 PP_Point /* top_left */, 325 PP_Point /* top_left */,
332 bool /* src_rect_specified */, 326 bool /* src_rect_specified */,
333 PP_Rect /* src_rect */) 327 PP_Rect /* src_rect */)
334 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBGraphics2D_Scroll, 328 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBGraphics2D_Scroll,
335 PP_Resource /* graphics_2d */, 329 pp::proxy::HostResource /* graphics_2d */,
336 bool /* clip_specified */, 330 bool /* clip_specified */,
337 PP_Rect /* clip */, 331 PP_Rect /* clip */,
338 PP_Point /* amount */) 332 PP_Point /* amount */)
339 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics2D_ReplaceContents, 333 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics2D_ReplaceContents,
340 PP_Resource /* graphics_2d */, 334 pp::proxy::HostResource /* graphics_2d */,
341 PP_Resource /* image_data */) 335 pp::proxy::HostResource /* image_data */)
342 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics2D_Flush, 336 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics2D_Flush,
343 PP_Resource /* graphics_2d */) 337 pp::proxy::HostResource /* graphics_2d */)
344 338
345 // PPB_ImageData. 339 // PPB_ImageData.
346 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_Create, 340 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_Create,
347 PP_Instance /* instance */, 341 PP_Instance /* instance */,
348 int32 /* format */, 342 int32 /* format */,
349 PP_Size /* size */, 343 PP_Size /* size */,
350 PP_Bool /* init_to_zero */, 344 PP_Bool /* init_to_zero */,
351 PP_Resource /* result_resource */, 345 pp::proxy::HostResource /* result_resource */,
352 std::string /* image_data_desc */, 346 std::string /* image_data_desc */,
353 pp::proxy::ImageHandle /* result */) 347 pp::proxy::ImageHandle /* result */)
354 348
355 // PPB_Instance. 349 // PPB_Instance.
356 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject, 350 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject,
357 PP_Instance /* instance */, 351 PP_Instance /* instance */,
358 pp::proxy::SerializedVar /* result */) 352 pp::proxy::SerializedVar /* result */)
359 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject, 353 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject,
360 PP_Instance /* instance */, 354 PP_Instance /* instance */,
361 pp::proxy::SerializedVar /* result */) 355 pp::proxy::SerializedVar /* result */)
362 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_BindGraphics, 356 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_BindGraphics,
363 PP_Instance /* instance */, 357 PP_Instance /* instance */,
364 PP_Resource /* device */, 358 pp::proxy::HostResource /* device */,
365 PP_Bool /* result */) 359 PP_Bool /* result */)
366 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_IsFullFrame, 360 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_IsFullFrame,
367 PP_Instance /* instance */, 361 PP_Instance /* instance */,
368 PP_Bool /* result */) 362 PP_Bool /* result */)
369 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBInstance_ExecuteScript, 363 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBInstance_ExecuteScript,
370 PP_Instance /* instance */, 364 PP_Instance /* instance */,
371 pp::proxy::SerializedVar /* script */, 365 pp::proxy::SerializedVar /* script */,
372 pp::proxy::SerializedVar /* out_exception */, 366 pp::proxy::SerializedVar /* out_exception */,
373 pp::proxy::SerializedVar /* result */) 367 pp::proxy::SerializedVar /* result */)
374 368
375 IPC_SYNC_MESSAGE_ROUTED3_1( 369 IPC_SYNC_MESSAGE_ROUTED3_1(
376 PpapiHostMsg_PPBPDF_GetFontFileWithFallback, 370 PpapiHostMsg_PPBPDF_GetFontFileWithFallback,
377 PP_Instance /* instance */, 371 PP_Instance /* instance */,
378 pp::proxy::SerializedFontDescription /* description */, 372 pp::proxy::SerializedFontDescription /* description */,
379 int32_t /* charset */, 373 int32_t /* charset */,
380 PP_Resource /* result */) 374 pp::proxy::HostResource /* result */)
381 IPC_SYNC_MESSAGE_ROUTED2_1( 375 IPC_SYNC_MESSAGE_ROUTED2_1(
382 PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile, 376 PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile,
383 PP_Resource /* font_file */, 377 pp::proxy::HostResource /* font_file */,
384 uint32_t /* table */, 378 uint32_t /* table */,
385 std::string /* result */) 379 std::string /* result */)
386 380
387 // PPB_Testing. 381 // PPB_Testing.
388 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBTesting_ReadImageData, 382 IPC_SYNC_MESSAGE_ROUTED3_1(
389 PP_Resource /* device_context_2d */, 383 PpapiHostMsg_PPBTesting_ReadImageData,
390 PP_Resource /* image */, 384 pp::proxy::HostResource /* device_context_2d */,
391 PP_Point /* top_left */, 385 pp::proxy::HostResource /* image */,
392 PP_Bool /* result */) 386 PP_Point /* top_left */,
387 PP_Bool /* result */)
393 IPC_SYNC_MESSAGE_ROUTED0_1(PpapiHostMsg_PPBTesting_RunMessageLoop, 388 IPC_SYNC_MESSAGE_ROUTED0_1(PpapiHostMsg_PPBTesting_RunMessageLoop,
394 bool /* dummy since there's no 0_0 variant */) 389 bool /* dummy since there's no 0_0 variant */)
395 IPC_MESSAGE_ROUTED0(PpapiHostMsg_PPBTesting_QuitMessageLoop) 390 IPC_MESSAGE_ROUTED0(PpapiHostMsg_PPBTesting_QuitMessageLoop)
396 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance, 391 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance,
397 PP_Instance /* instance */, 392 PP_Instance /* instance */,
398 uint32 /* result */) 393 uint32 /* result */)
399 394
400 // PPB_URLLoader. 395 // PPB_URLLoader.
401 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create, 396 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create,
402 PP_Instance /* instance */, 397 PP_Instance /* instance */,
403 PP_Resource /* result */) 398 pp::proxy::HostResource /* result */)
404 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBURLLoader_Open, 399 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBURLLoader_Open,
405 PP_Resource /* loader */, 400 pp::proxy::HostResource /* loader */,
406 PP_Resource /*request_info */, 401 pp::proxy::HostResource /*request_info */,
407 uint32_t /* serialized_callback */) 402 uint32_t /* serialized_callback */)
408 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_FollowRedirect, 403 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_FollowRedirect,
409 PP_Resource /* loader */, 404 pp::proxy::HostResource /* loader */,
410 uint32_t /* serialized_callback */) 405 uint32_t /* serialized_callback */)
411 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_GetResponseInfo, 406 IPC_SYNC_MESSAGE_ROUTED1_1(
412 PP_Resource /* loader */, 407 PpapiHostMsg_PPBURLLoader_GetResponseInfo,
413 PP_Resource /* response_info_out */) 408 pp::proxy::HostResource /* loader */,
409 pp::proxy::HostResource /* response_info_out */)
414 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_ReadResponseBody, 410 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_ReadResponseBody,
415 PP_Resource /* loader */, 411 pp::proxy::HostResource /* loader */,
416 int32_t /* bytes_to_read */) 412 int32_t /* bytes_to_read */)
417 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_FinishStreamingToFile, 413 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_FinishStreamingToFile,
418 PP_Resource /* loader */, 414 pp::proxy::HostResource /* loader */,
419 uint32_t /* serialized_callback */) 415 uint32_t /* serialized_callback */)
420 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_Close, 416 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_Close,
421 PP_Resource /* loader */) 417 pp::proxy::HostResource /* loader */)
422 418
423 // PPB_URLLoaderTrusted. 419 // PPB_URLLoaderTrusted.
424 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoaderTrusted_GrantUniversalAccess, 420 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoaderTrusted_GrantUniversalAccess,
425 PP_Resource /* loader */) 421 pp::proxy::HostResource /* loader */)
426 422
427 // PPB_URLRequestInfo. 423 // PPB_URLRequestInfo.
428 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLRequestInfo_Create, 424 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLRequestInfo_Create,
429 PP_Instance /* instance */, 425 PP_Instance /* instance */,
430 PP_Resource /* result */) 426 pp::proxy::HostResource /* result */)
431 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBURLRequestInfo_SetProperty, 427 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBURLRequestInfo_SetProperty,
432 PP_Resource /* request */, 428 pp::proxy::HostResource /* request */,
433 int32_t /* property */, 429 int32_t /* property */,
434 pp::proxy::SerializedVar /* value */) 430 pp::proxy::SerializedVar /* value */)
435 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLRequestInfo_AppendDataToBody, 431 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLRequestInfo_AppendDataToBody,
436 PP_Resource /* request */, 432 pp::proxy::HostResource /* request */,
437 std::string /* data */) 433 std::string /* data */)
438 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBURLRequestInfo_AppendFileToBody, 434 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBURLRequestInfo_AppendFileToBody,
439 PP_Resource /* request */, 435 pp::proxy::HostResource /* request */,
440 PP_Resource /* file_ref */, 436 pp::proxy::HostResource /* file_ref */,
441 int64_t /* start_offset */, 437 int64_t /* start_offset */,
442 int64_t /* number_of_bytes */, 438 int64_t /* number_of_bytes */,
443 double /* expected_last_modified_time */) 439 double /* expected_last_modified_time */)
444 440
445 // PPB_URLResponseInfo. 441 // PPB_URLResponseInfo.
446 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBURLResponseInfo_GetProperty, 442 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBURLResponseInfo_GetProperty,
447 PP_Resource /* response */, 443 pp::proxy::HostResource /* response */,
448 int32_t /* property */, 444 int32_t /* property */,
449 pp::proxy::SerializedVar /* result */) 445 pp::proxy::SerializedVar /* result */)
450 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLResponseInfo_GetBodyAsFileRef, 446 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLResponseInfo_GetBodyAsFileRef,
451 PP_Resource /* response */, 447 pp::proxy::HostResource /* response */,
452 PP_Resource /* file_ref_result */) 448 pp::proxy::HostResource /* file_ref_result */)
453 449
454 // PPB_Var. 450 // PPB_Var.
455 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_AddRefObject, 451 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_AddRefObject,
456 int64 /* object_id */) 452 int64 /* object_id */)
457 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_ReleaseObject, 453 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_ReleaseObject,
458 int64 /* object_id */) 454 int64 /* object_id */)
459 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_ConvertType, 455 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_ConvertType,
460 PP_Instance /* instance */, 456 PP_Instance /* instance */,
461 pp::proxy::SerializedVar /* var */, 457 pp::proxy::SerializedVar /* var */,
462 int /* new_type */, 458 int /* new_type */,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated, 515 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated,
520 pp::proxy::SerializedVar /* var */, 516 pp::proxy::SerializedVar /* var */,
521 int64 /* object_class */, 517 int64 /* object_class */,
522 int64 /* object-data */, 518 int64 /* object-data */,
523 PP_Bool /* result */) 519 PP_Bool /* result */)
524 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated, 520 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated,
525 PP_Instance /* instance */, 521 PP_Instance /* instance */,
526 int64 /* object_class */, 522 int64 /* object_class */,
527 int64 /* object_data */, 523 int64 /* object_data */,
528 pp::proxy::SerializedVar /* result */) 524 pp::proxy::SerializedVar /* result */)
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_var_tracker_unittest.cc ('k') | ppapi/proxy/ppapi_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698