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