OLD | NEW |
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev) | 124 IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev) |
125 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev) | 125 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev) |
126 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) | 126 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) |
127 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev) | 127 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev) |
128 IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option, | 128 IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option, |
129 PP_UDPSOCKET_OPTION_MULTICAST_TTL) | 129 PP_UDPSOCKET_OPTION_MULTICAST_TTL) |
130 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) | 130 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) |
131 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) | 131 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) |
132 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST) | 132 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST) |
133 IPC_ENUM_TRAITS_MAX_VALUE(PP_HardwareAcceleration, PP_HARDWAREACCELERATION_LAST) | 133 IPC_ENUM_TRAITS_MAX_VALUE(PP_HardwareAcceleration, PP_HARDWAREACCELERATION_LAST) |
| 134 IPC_ENUM_TRAITS_MAX_VALUE(PP_AudioProfile, PP_AUDIOPROFILE_MAX) |
134 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX) | 135 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX) |
135 | 136 |
136 IPC_STRUCT_TRAITS_BEGIN(PP_Point) | 137 IPC_STRUCT_TRAITS_BEGIN(PP_Point) |
137 IPC_STRUCT_TRAITS_MEMBER(x) | 138 IPC_STRUCT_TRAITS_MEMBER(x) |
138 IPC_STRUCT_TRAITS_MEMBER(y) | 139 IPC_STRUCT_TRAITS_MEMBER(y) |
139 IPC_STRUCT_TRAITS_END() | 140 IPC_STRUCT_TRAITS_END() |
140 | 141 |
141 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) | 142 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) |
142 IPC_STRUCT_TRAITS_MEMBER(x) | 143 IPC_STRUCT_TRAITS_MEMBER(x) |
143 IPC_STRUCT_TRAITS_MEMBER(y) | 144 IPC_STRUCT_TRAITS_MEMBER(y) |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 // The list of switches can be found in: | 438 // The list of switches can be found in: |
438 // components/nacl/browser/nacl_process_host.cc | 439 // components/nacl/browser/nacl_process_host.cc |
439 IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs) | 440 IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs) |
440 IPC_STRUCT_TRAITS_MEMBER(off_the_record) | 441 IPC_STRUCT_TRAITS_MEMBER(off_the_record) |
441 IPC_STRUCT_TRAITS_MEMBER(permissions) | 442 IPC_STRUCT_TRAITS_MEMBER(permissions) |
442 IPC_STRUCT_TRAITS_MEMBER(keepalive_throttle_interval_milliseconds) | 443 IPC_STRUCT_TRAITS_MEMBER(keepalive_throttle_interval_milliseconds) |
443 IPC_STRUCT_TRAITS_MEMBER(switch_names) | 444 IPC_STRUCT_TRAITS_MEMBER(switch_names) |
444 IPC_STRUCT_TRAITS_MEMBER(switch_values) | 445 IPC_STRUCT_TRAITS_MEMBER(switch_values) |
445 IPC_STRUCT_TRAITS_END() | 446 IPC_STRUCT_TRAITS_END() |
446 | 447 |
| 448 IPC_STRUCT_TRAITS_BEGIN(PP_AudioProfileDescription) |
| 449 IPC_STRUCT_TRAITS_MEMBER(profile) |
| 450 IPC_STRUCT_TRAITS_MEMBER(max_channels) |
| 451 IPC_STRUCT_TRAITS_MEMBER(sample_size) |
| 452 IPC_STRUCT_TRAITS_MEMBER(sample_rate) |
| 453 IPC_STRUCT_TRAITS_MEMBER(hardware_accelerated) |
| 454 IPC_STRUCT_TRAITS_END() |
| 455 |
447 IPC_STRUCT_TRAITS_BEGIN(PP_VideoProfileDescription) | 456 IPC_STRUCT_TRAITS_BEGIN(PP_VideoProfileDescription) |
448 IPC_STRUCT_TRAITS_MEMBER(profile) | 457 IPC_STRUCT_TRAITS_MEMBER(profile) |
449 IPC_STRUCT_TRAITS_MEMBER(max_resolution) | 458 IPC_STRUCT_TRAITS_MEMBER(max_resolution) |
450 IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator) | 459 IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator) |
451 IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator) | 460 IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator) |
452 IPC_STRUCT_TRAITS_MEMBER(hardware_accelerated) | 461 IPC_STRUCT_TRAITS_MEMBER(hardware_accelerated) |
453 IPC_STRUCT_TRAITS_END() | 462 IPC_STRUCT_TRAITS_END() |
454 | 463 |
| 464 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPB_AudioEncodeParameters) |
| 465 IPC_STRUCT_TRAITS_MEMBER(channels) |
| 466 IPC_STRUCT_TRAITS_MEMBER(input_sample_rate) |
| 467 IPC_STRUCT_TRAITS_MEMBER(input_sample_size) |
| 468 IPC_STRUCT_TRAITS_MEMBER(output_profile) |
| 469 IPC_STRUCT_TRAITS_MEMBER(initial_bitrate) |
| 470 IPC_STRUCT_TRAITS_MEMBER(acceleration) |
| 471 IPC_STRUCT_TRAITS_END() |
| 472 |
455 #if !defined(OS_NACL) && !defined(NACL_WIN64) | 473 #if !defined(OS_NACL) && !defined(NACL_WIN64) |
456 | 474 |
457 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer) | 475 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer) |
458 IPC_STRUCT_TRAITS_MEMBER(resource) | 476 IPC_STRUCT_TRAITS_MEMBER(resource) |
459 IPC_STRUCT_TRAITS_MEMBER(handle) | 477 IPC_STRUCT_TRAITS_MEMBER(handle) |
460 IPC_STRUCT_TRAITS_MEMBER(size) | 478 IPC_STRUCT_TRAITS_MEMBER(size) |
461 IPC_STRUCT_TRAITS_END() | 479 IPC_STRUCT_TRAITS_END() |
462 | 480 |
463 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 481 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
464 | 482 |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 // PPB_Audio. | 903 // PPB_Audio. |
886 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudio_Create, | 904 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudio_Create, |
887 PP_Instance /* instance_id */, | 905 PP_Instance /* instance_id */, |
888 int32_t /* sample_rate */, | 906 int32_t /* sample_rate */, |
889 uint32_t /* sample_frame_count */, | 907 uint32_t /* sample_frame_count */, |
890 ppapi::HostResource /* result */) | 908 ppapi::HostResource /* result */) |
891 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, | 909 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, |
892 ppapi::HostResource /* audio_id */, | 910 ppapi::HostResource /* audio_id */, |
893 bool /* play */) | 911 bool /* play */) |
894 | 912 |
| 913 // PPB_AudioEncoder |
| 914 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_Create) |
| 915 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_GetSupportedProfiles) |
| 916 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_GetSupportedProfilesReply, |
| 917 std::vector<PP_AudioProfileDescription> /* results */) |
| 918 IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_Initialize, |
| 919 ppapi::proxy::PPB_AudioEncodeParameters /* parameters */) |
| 920 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_AudioEncoder_InitializeReply, |
| 921 uint32_t /* number_of_samples */, |
| 922 uint32_t /* buffer_count */, |
| 923 uint32_t /* buffer_size */) |
| 924 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_GetAudioFrames) |
| 925 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_AudioEncoder_GetAudioFramesReply, |
| 926 uint32_t /* frame_count */, |
| 927 uint32_t /* frame_length */) |
| 928 IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_Encode, uint32_t /* buffer_id */) |
| 929 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_EncodeReply, |
| 930 uint32_t /* buffer_id */) |
| 931 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_AudioEncoder_BitstreamBufferReady, |
| 932 uint32_t /* buffer_id */, |
| 933 uint32_t /* buffer_size */) |
| 934 IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_RecycleBitstreamBuffer, |
| 935 uint32_t /* buffer_id */) |
| 936 IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_RequestBitrateChange, |
| 937 uint32_t /* bitrate */) |
| 938 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_NotifyError, |
| 939 int32_t /* error */) |
| 940 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_Close) |
| 941 |
895 // PPB_Core. | 942 // PPB_Core. |
896 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, | 943 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, |
897 ppapi::HostResource) | 944 ppapi::HostResource) |
898 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, | 945 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, |
899 ppapi::HostResource) | 946 ppapi::HostResource) |
900 | 947 |
901 // PPB_Graphics3D. | 948 // PPB_Graphics3D. |
902 IPC_SYNC_MESSAGE_ROUTED3_3(PpapiHostMsg_PPBGraphics3D_Create, | 949 IPC_SYNC_MESSAGE_ROUTED3_3(PpapiHostMsg_PPBGraphics3D_Create, |
903 PP_Instance /* instance */, | 950 PP_Instance /* instance */, |
904 ppapi::HostResource /* share_context */, | 951 ppapi::HostResource /* share_context */, |
(...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2337 std::vector<ppapi::HostResource> /* buffers */, | 2384 std::vector<ppapi::HostResource> /* buffers */, |
2338 uint32_t /* buffer_size */) | 2385 uint32_t /* buffer_size */) |
2339 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, | 2386 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, |
2340 uint32_t /* status */) | 2387 uint32_t /* status */) |
2341 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, | 2388 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, |
2342 uint32_t /* error */) | 2389 uint32_t /* error */) |
2343 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, | 2390 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, |
2344 uint32_t /* buffer */) | 2391 uint32_t /* buffer */) |
2345 | 2392 |
2346 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 2393 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |