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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev) | 122 IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev) |
123 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev) | 123 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev) |
124 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) | 124 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) |
125 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev) | 125 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev) |
126 IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option, | 126 IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option, |
127 PP_UDPSOCKET_OPTION_MULTICAST_TTL) | 127 PP_UDPSOCKET_OPTION_MULTICAST_TTL) |
128 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) | 128 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) |
129 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) | 129 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) |
130 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST) | 130 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST) |
131 IPC_ENUM_TRAITS_MAX_VALUE(PP_HardwareAcceleration, PP_HARDWAREACCELERATION_LAST) | 131 IPC_ENUM_TRAITS_MAX_VALUE(PP_HardwareAcceleration, PP_HARDWAREACCELERATION_LAST) |
| 132 IPC_ENUM_TRAITS_MAX_VALUE(PP_AudioProfile, PP_AUDIOPROFILE_MAX) |
132 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX) | 133 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX) |
133 | 134 |
134 IPC_STRUCT_TRAITS_BEGIN(PP_Point) | 135 IPC_STRUCT_TRAITS_BEGIN(PP_Point) |
135 IPC_STRUCT_TRAITS_MEMBER(x) | 136 IPC_STRUCT_TRAITS_MEMBER(x) |
136 IPC_STRUCT_TRAITS_MEMBER(y) | 137 IPC_STRUCT_TRAITS_MEMBER(y) |
137 IPC_STRUCT_TRAITS_END() | 138 IPC_STRUCT_TRAITS_END() |
138 | 139 |
139 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) | 140 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) |
140 IPC_STRUCT_TRAITS_MEMBER(x) | 141 IPC_STRUCT_TRAITS_MEMBER(x) |
141 IPC_STRUCT_TRAITS_MEMBER(y) | 142 IPC_STRUCT_TRAITS_MEMBER(y) |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 // The list of switches can be found in: | 435 // The list of switches can be found in: |
435 // components/nacl/browser/nacl_process_host.cc | 436 // components/nacl/browser/nacl_process_host.cc |
436 IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs) | 437 IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs) |
437 IPC_STRUCT_TRAITS_MEMBER(off_the_record) | 438 IPC_STRUCT_TRAITS_MEMBER(off_the_record) |
438 IPC_STRUCT_TRAITS_MEMBER(permissions) | 439 IPC_STRUCT_TRAITS_MEMBER(permissions) |
439 IPC_STRUCT_TRAITS_MEMBER(keepalive_throttle_interval_milliseconds) | 440 IPC_STRUCT_TRAITS_MEMBER(keepalive_throttle_interval_milliseconds) |
440 IPC_STRUCT_TRAITS_MEMBER(switch_names) | 441 IPC_STRUCT_TRAITS_MEMBER(switch_names) |
441 IPC_STRUCT_TRAITS_MEMBER(switch_values) | 442 IPC_STRUCT_TRAITS_MEMBER(switch_values) |
442 IPC_STRUCT_TRAITS_END() | 443 IPC_STRUCT_TRAITS_END() |
443 | 444 |
| 445 IPC_STRUCT_TRAITS_BEGIN(PP_AudioProfileDescription) |
| 446 IPC_STRUCT_TRAITS_MEMBER(profile) |
| 447 IPC_STRUCT_TRAITS_MEMBER(max_channels) |
| 448 IPC_STRUCT_TRAITS_MEMBER(sample_size) |
| 449 IPC_STRUCT_TRAITS_MEMBER(sample_rate) |
| 450 IPC_STRUCT_TRAITS_MEMBER(hardware_accelerated) |
| 451 IPC_STRUCT_TRAITS_END() |
| 452 |
444 IPC_STRUCT_TRAITS_BEGIN(PP_VideoProfileDescription) | 453 IPC_STRUCT_TRAITS_BEGIN(PP_VideoProfileDescription) |
445 IPC_STRUCT_TRAITS_MEMBER(profile) | 454 IPC_STRUCT_TRAITS_MEMBER(profile) |
446 IPC_STRUCT_TRAITS_MEMBER(max_resolution) | 455 IPC_STRUCT_TRAITS_MEMBER(max_resolution) |
447 IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator) | 456 IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator) |
448 IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator) | 457 IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator) |
449 IPC_STRUCT_TRAITS_MEMBER(hardware_accelerated) | 458 IPC_STRUCT_TRAITS_MEMBER(hardware_accelerated) |
450 IPC_STRUCT_TRAITS_END() | 459 IPC_STRUCT_TRAITS_END() |
451 | 460 |
| 461 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPB_AudioEncodeParameters) |
| 462 IPC_STRUCT_TRAITS_MEMBER(channels) |
| 463 IPC_STRUCT_TRAITS_MEMBER(input_sample_rate) |
| 464 IPC_STRUCT_TRAITS_MEMBER(input_sample_size) |
| 465 IPC_STRUCT_TRAITS_MEMBER(output_profile) |
| 466 IPC_STRUCT_TRAITS_MEMBER(initial_bitrate) |
| 467 IPC_STRUCT_TRAITS_MEMBER(acceleration) |
| 468 IPC_STRUCT_TRAITS_END() |
| 469 |
452 #if !defined(OS_NACL) && !defined(NACL_WIN64) | 470 #if !defined(OS_NACL) && !defined(NACL_WIN64) |
453 | 471 |
454 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer) | 472 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer) |
455 IPC_STRUCT_TRAITS_MEMBER(resource) | 473 IPC_STRUCT_TRAITS_MEMBER(resource) |
456 IPC_STRUCT_TRAITS_MEMBER(handle) | 474 IPC_STRUCT_TRAITS_MEMBER(handle) |
457 IPC_STRUCT_TRAITS_MEMBER(size) | 475 IPC_STRUCT_TRAITS_MEMBER(size) |
458 IPC_STRUCT_TRAITS_END() | 476 IPC_STRUCT_TRAITS_END() |
459 | 477 |
460 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 478 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
461 | 479 |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
882 // PPB_Audio. | 900 // PPB_Audio. |
883 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudio_Create, | 901 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudio_Create, |
884 PP_Instance /* instance_id */, | 902 PP_Instance /* instance_id */, |
885 int32_t /* sample_rate */, | 903 int32_t /* sample_rate */, |
886 uint32_t /* sample_frame_count */, | 904 uint32_t /* sample_frame_count */, |
887 ppapi::HostResource /* result */) | 905 ppapi::HostResource /* result */) |
888 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, | 906 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, |
889 ppapi::HostResource /* audio_id */, | 907 ppapi::HostResource /* audio_id */, |
890 bool /* play */) | 908 bool /* play */) |
891 | 909 |
| 910 // PPB_AudioEncoder |
| 911 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_Create) |
| 912 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_GetSupportedProfiles) |
| 913 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_GetSupportedProfilesReply, |
| 914 std::vector<PP_AudioProfileDescription> /* results */) |
| 915 IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_Initialize, |
| 916 ppapi::proxy::PPB_AudioEncodeParameters /* parameters */) |
| 917 IPC_MESSAGE_CONTROL5(PpapiPluginMsg_AudioEncoder_InitializeReply, |
| 918 int32_t /* number_of_samples */, |
| 919 int32_t /* audio_buffer_count */, |
| 920 int32_t /* audio_buffer_size */, |
| 921 int32_t /* bitstream_buffer_count */, |
| 922 int32_t /* bitstream_buffer_size */) |
| 923 IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_Encode, int32_t /* buffer_id */) |
| 924 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_EncodeReply, |
| 925 int32_t /* buffer_id */) |
| 926 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_BitstreamBufferReady, |
| 927 int32_t /* buffer_id */) |
| 928 IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_RecycleBitstreamBuffer, |
| 929 int32_t /* buffer_id */) |
| 930 IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_RequestBitrateChange, |
| 931 uint32_t /* bitrate */) |
| 932 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_NotifyError, |
| 933 int32_t /* error */) |
| 934 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_Close) |
| 935 |
892 // PPB_Core. | 936 // PPB_Core. |
893 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, | 937 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, |
894 ppapi::HostResource) | 938 ppapi::HostResource) |
895 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, | 939 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, |
896 ppapi::HostResource) | 940 ppapi::HostResource) |
897 | 941 |
898 // PPB_Graphics3D. | 942 // PPB_Graphics3D. |
899 IPC_SYNC_MESSAGE_ROUTED3_4(PpapiHostMsg_PPBGraphics3D_Create, | 943 IPC_SYNC_MESSAGE_ROUTED3_4(PpapiHostMsg_PPBGraphics3D_Create, |
900 PP_Instance /* instance */, | 944 PP_Instance /* instance */, |
901 ppapi::HostResource /* share_context */, | 945 ppapi::HostResource /* share_context */, |
(...skipping 1423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2325 std::vector<ppapi::HostResource> /* buffers */, | 2369 std::vector<ppapi::HostResource> /* buffers */, |
2326 uint32_t /* buffer_size */) | 2370 uint32_t /* buffer_size */) |
2327 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, | 2371 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, |
2328 uint32_t /* status */) | 2372 uint32_t /* status */) |
2329 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, | 2373 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, |
2330 uint32_t /* error */) | 2374 uint32_t /* error */) |
2331 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, | 2375 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, |
2332 uint32_t /* buffer */) | 2376 uint32_t /* buffer */) |
2333 | 2377 |
2334 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 2378 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |