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

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

Issue 1151973003: ppapi: implement PPB_AudioEncoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/resource_creation_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 <map> 6 #include <map>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev) 125 IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev)
126 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev) 126 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev)
127 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) 127 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev)
128 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev) 128 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev)
129 IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option, 129 IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option,
130 PP_UDPSOCKET_OPTION_MULTICAST_TTL) 130 PP_UDPSOCKET_OPTION_MULTICAST_TTL)
131 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) 131 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev)
132 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) 132 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile)
133 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST) 133 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST)
134 IPC_ENUM_TRAITS_MAX_VALUE(PP_HardwareAcceleration, PP_HARDWAREACCELERATION_LAST) 134 IPC_ENUM_TRAITS_MAX_VALUE(PP_HardwareAcceleration, PP_HARDWAREACCELERATION_LAST)
135 IPC_ENUM_TRAITS_MAX_VALUE(PP_AudioProfile, PP_AUDIOPROFILE_MAX)
135 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX) 136 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX)
136 137
137 IPC_STRUCT_TRAITS_BEGIN(PP_Point) 138 IPC_STRUCT_TRAITS_BEGIN(PP_Point)
138 IPC_STRUCT_TRAITS_MEMBER(x) 139 IPC_STRUCT_TRAITS_MEMBER(x)
139 IPC_STRUCT_TRAITS_MEMBER(y) 140 IPC_STRUCT_TRAITS_MEMBER(y)
140 IPC_STRUCT_TRAITS_END() 141 IPC_STRUCT_TRAITS_END()
141 142
142 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) 143 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint)
143 IPC_STRUCT_TRAITS_MEMBER(x) 144 IPC_STRUCT_TRAITS_MEMBER(x)
144 IPC_STRUCT_TRAITS_MEMBER(y) 145 IPC_STRUCT_TRAITS_MEMBER(y)
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 // The list of switches can be found in: 439 // The list of switches can be found in:
439 // components/nacl/browser/nacl_process_host.cc 440 // components/nacl/browser/nacl_process_host.cc
440 IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs) 441 IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs)
441 IPC_STRUCT_TRAITS_MEMBER(off_the_record) 442 IPC_STRUCT_TRAITS_MEMBER(off_the_record)
442 IPC_STRUCT_TRAITS_MEMBER(permissions) 443 IPC_STRUCT_TRAITS_MEMBER(permissions)
443 IPC_STRUCT_TRAITS_MEMBER(keepalive_throttle_interval_milliseconds) 444 IPC_STRUCT_TRAITS_MEMBER(keepalive_throttle_interval_milliseconds)
444 IPC_STRUCT_TRAITS_MEMBER(switch_names) 445 IPC_STRUCT_TRAITS_MEMBER(switch_names)
445 IPC_STRUCT_TRAITS_MEMBER(switch_values) 446 IPC_STRUCT_TRAITS_MEMBER(switch_values)
446 IPC_STRUCT_TRAITS_END() 447 IPC_STRUCT_TRAITS_END()
447 448
449 IPC_STRUCT_TRAITS_BEGIN(PP_AudioProfileDescription)
450 IPC_STRUCT_TRAITS_MEMBER(profile)
451 IPC_STRUCT_TRAITS_MEMBER(max_channels)
452 IPC_STRUCT_TRAITS_MEMBER(sample_size)
453 IPC_STRUCT_TRAITS_MEMBER(sample_rate)
454 IPC_STRUCT_TRAITS_MEMBER(hardware_accelerated)
455 IPC_STRUCT_TRAITS_END()
456
448 IPC_STRUCT_TRAITS_BEGIN(PP_VideoProfileDescription) 457 IPC_STRUCT_TRAITS_BEGIN(PP_VideoProfileDescription)
449 IPC_STRUCT_TRAITS_MEMBER(profile) 458 IPC_STRUCT_TRAITS_MEMBER(profile)
450 IPC_STRUCT_TRAITS_MEMBER(max_resolution) 459 IPC_STRUCT_TRAITS_MEMBER(max_resolution)
451 IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator) 460 IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator)
452 IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator) 461 IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator)
453 IPC_STRUCT_TRAITS_MEMBER(hardware_accelerated) 462 IPC_STRUCT_TRAITS_MEMBER(hardware_accelerated)
454 IPC_STRUCT_TRAITS_END() 463 IPC_STRUCT_TRAITS_END()
455 464
465 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPB_AudioEncodeParameters)
466 IPC_STRUCT_TRAITS_MEMBER(channels)
467 IPC_STRUCT_TRAITS_MEMBER(input_sample_rate)
468 IPC_STRUCT_TRAITS_MEMBER(input_sample_size)
469 IPC_STRUCT_TRAITS_MEMBER(output_profile)
470 IPC_STRUCT_TRAITS_MEMBER(initial_bitrate)
471 IPC_STRUCT_TRAITS_MEMBER(acceleration)
472 IPC_STRUCT_TRAITS_END()
473
456 #if !defined(OS_NACL) && !defined(NACL_WIN64) 474 #if !defined(OS_NACL) && !defined(NACL_WIN64)
457 475
458 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer) 476 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer)
459 IPC_STRUCT_TRAITS_MEMBER(resource) 477 IPC_STRUCT_TRAITS_MEMBER(resource)
460 IPC_STRUCT_TRAITS_MEMBER(handle) 478 IPC_STRUCT_TRAITS_MEMBER(handle)
461 IPC_STRUCT_TRAITS_MEMBER(size) 479 IPC_STRUCT_TRAITS_MEMBER(size)
462 IPC_STRUCT_TRAITS_END() 480 IPC_STRUCT_TRAITS_END()
463 481
464 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 482 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
465 483
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 // PPB_Audio. 904 // PPB_Audio.
887 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudio_Create, 905 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudio_Create,
888 PP_Instance /* instance_id */, 906 PP_Instance /* instance_id */,
889 int32_t /* sample_rate */, 907 int32_t /* sample_rate */,
890 uint32_t /* sample_frame_count */, 908 uint32_t /* sample_frame_count */,
891 ppapi::HostResource /* result */) 909 ppapi::HostResource /* result */)
892 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, 910 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop,
893 ppapi::HostResource /* audio_id */, 911 ppapi::HostResource /* audio_id */,
894 bool /* play */) 912 bool /* play */)
895 913
914 // PPB_AudioEncoder
915 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_Create)
916 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_GetSupportedProfiles)
917 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_GetSupportedProfilesReply,
918 std::vector<PP_AudioProfileDescription> /* results */)
919 IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_Initialize,
920 ppapi::proxy::PPB_AudioEncodeParameters /* parameters */)
921 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_AudioEncoder_InitializeReply,
922 uint32_t /* number_of_samples */,
923 uint32_t /* buffer_count */,
924 uint32_t /* buffer_size */)
925 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_GetAudioFrames)
926 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_AudioEncoder_GetAudioFramesReply,
927 uint32_t /* frame_count */,
928 uint32_t /* frame_length */)
929 IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_Encode, uint32_t /* buffer_id */)
930 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_EncodeReply,
931 uint32_t /* buffer_id */)
932 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_AudioEncoder_BitstreamBufferReady,
933 uint32_t /* buffer_id */,
934 uint32_t /* buffer_size */)
935 IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_RecycleBitstreamBuffer,
936 uint32_t /* buffer_id */)
937 IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_RequestBitrateChange,
938 uint32_t /* bitrate */)
939 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_NotifyError,
940 int32_t /* error */)
941 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_Close)
942
896 // PPB_Core. 943 // PPB_Core.
897 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, 944 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource,
898 ppapi::HostResource) 945 ppapi::HostResource)
899 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, 946 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource,
900 ppapi::HostResource) 947 ppapi::HostResource)
901 948
902 // PPB_Graphics3D. 949 // PPB_Graphics3D.
903 IPC_SYNC_MESSAGE_ROUTED3_3(PpapiHostMsg_PPBGraphics3D_Create, 950 IPC_SYNC_MESSAGE_ROUTED3_3(PpapiHostMsg_PPBGraphics3D_Create,
904 PP_Instance /* instance */, 951 PP_Instance /* instance */,
905 ppapi::HostResource /* share_context */, 952 ppapi::HostResource /* share_context */,
(...skipping 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after
2350 std::vector<ppapi::HostResource> /* buffers */, 2397 std::vector<ppapi::HostResource> /* buffers */,
2351 uint32_t /* buffer_size */) 2398 uint32_t /* buffer_size */)
2352 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, 2399 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
2353 uint32_t /* status */) 2400 uint32_t /* status */)
2354 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, 2401 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
2355 uint32_t /* error */) 2402 uint32_t /* error */)
2356 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, 2403 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
2357 uint32_t /* buffer */) 2404 uint32_t /* buffer */)
2358 2405
2359 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 2406 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/resource_creation_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698