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

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

Issue 7601005: PPB/PPP_VideoCapture_Dev proxy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 9 years, 4 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_resource.h ('k') | ppapi/proxy/ppb_buffer_proxy.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Multiply-included message header, no traditional include guard. 5 // Multiply-included message header, no traditional include guard.
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "base/process.h" 11 #include "base/process.h"
12 #include "base/shared_memory.h" 12 #include "base/shared_memory.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "base/sync_socket.h" 14 #include "base/sync_socket.h"
15 #include "gpu/command_buffer/common/command_buffer.h" 15 #include "gpu/command_buffer/common/command_buffer.h"
16 #include "gpu/ipc/gpu_command_buffer_traits.h" 16 #include "gpu/ipc/gpu_command_buffer_traits.h"
17 #include "ipc/ipc_channel_handle.h" 17 #include "ipc/ipc_channel_handle.h"
18 #include "ipc/ipc_message_macros.h" 18 #include "ipc/ipc_message_macros.h"
19 #include "ipc/ipc_message_utils.h" 19 #include "ipc/ipc_message_utils.h"
20 #include "ipc/ipc_platform_file.h" 20 #include "ipc/ipc_platform_file.h"
21 #include "ppapi/c/dev/pp_video_capture_dev.h"
21 #include "ppapi/c/pp_bool.h" 22 #include "ppapi/c/pp_bool.h"
22 #include "ppapi/c/pp_file_info.h" 23 #include "ppapi/c/pp_file_info.h"
23 #include "ppapi/c/pp_instance.h" 24 #include "ppapi/c/pp_instance.h"
24 #include "ppapi/c/pp_module.h" 25 #include "ppapi/c/pp_module.h"
25 #include "ppapi/c/pp_point.h" 26 #include "ppapi/c/pp_point.h"
26 #include "ppapi/c/pp_rect.h" 27 #include "ppapi/c/pp_rect.h"
27 #include "ppapi/c/pp_resource.h" 28 #include "ppapi/c/pp_resource.h"
28 #include "ppapi/c/pp_size.h" 29 #include "ppapi/c/pp_size.h"
29 #include "ppapi/c/dev/pp_video_dev.h" 30 #include "ppapi/c/dev/pp_video_dev.h"
30 #include "ppapi/c/private/ppb_flash_tcp_socket.h" 31 #include "ppapi/c/private/ppb_flash_tcp_socket.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 IPC_STRUCT_TRAITS_MEMBER(id) 65 IPC_STRUCT_TRAITS_MEMBER(id)
65 IPC_STRUCT_TRAITS_MEMBER(size) 66 IPC_STRUCT_TRAITS_MEMBER(size)
66 IPC_STRUCT_TRAITS_MEMBER(texture_id) 67 IPC_STRUCT_TRAITS_MEMBER(texture_id)
67 IPC_STRUCT_TRAITS_END() 68 IPC_STRUCT_TRAITS_END()
68 69
69 IPC_STRUCT_TRAITS_BEGIN(PP_Picture_Dev) 70 IPC_STRUCT_TRAITS_BEGIN(PP_Picture_Dev)
70 IPC_STRUCT_TRAITS_MEMBER(picture_buffer_id) 71 IPC_STRUCT_TRAITS_MEMBER(picture_buffer_id)
71 IPC_STRUCT_TRAITS_MEMBER(bitstream_buffer_id) 72 IPC_STRUCT_TRAITS_MEMBER(bitstream_buffer_id)
72 IPC_STRUCT_TRAITS_END() 73 IPC_STRUCT_TRAITS_END()
73 74
75 IPC_STRUCT_TRAITS_BEGIN(PP_VideoCaptureDeviceInfo_Dev)
76 IPC_STRUCT_TRAITS_MEMBER(width)
77 IPC_STRUCT_TRAITS_MEMBER(height)
78 IPC_STRUCT_TRAITS_MEMBER(frames_per_second)
79 IPC_STRUCT_TRAITS_END()
80
81 IPC_STRUCT_TRAITS_BEGIN(pp::proxy::PPPVideoCapture_Buffer)
82 IPC_STRUCT_TRAITS_MEMBER(resource)
83 IPC_STRUCT_TRAITS_MEMBER(handle)
84 IPC_STRUCT_TRAITS_MEMBER(size)
85 IPC_STRUCT_TRAITS_END()
86
74 IPC_STRUCT_TRAITS_BEGIN(::ppapi::Preferences) 87 IPC_STRUCT_TRAITS_BEGIN(::ppapi::Preferences)
75 IPC_STRUCT_TRAITS_MEMBER(standard_font_family) 88 IPC_STRUCT_TRAITS_MEMBER(standard_font_family)
76 IPC_STRUCT_TRAITS_MEMBER(fixed_font_family) 89 IPC_STRUCT_TRAITS_MEMBER(fixed_font_family)
77 IPC_STRUCT_TRAITS_MEMBER(serif_font_family) 90 IPC_STRUCT_TRAITS_MEMBER(serif_font_family)
78 IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family) 91 IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family)
79 IPC_STRUCT_TRAITS_MEMBER(default_font_size) 92 IPC_STRUCT_TRAITS_MEMBER(default_font_size)
80 IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size) 93 IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size)
81 IPC_STRUCT_TRAITS_END() 94 IPC_STRUCT_TRAITS_END()
82 95
83 IPC_STRUCT_TRAITS_BEGIN(::ppapi::InputEventData) 96 IPC_STRUCT_TRAITS_BEGIN(::ppapi::InputEventData)
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 336
324 // PPB_URLLoader 337 // PPB_URLLoader
325 // (Messages from browser to plugin to notify it of changes in state.) 338 // (Messages from browser to plugin to notify it of changes in state.)
326 IPC_MESSAGE_ROUTED1(PpapiMsg_PPBURLLoader_UpdateProgress, 339 IPC_MESSAGE_ROUTED1(PpapiMsg_PPBURLLoader_UpdateProgress,
327 pp::proxy::PPBURLLoader_UpdateProgress_Params /* params */) 340 pp::proxy::PPBURLLoader_UpdateProgress_Params /* params */)
328 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBURLLoader_ReadResponseBody_Ack, 341 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBURLLoader_ReadResponseBody_Ack,
329 pp::proxy::HostResource /* loader */, 342 pp::proxy::HostResource /* loader */,
330 int32 /* result */, 343 int32 /* result */,
331 std::string /* data */) 344 std::string /* data */)
332 345
346 // PPP_VideoCapture_Dev
347 IPC_MESSAGE_ROUTED3(
348 PpapiMsg_PPPVideoCapture_OnDeviceInfo,
349 pp::proxy::HostResource /* video_capture */,
350 PP_VideoCaptureDeviceInfo_Dev /* info */,
351 std::vector<pp::proxy::PPPVideoCapture_Buffer> /* buffers */)
352 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnStatus,
353 pp::proxy::HostResource /* video_capture */,
354 uint32_t /* status */)
355 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnError,
356 pp::proxy::HostResource /* video_capture */,
357 uint32_t /* error_code */)
358 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnBufferReady,
359 pp::proxy::HostResource /* video_capture */,
360 uint32_t /* buffer */)
361
333 // PPB_VideoDecoder_Dev. 362 // PPB_VideoDecoder_Dev.
334 // (Messages from renderer to plugin to notify it to run callbacks.) 363 // (Messages from renderer to plugin to notify it to run callbacks.)
335 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK, 364 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK,
336 pp::proxy::HostResource /* video_decoder */, 365 pp::proxy::HostResource /* video_decoder */,
337 int32_t /* bitstream buffer id */, 366 int32_t /* bitstream buffer id */,
338 int32_t /* PP_CompletionCallback result */) 367 int32_t /* PP_CompletionCallback result */)
339 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_FlushACK, 368 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_FlushACK,
340 pp::proxy::HostResource /* video_decoder */, 369 pp::proxy::HostResource /* video_decoder */,
341 int32_t /* PP_CompletionCallback result */) 370 int32_t /* PP_CompletionCallback result */)
342 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_ResetACK, 371 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_ResetACK,
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 PP_Bool /* is_always_opaque */, 967 PP_Bool /* is_always_opaque */,
939 pp::proxy::HostResource /* result */) 968 pp::proxy::HostResource /* result */)
940 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_ResourceCreation_ImageData, 969 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_ResourceCreation_ImageData,
941 PP_Instance /* instance */, 970 PP_Instance /* instance */,
942 int32 /* format */, 971 int32 /* format */,
943 PP_Size /* size */, 972 PP_Size /* size */,
944 PP_Bool /* init_to_zero */, 973 PP_Bool /* init_to_zero */,
945 pp::proxy::HostResource /* result_resource */, 974 pp::proxy::HostResource /* result_resource */,
946 std::string /* image_data_desc */, 975 std::string /* image_data_desc */,
947 pp::proxy::ImageHandle /* result */) 976 pp::proxy::ImageHandle /* result */)
977
978 // PPB_VideoCapture_Dev.
979 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVideoCapture_Create,
980 PP_Instance /* instance */,
981 pp::proxy::HostResource /* result */)
982 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBVideoCapture_StartCapture,
983 pp::proxy::HostResource /* video_capture */,
984 PP_VideoCaptureDeviceInfo_Dev /* requested_info */,
985 uint32_t /* buffer_count */)
986 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoCapture_ReuseBuffer,
987 pp::proxy::HostResource /* video_capture */,
988 uint32_t /* buffer */)
989 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_StopCapture,
990 pp::proxy::HostResource /* video_capture */)
991
948 // PPB_VideoDecoder. 992 // PPB_VideoDecoder.
949 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVideoDecoder_Create, 993 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVideoDecoder_Create,
950 PP_Instance /* instance */, 994 PP_Instance /* instance */,
951 pp::proxy::HostResource /* context */, 995 pp::proxy::HostResource /* context */,
952 std::vector<PP_VideoConfigElement> /* config */, 996 std::vector<PP_VideoConfigElement> /* config */,
953 pp::proxy::HostResource /* result */) 997 pp::proxy::HostResource /* result */)
954 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoDecoder_Decode, 998 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoDecoder_Decode,
955 pp::proxy::HostResource /* video_decoder */, 999 pp::proxy::HostResource /* video_decoder */,
956 pp::proxy::HostResource /* bitstream buffer */, 1000 pp::proxy::HostResource /* bitstream buffer */,
957 int32 /* bitstream buffer id */, 1001 int32 /* bitstream buffer id */,
958 int32 /* size of buffer */) 1002 int32 /* size of buffer */)
959 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_AssignPictureBuffers, 1003 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_AssignPictureBuffers,
960 pp::proxy::HostResource /* video_decoder */, 1004 pp::proxy::HostResource /* video_decoder */,
961 std::vector<PP_PictureBuffer_Dev> /* picture buffers */) 1005 std::vector<PP_PictureBuffer_Dev> /* picture buffers */)
962 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer, 1006 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer,
963 pp::proxy::HostResource /* video_decoder */, 1007 pp::proxy::HostResource /* video_decoder */,
964 int32_t /* picture buffer id */) 1008 int32_t /* picture buffer id */)
965 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush, 1009 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush,
966 pp::proxy::HostResource /* video_decoder */) 1010 pp::proxy::HostResource /* video_decoder */)
967 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset, 1011 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset,
968 pp::proxy::HostResource /* video_decoder */) 1012 pp::proxy::HostResource /* video_decoder */)
969 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, 1013 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy,
970 pp::proxy::HostResource /* video_decoder */) 1014 pp::proxy::HostResource /* video_decoder */)
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_resource.h ('k') | ppapi/proxy/ppb_buffer_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698