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

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

Issue 811923002: Changes to support CDM_7 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CrOS compile error Created 5 years, 11 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
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 #undef IPC_MESSAGE_EXPORT 83 #undef IPC_MESSAGE_EXPORT
84 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT 84 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT
85 85
86 #define IPC_MESSAGE_START PpapiMsgStart 86 #define IPC_MESSAGE_START PpapiMsgStart
87 87
88 IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion, 88 IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion,
89 ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE) 89 ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE)
90 IPC_ENUM_TRAITS(PP_AudioSampleRate) 90 IPC_ENUM_TRAITS(PP_AudioSampleRate)
91 IPC_ENUM_TRAITS_MAX_VALUE(PP_BlendMode, PP_BLENDMODE_LAST) 91 IPC_ENUM_TRAITS_MAX_VALUE(PP_BlendMode, PP_BLENDMODE_LAST)
92 IPC_ENUM_TRAITS_MAX_VALUE(PP_CdmExceptionCode, PP_CDMEXCEPTIONCODE_OUTPUTERROR)
93 IPC_ENUM_TRAITS_MAX_VALUE(PP_CdmKeyStatus, PP_CDMKEYSTATUS_OUTPUTNOTALLOWED)
94 IPC_ENUM_TRAITS_MAX_VALUE(PP_CdmMessageType, PP_CDMMESSAGETYPE_LICENSE_RELEASE)
92 IPC_ENUM_TRAITS(PP_DeviceType_Dev) 95 IPC_ENUM_TRAITS(PP_DeviceType_Dev)
93 IPC_ENUM_TRAITS(PP_DecryptorStreamType) 96 IPC_ENUM_TRAITS(PP_DecryptorStreamType)
94 IPC_ENUM_TRAITS(PP_SessionType)
95 IPC_ENUM_TRAITS(PP_CdmExceptionCode)
96 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileSystemType, PP_FILESYSTEMTYPE_ISOLATED) 97 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileSystemType, PP_FILESYSTEMTYPE_ISOLATED)
97 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileType, PP_FILETYPE_OTHER) 98 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileType, PP_FILETYPE_OTHER)
98 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) 99 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission)
99 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) 100 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType)
100 IPC_ENUM_TRAITS(PP_FlashSetting) 101 IPC_ENUM_TRAITS(PP_FlashSetting)
101 IPC_ENUM_TRAITS(PP_ImageDataFormat) 102 IPC_ENUM_TRAITS(PP_ImageDataFormat)
102 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) 103 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton)
103 IPC_ENUM_TRAITS(PP_InputEvent_Type) 104 IPC_ENUM_TRAITS(PP_InputEvent_Type)
104 IPC_ENUM_TRAITS_MAX_VALUE(PP_IsolatedFileSystemType_Private, 105 IPC_ENUM_TRAITS_MAX_VALUE(PP_IsolatedFileSystemType_Private,
105 PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_PLUGINPRIVATE) 106 PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_PLUGINPRIVATE)
106 IPC_ENUM_TRAITS_MAX_VALUE(PP_NetAddressFamily_Private, 107 IPC_ENUM_TRAITS_MAX_VALUE(PP_NetAddressFamily_Private,
107 PP_NETADDRESSFAMILY_PRIVATE_IPV6) 108 PP_NETADDRESSFAMILY_PRIVATE_IPV6)
108 IPC_ENUM_TRAITS_MAX_VALUE(PP_NetworkList_State, PP_NETWORKLIST_STATE_UP) 109 IPC_ENUM_TRAITS_MAX_VALUE(PP_NetworkList_State, PP_NETWORKLIST_STATE_UP)
109 IPC_ENUM_TRAITS_MAX_VALUE(PP_NetworkList_Type, PP_NETWORKLIST_TYPE_CELLULAR) 110 IPC_ENUM_TRAITS_MAX_VALUE(PP_NetworkList_Type, PP_NETWORKLIST_TYPE_CELLULAR)
110 IPC_ENUM_TRAITS(PP_PrintOrientation_Dev) 111 IPC_ENUM_TRAITS(PP_PrintOrientation_Dev)
111 IPC_ENUM_TRAITS(PP_PrintOutputFormat_Dev) 112 IPC_ENUM_TRAITS(PP_PrintOutputFormat_Dev)
112 IPC_ENUM_TRAITS(PP_PrintScalingOption_Dev) 113 IPC_ENUM_TRAITS(PP_PrintScalingOption_Dev)
113 IPC_ENUM_TRAITS_MAX_VALUE(PP_PrintDuplexMode_Dev, PP_PRINTDUPLEXMODE_SHORT_EDGE) 114 IPC_ENUM_TRAITS_MAX_VALUE(PP_PrintDuplexMode_Dev, PP_PRINTDUPLEXMODE_SHORT_EDGE)
114 IPC_ENUM_TRAITS(PP_PrivateFontCharset) 115 IPC_ENUM_TRAITS(PP_PrivateFontCharset)
115 IPC_ENUM_TRAITS(PP_ResourceImage) 116 IPC_ENUM_TRAITS(PP_ResourceImage)
116 IPC_ENUM_TRAITS(PP_ResourceString) 117 IPC_ENUM_TRAITS(PP_ResourceString)
118 IPC_ENUM_TRAITS_MAX_VALUE(PP_SessionType, PP_SESSIONTYPE_PERSISTENT_RELEASE)
117 IPC_ENUM_TRAITS_MAX_VALUE(PP_TalkEvent, PP_TALKEVENT_NUM_EVENTS - 1) 119 IPC_ENUM_TRAITS_MAX_VALUE(PP_TalkEvent, PP_TALKEVENT_NUM_EVENTS - 1)
118 IPC_ENUM_TRAITS_MAX_VALUE(PP_TalkPermission, 120 IPC_ENUM_TRAITS_MAX_VALUE(PP_TalkPermission,
119 PP_TALKPERMISSION_NUM_PERMISSIONS - 1) 121 PP_TALKPERMISSION_NUM_PERMISSIONS - 1)
120 IPC_ENUM_TRAITS_MAX_VALUE(PP_TCPSocket_Option, 122 IPC_ENUM_TRAITS_MAX_VALUE(PP_TCPSocket_Option,
121 PP_TCPSOCKET_OPTION_RECV_BUFFER_SIZE) 123 PP_TCPSOCKET_OPTION_RECV_BUFFER_SIZE)
122 IPC_ENUM_TRAITS(PP_TextInput_Type) 124 IPC_ENUM_TRAITS(PP_TextInput_Type)
123 IPC_ENUM_TRAITS(PP_TrueTypeFontFamily_Dev) 125 IPC_ENUM_TRAITS(PP_TrueTypeFontFamily_Dev)
124 IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev) 126 IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev)
125 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev) 127 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev)
126 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) 128 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev)
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 int32_t /* result */) 776 int32_t /* result */)
775 777
776 // PPP_ContentDecryptor_Dev 778 // PPP_ContentDecryptor_Dev
777 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPContentDecryptor_Initialize, 779 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPContentDecryptor_Initialize,
778 PP_Instance /* instance */, 780 PP_Instance /* instance */,
779 ppapi::proxy::SerializedVar /* key_system, String */) 781 ppapi::proxy::SerializedVar /* key_system, String */)
780 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_SetServerCertificate, 782 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_SetServerCertificate,
781 PP_Instance /* instance */, 783 PP_Instance /* instance */,
782 uint32_t /* promise_id */, 784 uint32_t /* promise_id */,
783 std::vector<uint8_t> /* certificate */) 785 std::vector<uint8_t> /* certificate */)
784 IPC_MESSAGE_ROUTED5(PpapiMsg_PPPContentDecryptor_CreateSession, 786 IPC_MESSAGE_ROUTED5(
787 PpapiMsg_PPPContentDecryptor_CreateSessionAndGenerateRequest,
788 PP_Instance /* instance */,
789 uint32_t /* promise_id */,
790 PP_SessionType /* session_type */,
791 ppapi::proxy::SerializedVar /* init_data_type, String */,
792 ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */)
793 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_LoadSession,
785 PP_Instance /* instance */, 794 PP_Instance /* instance */,
786 uint32_t /* promise_id */, 795 uint32_t /* promise_id */,
787 ppapi::proxy::SerializedVar /* init_data_type, String */, 796 PP_SessionType /* session_type */,
788 ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */,
789 PP_SessionType /* session_type */)
790 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_LoadSession,
791 PP_Instance /* instance */,
792 uint32_t /* promise_id */,
793 ppapi::proxy::SerializedVar /* web_session_id, String */) 797 ppapi::proxy::SerializedVar /* web_session_id, String */)
794 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_UpdateSession, 798 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_UpdateSession,
795 PP_Instance /* instance */, 799 PP_Instance /* instance */,
796 uint32_t /* promise_id */, 800 uint32_t /* promise_id */,
797 ppapi::proxy::SerializedVar /* web_session_id, String */, 801 ppapi::proxy::SerializedVar /* web_session_id, String */,
798 ppapi::proxy::SerializedVar /* response, ArrayBuffer */) 802 ppapi::proxy::SerializedVar /* response, ArrayBuffer */)
799 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_CloseSession, 803 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_CloseSession,
800 PP_Instance /* instance */, 804 PP_Instance /* instance */,
801 uint32_t /* promise_id */, 805 uint32_t /* promise_id */,
802 std::string /* web_session_id */) 806 std::string /* web_session_id */)
803 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_RemoveSession, 807 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_RemoveSession,
804 PP_Instance /* instance */, 808 PP_Instance /* instance */,
805 uint32_t /* promise_id */, 809 uint32_t /* promise_id */,
806 std::string /* web_session_id */) 810 std::string /* web_session_id */)
807 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_GetUsableKeyIds,
808 PP_Instance /* instance */,
809 uint32_t /* promise_id */,
810 std::string /* web_session_id */)
811 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_Decrypt, 811 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_Decrypt,
812 PP_Instance /* instance */, 812 PP_Instance /* instance */,
813 ppapi::proxy::PPPDecryptor_Buffer /* buffer */, 813 ppapi::proxy::PPPDecryptor_Buffer /* buffer */,
814 std::string /* serialized_block_info */) 814 std::string /* serialized_block_info */)
815 IPC_MESSAGE_ROUTED3( 815 IPC_MESSAGE_ROUTED3(
816 PpapiMsg_PPPContentDecryptor_InitializeAudioDecoder, 816 PpapiMsg_PPPContentDecryptor_InitializeAudioDecoder,
817 PP_Instance /* instance */, 817 PP_Instance /* instance */,
818 std::string /* serialized_decoder_config */, 818 std::string /* serialized_decoder_config */,
819 ppapi::proxy::PPPDecryptor_Buffer /* extra_data_buffer */) 819 ppapi::proxy::PPPDecryptor_Buffer /* extra_data_buffer */)
820 IPC_MESSAGE_ROUTED3( 820 IPC_MESSAGE_ROUTED3(
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
1121 ppapi::proxy::SerializedHandle /* result_shm_handle */) 1121 ppapi::proxy::SerializedHandle /* result_shm_handle */)
1122 1122
1123 // PPB_ContentDecryptor_Dev messages handled in PPB_Instance_Proxy. 1123 // PPB_ContentDecryptor_Dev messages handled in PPB_Instance_Proxy.
1124 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PromiseResolved, 1124 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PromiseResolved,
1125 PP_Instance /* instance */, 1125 PP_Instance /* instance */,
1126 uint32_t /* promise_id */) 1126 uint32_t /* promise_id */)
1127 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_PromiseResolvedWithSession, 1127 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_PromiseResolvedWithSession,
1128 PP_Instance /* instance */, 1128 PP_Instance /* instance */,
1129 uint32_t /* promise_id */, 1129 uint32_t /* promise_id */,
1130 ppapi::proxy::SerializedVar /* web_session_id, String */) 1130 ppapi::proxy::SerializedVar /* web_session_id, String */)
1131 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_PromiseResolvedWithKeyIds,
1132 PP_Instance /* instance */,
1133 uint32_t /* promise_id */,
1134 std::vector<std::vector<uint8_t> > /* key_ids */)
1135 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_PromiseRejected, 1131 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_PromiseRejected,
1136 PP_Instance /* instance */, 1132 PP_Instance /* instance */,
1137 uint32_t /* promise_id */, 1133 uint32_t /* promise_id */,
1138 PP_CdmExceptionCode /* exception_code */, 1134 PP_CdmExceptionCode /* exception_code */,
1139 int32_t /* system_code */, 1135 int32_t /* system_code */,
1140 ppapi::proxy::SerializedVar /* error_description, String */) 1136 ppapi::proxy::SerializedVar /* error_description, String */)
1141 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SessionMessage, 1137 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SessionMessage,
1142 PP_Instance /* instance */, 1138 PP_Instance /* instance */,
1143 ppapi::proxy::SerializedVar /* web_session_id, String */, 1139 ppapi::proxy::SerializedVar /* web_session_id, String */,
1144 ppapi::proxy::SerializedVar /* message, ArrayBuffer */, 1140 PP_CdmMessageType /* message_type */,
1145 ppapi::proxy::SerializedVar /* destination_url, String */) 1141 ppapi::proxy::SerializedVar /* message, ArrayBuffer */)
1146 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_SessionKeysChange, 1142 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SessionKeysChange,
1147 PP_Instance /* instance */, 1143 PP_Instance /* instance */,
1148 std::string /* web_session_id */, 1144 std::string /* web_session_id */,
1149 PP_Bool /* has_additional_usable_key */) 1145 PP_Bool /* has_additional_usable_key */,
1146 std::vector<PP_KeyInformation> /* key_information */)
1150 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_SessionExpirationChange, 1147 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_SessionExpirationChange,
1151 PP_Instance /* instance */, 1148 PP_Instance /* instance */,
1152 std::string /* web_session_id */, 1149 std::string /* web_session_id */,
1153 PP_Time /* new_expiry_time */) 1150 PP_Time /* new_expiry_time */)
1154 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SessionReady,
1155 PP_Instance /* instance */,
1156 ppapi::proxy::SerializedVar /* web_session_id, String */)
1157 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SessionClosed, 1151 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SessionClosed,
1158 PP_Instance /* instance */, 1152 PP_Instance /* instance */,
1159 ppapi::proxy::SerializedVar /* web_session_id, String */) 1153 ppapi::proxy::SerializedVar /* web_session_id, String */)
1160 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_SessionError, 1154 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_SessionError,
1161 PP_Instance /* instance */, 1155 PP_Instance /* instance */,
1162 ppapi::proxy::SerializedVar /* web_session_id, String */, 1156 ppapi::proxy::SerializedVar /* web_session_id, String */,
1163 PP_CdmExceptionCode /* exception_code */, 1157 PP_CdmExceptionCode /* exception_code */,
1164 int32_t /* system_code */, 1158 int32_t /* system_code */,
1165 ppapi::proxy::SerializedVar /* error_description, String */) 1159 ppapi::proxy::SerializedVar /* error_description, String */)
1166 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverBlock, 1160 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverBlock,
(...skipping 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after
2290 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, 2284 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission,
2291 PP_TalkPermission /* permission */) 2285 PP_TalkPermission /* permission */)
2292 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) 2286 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply)
2293 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) 2287 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting)
2294 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) 2288 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply)
2295 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) 2289 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting)
2296 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) 2290 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply)
2297 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) 2291 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */)
2298 2292
2299 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 2293 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW
« no previous file with comments | « ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c ('k') | ppapi/proxy/ppapi_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698