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

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

Issue 265993002: Add Promises for EME (Chromium side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 #undef IPC_MESSAGE_EXPORT 77 #undef IPC_MESSAGE_EXPORT
78 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT 78 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT
79 79
80 #define IPC_MESSAGE_START PpapiMsgStart 80 #define IPC_MESSAGE_START PpapiMsgStart
81 81
82 IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion, 82 IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion,
83 ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE) 83 ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE)
84 IPC_ENUM_TRAITS(PP_AudioSampleRate) 84 IPC_ENUM_TRAITS(PP_AudioSampleRate)
85 IPC_ENUM_TRAITS(PP_DeviceType_Dev) 85 IPC_ENUM_TRAITS(PP_DeviceType_Dev)
86 IPC_ENUM_TRAITS(PP_DecryptorStreamType) 86 IPC_ENUM_TRAITS(PP_DecryptorStreamType)
87 IPC_ENUM_TRAITS(PP_SessionType)
87 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileSystemType, PP_FILESYSTEMTYPE_ISOLATED) 88 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileSystemType, PP_FILESYSTEMTYPE_ISOLATED)
88 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileType, PP_FILETYPE_OTHER) 89 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileType, PP_FILETYPE_OTHER)
89 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) 90 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission)
90 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) 91 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType)
91 IPC_ENUM_TRAITS(PP_FlashSetting) 92 IPC_ENUM_TRAITS(PP_FlashSetting)
92 IPC_ENUM_TRAITS(PP_ImageDataFormat) 93 IPC_ENUM_TRAITS(PP_ImageDataFormat)
93 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) 94 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton)
94 IPC_ENUM_TRAITS(PP_InputEvent_Type) 95 IPC_ENUM_TRAITS(PP_InputEvent_Type)
95 IPC_ENUM_TRAITS_MAX_VALUE(PP_IsolatedFileSystemType_Private, 96 IPC_ENUM_TRAITS_MAX_VALUE(PP_IsolatedFileSystemType_Private,
96 PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_PLUGINPRIVATE) 97 PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_PLUGINPRIVATE)
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 IPC_MESSAGE_ROUTED3( 683 IPC_MESSAGE_ROUTED3(
683 PpapiMsg_PPBBroker_ConnectComplete, 684 PpapiMsg_PPBBroker_ConnectComplete,
684 ppapi::HostResource /* broker */, 685 ppapi::HostResource /* broker */,
685 IPC::PlatformFileForTransit /* handle */, 686 IPC::PlatformFileForTransit /* handle */,
686 int32_t /* result */) 687 int32_t /* result */)
687 688
688 // PPP_ContentDecryptor_Dev 689 // PPP_ContentDecryptor_Dev
689 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPContentDecryptor_Initialize, 690 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPContentDecryptor_Initialize,
690 PP_Instance /* instance */, 691 PP_Instance /* instance */,
691 ppapi::proxy::SerializedVar /* key_system, String */) 692 ppapi::proxy::SerializedVar /* key_system, String */)
692 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_CreateSession, 693 IPC_MESSAGE_ROUTED5(PpapiMsg_PPPContentDecryptor_CreateSession,
693 PP_Instance /* instance */, 694 PP_Instance /* instance */,
694 uint32_t /* session_id */, 695 uint32_t /* promise_id */,
695 ppapi::proxy::SerializedVar /* content_type, String */, 696 ppapi::proxy::SerializedVar /* init_data_type, String */,
696 ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */) 697 ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */,
698 PP_SessionType /* session_type */)
697 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_LoadSession, 699 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_LoadSession,
698 PP_Instance /* instance */, 700 PP_Instance /* instance */,
699 uint32_t /* session_id */, 701 uint32_t /* promise_id */,
700 ppapi::proxy::SerializedVar /* web_session_id, String */) 702 ppapi::proxy::SerializedVar /* web_session_id, String */)
701 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_UpdateSession, 703 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_UpdateSession,
702 PP_Instance /* instance */, 704 PP_Instance /* instance */,
703 uint32_t /* session_id */, 705 uint32_t /* promise_id */,
706 ppapi::proxy::SerializedVar /* web_session_id, String */,
704 ppapi::proxy::SerializedVar /* response, ArrayBuffer */) 707 ppapi::proxy::SerializedVar /* response, ArrayBuffer */)
705 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPContentDecryptor_ReleaseSession, 708 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_ReleaseSession,
706 PP_Instance /* instance */, 709 PP_Instance /* instance */,
707 uint32_t /* session_id */) 710 uint32_t /* promise_id */,
711 ppapi::proxy::SerializedVar /* web_session_id, String */)
708 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_Decrypt, 712 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_Decrypt,
709 PP_Instance /* instance */, 713 PP_Instance /* instance */,
710 ppapi::proxy::PPPDecryptor_Buffer /* buffer */, 714 ppapi::proxy::PPPDecryptor_Buffer /* buffer */,
711 std::string /* serialized_block_info */) 715 std::string /* serialized_block_info */)
712 IPC_MESSAGE_ROUTED3( 716 IPC_MESSAGE_ROUTED3(
713 PpapiMsg_PPPContentDecryptor_InitializeAudioDecoder, 717 PpapiMsg_PPPContentDecryptor_InitializeAudioDecoder,
714 PP_Instance /* instance */, 718 PP_Instance /* instance */,
715 std::string /* serialized_decoder_config */, 719 std::string /* serialized_decoder_config */,
716 ppapi::proxy::PPPDecryptor_Buffer /* extra_data_buffer */) 720 ppapi::proxy::PPPDecryptor_Buffer /* extra_data_buffer */)
717 IPC_MESSAGE_ROUTED3( 721 IPC_MESSAGE_ROUTED3(
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 999
996 // PPB_Buffer. 1000 // PPB_Buffer.
997 IPC_SYNC_MESSAGE_ROUTED2_2( 1001 IPC_SYNC_MESSAGE_ROUTED2_2(
998 PpapiHostMsg_PPBBuffer_Create, 1002 PpapiHostMsg_PPBBuffer_Create,
999 PP_Instance /* instance */, 1003 PP_Instance /* instance */,
1000 uint32_t /* size */, 1004 uint32_t /* size */,
1001 ppapi::HostResource /* result_resource */, 1005 ppapi::HostResource /* result_resource */,
1002 ppapi::proxy::SerializedHandle /* result_shm_handle */) 1006 ppapi::proxy::SerializedHandle /* result_shm_handle */)
1003 1007
1004 // PPB_ContentDecryptor_Dev messages handled in PPB_Instance_Proxy. 1008 // PPB_ContentDecryptor_Dev messages handled in PPB_Instance_Proxy.
1005 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_SessionCreated, 1009 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PromiseResolved,
1006 PP_Instance /* instance */, 1010 PP_Instance /* instance */,
1007 uint32_t /* session_id */, 1011 uint32_t /* promise_id */)
1012 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_PromiseResolvedWithSession,
1013 PP_Instance /* instance */,
1014 uint32_t /* promise_id */,
1008 ppapi::proxy::SerializedVar /* web_session_id, String */) 1015 ppapi::proxy::SerializedVar /* web_session_id, String */)
1016 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_PromiseRejected,
1017 PP_Instance /* instance */,
1018 uint32_t /* promise_id */,
1019 ppapi::proxy::SerializedVar /* error_name, String */,
1020 int32_t /* system_code */,
1021 ppapi::proxy::SerializedVar /* error_description, String */)
1009 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SessionMessage, 1022 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SessionMessage,
1010 PP_Instance /* instance */, 1023 PP_Instance /* instance */,
1011 uint32_t /* session_id */, 1024 ppapi::proxy::SerializedVar /* web_session_id, String */,
1012 ppapi::proxy::SerializedVar /* message, ArrayBuffer */, 1025 ppapi::proxy::SerializedVar /* message, ArrayBuffer */,
1013 ppapi::proxy::SerializedVar /* destination_url, String */) 1026 ppapi::proxy::SerializedVar /* destination_url, String */)
1014 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SessionReady, 1027 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SessionReady,
1015 PP_Instance /* instance */, 1028 PP_Instance /* instance */,
1016 uint32_t /* session_id */) 1029 ppapi::proxy::SerializedVar /* web_session_id, String */)
1017 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SessionClosed, 1030 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SessionClosed,
1018 PP_Instance /* instance */, 1031 PP_Instance /* instance */,
1019 uint32_t /* session_id */) 1032 ppapi::proxy::SerializedVar /* web_session_id, String */)
1020 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SessionError, 1033 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_SessionError,
1021 PP_Instance /* instance */, 1034 PP_Instance /* instance */,
1022 uint32_t /* session_id */, 1035 ppapi::proxy::SerializedVar /* web_session_id, String */,
1023 int32_t /* media_error */, 1036 ppapi::proxy::SerializedVar /* error_name, String */,
1024 int32_t /* system_code */) 1037 int32_t /* system_code */,
1038 ppapi::proxy::SerializedVar /* error_description, String */)
1025 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverBlock, 1039 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverBlock,
1026 PP_Instance /* instance */, 1040 PP_Instance /* instance */,
1027 PP_Resource /* decrypted_block, PPB_Buffer_Dev */, 1041 PP_Resource /* decrypted_block, PPB_Buffer_Dev */,
1028 std::string /* serialized_block_info */) 1042 std::string /* serialized_block_info */)
1029 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_DecoderInitializeDone, 1043 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_DecoderInitializeDone,
1030 PP_Instance /* instance */, 1044 PP_Instance /* instance */,
1031 PP_DecryptorStreamType /* decoder_type */, 1045 PP_DecryptorStreamType /* decoder_type */,
1032 uint32_t /* request_id */, 1046 uint32_t /* request_id */,
1033 PP_Bool /* success */) 1047 PP_Bool /* success */)
1034 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DecoderDeinitializeDone, 1048 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DecoderDeinitializeDone,
(...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after
2103 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, 2117 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission,
2104 PP_TalkPermission /* permission */) 2118 PP_TalkPermission /* permission */)
2105 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) 2119 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply)
2106 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) 2120 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting)
2107 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) 2121 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply)
2108 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) 2122 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting)
2109 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) 2123 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply)
2110 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) 2124 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */)
2111 2125
2112 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 2126 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698