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

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

Issue 11274036: Refactor video capture to new design (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: export Created 8 years, 1 month 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
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/ppb_video_capture_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 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"
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 IPC_STRUCT_TRAITS_BEGIN(ppapi::NetworkInfo) 258 IPC_STRUCT_TRAITS_BEGIN(ppapi::NetworkInfo)
259 IPC_STRUCT_TRAITS_MEMBER(name) 259 IPC_STRUCT_TRAITS_MEMBER(name)
260 IPC_STRUCT_TRAITS_MEMBER(type) 260 IPC_STRUCT_TRAITS_MEMBER(type)
261 IPC_STRUCT_TRAITS_MEMBER(state) 261 IPC_STRUCT_TRAITS_MEMBER(state)
262 IPC_STRUCT_TRAITS_MEMBER(addresses) 262 IPC_STRUCT_TRAITS_MEMBER(addresses)
263 IPC_STRUCT_TRAITS_MEMBER(display_name) 263 IPC_STRUCT_TRAITS_MEMBER(display_name)
264 IPC_STRUCT_TRAITS_MEMBER(mtu) 264 IPC_STRUCT_TRAITS_MEMBER(mtu)
265 IPC_STRUCT_TRAITS_END() 265 IPC_STRUCT_TRAITS_END()
266 266
267 #if !defined(OS_NACL) && !defined(NACL_WIN64) 267 #if !defined(OS_NACL) && !defined(NACL_WIN64)
268 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPVideoCapture_Buffer)
269 IPC_STRUCT_TRAITS_MEMBER(resource)
270 IPC_STRUCT_TRAITS_MEMBER(handle)
271 IPC_STRUCT_TRAITS_MEMBER(size)
272 IPC_STRUCT_TRAITS_END()
273 268
274 // TODO(tomfinegan): This is identical to PPPVideoCapture_Buffer, maybe replace
275 // both with a single type?
276 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer) 269 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer)
277 IPC_STRUCT_TRAITS_MEMBER(resource) 270 IPC_STRUCT_TRAITS_MEMBER(resource)
278 IPC_STRUCT_TRAITS_MEMBER(handle) 271 IPC_STRUCT_TRAITS_MEMBER(handle)
279 IPC_STRUCT_TRAITS_MEMBER(size) 272 IPC_STRUCT_TRAITS_MEMBER(size)
280 IPC_STRUCT_TRAITS_END() 273 IPC_STRUCT_TRAITS_END()
281 274
282 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 275 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
283 276
284 // These are from the browser to the plugin. 277 // These are from the browser to the plugin.
285 // Loads the given plugin. 278 // Loads the given plugin.
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 bool /* succeeded */, 738 bool /* succeeded */,
746 std::string /* canonical_name */, 739 std::string /* canonical_name */,
747 std::vector<PP_NetAddress_Private> /* net_address_list */) 740 std::vector<PP_NetAddress_Private> /* net_address_list */)
748 741
749 #if !defined(OS_NACL) && !defined(NACL_WIN64) 742 #if !defined(OS_NACL) && !defined(NACL_WIN64)
750 // PPP_Instance_Private. 743 // PPP_Instance_Private.
751 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject, 744 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject,
752 PP_Instance /* instance */, 745 PP_Instance /* instance */,
753 ppapi::proxy::SerializedVar /* result */) 746 ppapi::proxy::SerializedVar /* result */)
754 747
755 // PPB_VideoCapture_Dev
756 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoCapture_EnumerateDevicesACK,
757 ppapi::HostResource /* video_capture */,
758 int32_t /* result */,
759 std::vector<ppapi::DeviceRefData> /* devices */)
760 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoCapture_OpenACK,
761 ppapi::HostResource /* video_capture */,
762 int32_t /* result */)
763
764 // PPP_VideoCapture_Dev
765 IPC_MESSAGE_ROUTED3(
766 PpapiMsg_PPPVideoCapture_OnDeviceInfo,
767 ppapi::HostResource /* video_capture */,
768 PP_VideoCaptureDeviceInfo_Dev /* info */,
769 std::vector<ppapi::proxy::PPPVideoCapture_Buffer> /* buffers */)
770 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnStatus,
771 ppapi::HostResource /* video_capture */,
772 uint32_t /* status */)
773 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnError,
774 ppapi::HostResource /* video_capture */,
775 uint32_t /* error_code */)
776 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnBufferReady,
777 ppapi::HostResource /* video_capture */,
778 uint32_t /* buffer */)
779
780 // PPB_VideoDecoder_Dev. 748 // PPB_VideoDecoder_Dev.
781 // (Messages from renderer to plugin to notify it to run callbacks.) 749 // (Messages from renderer to plugin to notify it to run callbacks.)
782 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK, 750 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK,
783 ppapi::HostResource /* video_decoder */, 751 ppapi::HostResource /* video_decoder */,
784 int32_t /* bitstream buffer id */, 752 int32_t /* bitstream buffer id */,
785 int32_t /* PP_CompletionCallback result */) 753 int32_t /* PP_CompletionCallback result */)
786 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_FlushACK, 754 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_FlushACK,
787 ppapi::HostResource /* video_decoder */, 755 ppapi::HostResource /* video_decoder */,
788 int32_t /* PP_CompletionCallback result */) 756 int32_t /* PP_CompletionCallback result */)
789 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_ResetACK, 757 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_ResetACK,
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 PP_Point /* top_left */, 1261 PP_Point /* top_left */,
1294 PP_Bool /* result */) 1262 PP_Bool /* result */)
1295 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance, 1263 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance,
1296 PP_Instance /* instance */, 1264 PP_Instance /* instance */,
1297 uint32 /* result */) 1265 uint32 /* result */)
1298 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTesting_SimulateInputEvent, 1266 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTesting_SimulateInputEvent,
1299 PP_Instance /* instance */, 1267 PP_Instance /* instance */,
1300 ppapi::InputEventData /* input_event */) 1268 ppapi::InputEventData /* input_event */)
1301 1269
1302 #if !defined(OS_NACL) && !defined(NACL_WIN64) 1270 #if !defined(OS_NACL) && !defined(NACL_WIN64)
1303 // PPB_VideoCapture_Dev.
1304 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVideoCapture_Create,
1305 PP_Instance /* instance */,
1306 ppapi::HostResource /* result */)
1307 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_EnumerateDevices,
1308 ppapi::HostResource /* video_capture */)
1309 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoCapture_Open,
1310 ppapi::HostResource /* video_capture */,
1311 std::string /* device_id */,
1312 PP_VideoCaptureDeviceInfo_Dev /* requested_info */,
1313 uint32_t /* buffer_count */)
1314 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_StartCapture,
1315 ppapi::HostResource /* video_capture */)
1316 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoCapture_ReuseBuffer,
1317 ppapi::HostResource /* video_capture */,
1318 uint32_t /* buffer */)
1319 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_StopCapture,
1320 ppapi::HostResource /* video_capture */)
1321 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_Close,
1322 ppapi::HostResource /* video_capture */)
1323 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBVideoCapture_StartCapture0_1,
1324 ppapi::HostResource /* video_capture */,
1325 PP_VideoCaptureDeviceInfo_Dev /* requested_info */,
1326 uint32_t /* buffer_count */)
1327 1271
1328 // PPB_VideoDecoder. 1272 // PPB_VideoDecoder.
1329 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVideoDecoder_Create, 1273 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVideoDecoder_Create,
1330 PP_Instance /* instance */, 1274 PP_Instance /* instance */,
1331 ppapi::HostResource /* context */, 1275 ppapi::HostResource /* context */,
1332 PP_VideoDecoder_Profile /* profile */, 1276 PP_VideoDecoder_Profile /* profile */,
1333 ppapi::HostResource /* result */) 1277 ppapi::HostResource /* result */)
1334 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoDecoder_Decode, 1278 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoDecoder_Decode,
1335 ppapi::HostResource /* video_decoder */, 1279 ppapi::HostResource /* video_decoder */,
1336 ppapi::HostResource /* bitstream buffer */, 1280 ppapi::HostResource /* bitstream buffer */,
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
1720 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashMenu_Show, 1664 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashMenu_Show,
1721 PP_Point /* location */) 1665 PP_Point /* location */)
1722 1666
1723 // Reply to a show command. If the resource reply is PP_OK, the selected_id 1667 // Reply to a show command. If the resource reply is PP_OK, the selected_id
1724 // will be the menu item ID chosen by the user. 1668 // will be the menu item ID chosen by the user.
1725 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashMenu_ShowReply, 1669 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashMenu_ShowReply,
1726 int32_t /* selected_id */) 1670 int32_t /* selected_id */)
1727 1671
1728 // Flash functions. 1672 // Flash functions.
1729 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create) 1673 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create)
1730 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_EnumerateVideoCaptureDevices, 1674
1731 ppapi::HostResource /* video_capture */) 1675 // VideoCapture_Dev, plugin -> host
1732 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_EnumerateVideoCaptureDevicesReply, 1676 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Create)
1677 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StartCapture)
1678 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoCapture_ReuseBuffer,
1679 uint32_t /* buffer */)
1680 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StopCapture)
1681 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Close)
1682
1683 // VideoCapture_Dev, plugin -> host -> plugin
1684 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_EnumerateDevices)
1685 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_EnumerateDevicesReply,
1733 std::vector<ppapi::DeviceRefData> /* devices */) 1686 std::vector<ppapi::DeviceRefData> /* devices */)
1687 IPC_MESSAGE_CONTROL3(PpapiHostMsg_VideoCapture_Open,
1688 std::string /* device_id */,
1689 PP_VideoCaptureDeviceInfo_Dev /* requested_info */,
1690 uint32_t /* buffer_count */)
1691 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoCapture_OpenReply)
1692
1693 // VideoCapture_Dev, host -> plugin
1694 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoCapture_OnDeviceInfo,
1695 PP_VideoCaptureDeviceInfo_Dev /* info */,
1696 std::vector<ppapi::HostResource> /* buffers */,
1697 uint32_t /* buffer_size */)
1698 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
1699 uint32_t /* status */)
1700 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
1701 uint32_t /* error */)
1702 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
1703 uint32_t /* buffer */)
1704
1734 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 1705 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/ppb_video_capture_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698