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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 #undef IPC_MESSAGE_EXPORT | 81 #undef IPC_MESSAGE_EXPORT |
82 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT | 82 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT |
83 | 83 |
84 #define IPC_MESSAGE_START PpapiMsgStart | 84 #define IPC_MESSAGE_START PpapiMsgStart |
85 | 85 |
86 IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion, | 86 IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion, |
87 ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE) | 87 ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE) |
88 IPC_ENUM_TRAITS(PP_AudioSampleRate) | 88 IPC_ENUM_TRAITS(PP_AudioSampleRate) |
89 IPC_ENUM_TRAITS(PP_DeviceType_Dev) | 89 IPC_ENUM_TRAITS(PP_DeviceType_Dev) |
90 IPC_ENUM_TRAITS(PP_DecryptorStreamType) | 90 IPC_ENUM_TRAITS(PP_DecryptorStreamType) |
| 91 IPC_ENUM_TRAITS(PP_SessionType) |
| 92 IPC_ENUM_TRAITS(PP_CdmExceptionCode) |
91 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileSystemType, PP_FILESYSTEMTYPE_ISOLATED) | 93 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileSystemType, PP_FILESYSTEMTYPE_ISOLATED) |
92 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileType, PP_FILETYPE_OTHER) | 94 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileType, PP_FILETYPE_OTHER) |
93 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) | 95 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) |
94 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) | 96 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) |
95 IPC_ENUM_TRAITS(PP_FlashSetting) | 97 IPC_ENUM_TRAITS(PP_FlashSetting) |
96 IPC_ENUM_TRAITS(PP_ImageDataFormat) | 98 IPC_ENUM_TRAITS(PP_ImageDataFormat) |
97 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) | 99 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) |
98 IPC_ENUM_TRAITS(PP_InputEvent_Type) | 100 IPC_ENUM_TRAITS(PP_InputEvent_Type) |
99 IPC_ENUM_TRAITS_MAX_VALUE(PP_IsolatedFileSystemType_Private, | 101 IPC_ENUM_TRAITS_MAX_VALUE(PP_IsolatedFileSystemType_Private, |
100 PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_PLUGINPRIVATE) | 102 PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_PLUGINPRIVATE) |
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 IPC_MESSAGE_ROUTED3( | 694 IPC_MESSAGE_ROUTED3( |
693 PpapiMsg_PPBBroker_ConnectComplete, | 695 PpapiMsg_PPBBroker_ConnectComplete, |
694 ppapi::HostResource /* broker */, | 696 ppapi::HostResource /* broker */, |
695 IPC::PlatformFileForTransit /* handle */, | 697 IPC::PlatformFileForTransit /* handle */, |
696 int32_t /* result */) | 698 int32_t /* result */) |
697 | 699 |
698 // PPP_ContentDecryptor_Dev | 700 // PPP_ContentDecryptor_Dev |
699 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPContentDecryptor_Initialize, | 701 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPContentDecryptor_Initialize, |
700 PP_Instance /* instance */, | 702 PP_Instance /* instance */, |
701 ppapi::proxy::SerializedVar /* key_system, String */) | 703 ppapi::proxy::SerializedVar /* key_system, String */) |
702 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_CreateSession, | 704 IPC_MESSAGE_ROUTED5(PpapiMsg_PPPContentDecryptor_CreateSession, |
703 PP_Instance /* instance */, | 705 PP_Instance /* instance */, |
704 uint32_t /* session_id */, | 706 uint32_t /* promise_id */, |
705 ppapi::proxy::SerializedVar /* content_type, String */, | 707 ppapi::proxy::SerializedVar /* init_data_type, String */, |
706 ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */) | 708 ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */, |
| 709 PP_SessionType /* session_type */) |
707 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_LoadSession, | 710 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_LoadSession, |
708 PP_Instance /* instance */, | 711 PP_Instance /* instance */, |
709 uint32_t /* session_id */, | 712 uint32_t /* promise_id */, |
710 ppapi::proxy::SerializedVar /* web_session_id, String */) | 713 ppapi::proxy::SerializedVar /* web_session_id, String */) |
711 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_UpdateSession, | 714 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_UpdateSession, |
712 PP_Instance /* instance */, | 715 PP_Instance /* instance */, |
713 uint32_t /* session_id */, | 716 uint32_t /* promise_id */, |
| 717 ppapi::proxy::SerializedVar /* web_session_id, String */, |
714 ppapi::proxy::SerializedVar /* response, ArrayBuffer */) | 718 ppapi::proxy::SerializedVar /* response, ArrayBuffer */) |
715 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPContentDecryptor_ReleaseSession, | 719 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_ReleaseSession, |
716 PP_Instance /* instance */, | 720 PP_Instance /* instance */, |
717 uint32_t /* session_id */) | 721 uint32_t /* promise_id */, |
| 722 ppapi::proxy::SerializedVar /* web_session_id, String */) |
718 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_Decrypt, | 723 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_Decrypt, |
719 PP_Instance /* instance */, | 724 PP_Instance /* instance */, |
720 ppapi::proxy::PPPDecryptor_Buffer /* buffer */, | 725 ppapi::proxy::PPPDecryptor_Buffer /* buffer */, |
721 std::string /* serialized_block_info */) | 726 std::string /* serialized_block_info */) |
722 IPC_MESSAGE_ROUTED3( | 727 IPC_MESSAGE_ROUTED3( |
723 PpapiMsg_PPPContentDecryptor_InitializeAudioDecoder, | 728 PpapiMsg_PPPContentDecryptor_InitializeAudioDecoder, |
724 PP_Instance /* instance */, | 729 PP_Instance /* instance */, |
725 std::string /* serialized_decoder_config */, | 730 std::string /* serialized_decoder_config */, |
726 ppapi::proxy::PPPDecryptor_Buffer /* extra_data_buffer */) | 731 ppapi::proxy::PPPDecryptor_Buffer /* extra_data_buffer */) |
727 IPC_MESSAGE_ROUTED3( | 732 IPC_MESSAGE_ROUTED3( |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1012 | 1017 |
1013 // PPB_Buffer. | 1018 // PPB_Buffer. |
1014 IPC_SYNC_MESSAGE_ROUTED2_2( | 1019 IPC_SYNC_MESSAGE_ROUTED2_2( |
1015 PpapiHostMsg_PPBBuffer_Create, | 1020 PpapiHostMsg_PPBBuffer_Create, |
1016 PP_Instance /* instance */, | 1021 PP_Instance /* instance */, |
1017 uint32_t /* size */, | 1022 uint32_t /* size */, |
1018 ppapi::HostResource /* result_resource */, | 1023 ppapi::HostResource /* result_resource */, |
1019 ppapi::proxy::SerializedHandle /* result_shm_handle */) | 1024 ppapi::proxy::SerializedHandle /* result_shm_handle */) |
1020 | 1025 |
1021 // PPB_ContentDecryptor_Dev messages handled in PPB_Instance_Proxy. | 1026 // PPB_ContentDecryptor_Dev messages handled in PPB_Instance_Proxy. |
1022 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_SessionCreated, | 1027 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PromiseResolved, |
1023 PP_Instance /* instance */, | 1028 PP_Instance /* instance */, |
1024 uint32_t /* session_id */, | 1029 uint32_t /* promise_id */) |
| 1030 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_PromiseResolvedWithSession, |
| 1031 PP_Instance /* instance */, |
| 1032 uint32_t /* promise_id */, |
1025 ppapi::proxy::SerializedVar /* web_session_id, String */) | 1033 ppapi::proxy::SerializedVar /* web_session_id, String */) |
| 1034 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_PromiseRejected, |
| 1035 PP_Instance /* instance */, |
| 1036 uint32_t /* promise_id */, |
| 1037 PP_CdmExceptionCode /* exception_code */, |
| 1038 int32_t /* system_code */, |
| 1039 ppapi::proxy::SerializedVar /* error_description, String */) |
1026 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SessionMessage, | 1040 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SessionMessage, |
1027 PP_Instance /* instance */, | 1041 PP_Instance /* instance */, |
1028 uint32_t /* session_id */, | 1042 ppapi::proxy::SerializedVar /* web_session_id, String */, |
1029 ppapi::proxy::SerializedVar /* message, ArrayBuffer */, | 1043 ppapi::proxy::SerializedVar /* message, ArrayBuffer */, |
1030 ppapi::proxy::SerializedVar /* destination_url, String */) | 1044 ppapi::proxy::SerializedVar /* destination_url, String */) |
1031 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SessionReady, | 1045 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SessionReady, |
1032 PP_Instance /* instance */, | 1046 PP_Instance /* instance */, |
1033 uint32_t /* session_id */) | 1047 ppapi::proxy::SerializedVar /* web_session_id, String */) |
1034 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SessionClosed, | 1048 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SessionClosed, |
1035 PP_Instance /* instance */, | 1049 PP_Instance /* instance */, |
1036 uint32_t /* session_id */) | 1050 ppapi::proxy::SerializedVar /* web_session_id, String */) |
1037 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SessionError, | 1051 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_SessionError, |
1038 PP_Instance /* instance */, | 1052 PP_Instance /* instance */, |
1039 uint32_t /* session_id */, | 1053 ppapi::proxy::SerializedVar /* web_session_id, String */, |
1040 int32_t /* media_error */, | 1054 PP_CdmExceptionCode /* exception_code */, |
1041 int32_t /* system_code */) | 1055 int32_t /* system_code */, |
| 1056 ppapi::proxy::SerializedVar /* error_description, String */) |
1042 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverBlock, | 1057 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverBlock, |
1043 PP_Instance /* instance */, | 1058 PP_Instance /* instance */, |
1044 PP_Resource /* decrypted_block, PPB_Buffer_Dev */, | 1059 PP_Resource /* decrypted_block, PPB_Buffer_Dev */, |
1045 std::string /* serialized_block_info */) | 1060 std::string /* serialized_block_info */) |
1046 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_DecoderInitializeDone, | 1061 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_DecoderInitializeDone, |
1047 PP_Instance /* instance */, | 1062 PP_Instance /* instance */, |
1048 PP_DecryptorStreamType /* decoder_type */, | 1063 PP_DecryptorStreamType /* decoder_type */, |
1049 uint32_t /* request_id */, | 1064 uint32_t /* request_id */, |
1050 PP_Bool /* success */) | 1065 PP_Bool /* success */) |
1051 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DecoderDeinitializeDone, | 1066 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DecoderDeinitializeDone, |
(...skipping 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2171 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, | 2186 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, |
2172 PP_TalkPermission /* permission */) | 2187 PP_TalkPermission /* permission */) |
2173 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) | 2188 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) |
2174 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) | 2189 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) |
2175 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) | 2190 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) |
2176 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) | 2191 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) |
2177 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) | 2192 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) |
2178 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) | 2193 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) |
2179 | 2194 |
2180 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 2195 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |