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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 #undef IPC_MESSAGE_EXPORT | 78 #undef IPC_MESSAGE_EXPORT |
79 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT | 79 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT |
80 | 80 |
81 #define IPC_MESSAGE_START PpapiMsgStart | 81 #define IPC_MESSAGE_START PpapiMsgStart |
82 | 82 |
83 IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion, | 83 IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion, |
84 ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE) | 84 ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE) |
85 IPC_ENUM_TRAITS(PP_AudioSampleRate) | 85 IPC_ENUM_TRAITS(PP_AudioSampleRate) |
86 IPC_ENUM_TRAITS(PP_DeviceType_Dev) | 86 IPC_ENUM_TRAITS(PP_DeviceType_Dev) |
87 IPC_ENUM_TRAITS(PP_DecryptorStreamType) | 87 IPC_ENUM_TRAITS(PP_DecryptorStreamType) |
| 88 IPC_ENUM_TRAITS(PP_SessionType) |
| 89 IPC_ENUM_TRAITS(PP_ExceptionCode) |
88 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileSystemType, PP_FILESYSTEMTYPE_ISOLATED) | 90 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileSystemType, PP_FILESYSTEMTYPE_ISOLATED) |
89 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileType, PP_FILETYPE_OTHER) | 91 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileType, PP_FILETYPE_OTHER) |
90 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) | 92 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) |
91 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) | 93 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) |
92 IPC_ENUM_TRAITS(PP_FlashSetting) | 94 IPC_ENUM_TRAITS(PP_FlashSetting) |
93 IPC_ENUM_TRAITS(PP_ImageDataFormat) | 95 IPC_ENUM_TRAITS(PP_ImageDataFormat) |
94 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) | 96 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) |
95 IPC_ENUM_TRAITS(PP_InputEvent_Type) | 97 IPC_ENUM_TRAITS(PP_InputEvent_Type) |
96 IPC_ENUM_TRAITS_MAX_VALUE(PP_IsolatedFileSystemType_Private, | 98 IPC_ENUM_TRAITS_MAX_VALUE(PP_IsolatedFileSystemType_Private, |
97 PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_PLUGINPRIVATE) | 99 PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_PLUGINPRIVATE) |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 IPC_MESSAGE_ROUTED3( | 686 IPC_MESSAGE_ROUTED3( |
685 PpapiMsg_PPBBroker_ConnectComplete, | 687 PpapiMsg_PPBBroker_ConnectComplete, |
686 ppapi::HostResource /* broker */, | 688 ppapi::HostResource /* broker */, |
687 IPC::PlatformFileForTransit /* handle */, | 689 IPC::PlatformFileForTransit /* handle */, |
688 int32_t /* result */) | 690 int32_t /* result */) |
689 | 691 |
690 // PPP_ContentDecryptor_Dev | 692 // PPP_ContentDecryptor_Dev |
691 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPContentDecryptor_Initialize, | 693 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPContentDecryptor_Initialize, |
692 PP_Instance /* instance */, | 694 PP_Instance /* instance */, |
693 ppapi::proxy::SerializedVar /* key_system, String */) | 695 ppapi::proxy::SerializedVar /* key_system, String */) |
694 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_CreateSession, | 696 IPC_MESSAGE_ROUTED5(PpapiMsg_PPPContentDecryptor_CreateSession, |
695 PP_Instance /* instance */, | 697 PP_Instance /* instance */, |
696 uint32_t /* session_id */, | 698 uint32_t /* promise_id */, |
697 ppapi::proxy::SerializedVar /* content_type, String */, | 699 ppapi::proxy::SerializedVar /* init_data_type, String */, |
698 ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */) | 700 ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */, |
| 701 PP_SessionType /* session_type */) |
699 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_LoadSession, | 702 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_LoadSession, |
700 PP_Instance /* instance */, | 703 PP_Instance /* instance */, |
701 uint32_t /* session_id */, | 704 uint32_t /* promise_id */, |
702 ppapi::proxy::SerializedVar /* web_session_id, String */) | 705 ppapi::proxy::SerializedVar /* web_session_id, String */) |
703 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_UpdateSession, | 706 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_UpdateSession, |
704 PP_Instance /* instance */, | 707 PP_Instance /* instance */, |
705 uint32_t /* session_id */, | 708 uint32_t /* promise_id */, |
| 709 ppapi::proxy::SerializedVar /* web_session_id, String */, |
706 ppapi::proxy::SerializedVar /* response, ArrayBuffer */) | 710 ppapi::proxy::SerializedVar /* response, ArrayBuffer */) |
707 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPContentDecryptor_ReleaseSession, | 711 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_ReleaseSession, |
708 PP_Instance /* instance */, | 712 PP_Instance /* instance */, |
709 uint32_t /* session_id */) | 713 uint32_t /* promise_id */, |
| 714 ppapi::proxy::SerializedVar /* web_session_id, String */) |
710 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_Decrypt, | 715 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_Decrypt, |
711 PP_Instance /* instance */, | 716 PP_Instance /* instance */, |
712 ppapi::proxy::PPPDecryptor_Buffer /* buffer */, | 717 ppapi::proxy::PPPDecryptor_Buffer /* buffer */, |
713 std::string /* serialized_block_info */) | 718 std::string /* serialized_block_info */) |
714 IPC_MESSAGE_ROUTED3( | 719 IPC_MESSAGE_ROUTED3( |
715 PpapiMsg_PPPContentDecryptor_InitializeAudioDecoder, | 720 PpapiMsg_PPPContentDecryptor_InitializeAudioDecoder, |
716 PP_Instance /* instance */, | 721 PP_Instance /* instance */, |
717 std::string /* serialized_decoder_config */, | 722 std::string /* serialized_decoder_config */, |
718 ppapi::proxy::PPPDecryptor_Buffer /* extra_data_buffer */) | 723 ppapi::proxy::PPPDecryptor_Buffer /* extra_data_buffer */) |
719 IPC_MESSAGE_ROUTED3( | 724 IPC_MESSAGE_ROUTED3( |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 | 1009 |
1005 // PPB_Buffer. | 1010 // PPB_Buffer. |
1006 IPC_SYNC_MESSAGE_ROUTED2_2( | 1011 IPC_SYNC_MESSAGE_ROUTED2_2( |
1007 PpapiHostMsg_PPBBuffer_Create, | 1012 PpapiHostMsg_PPBBuffer_Create, |
1008 PP_Instance /* instance */, | 1013 PP_Instance /* instance */, |
1009 uint32_t /* size */, | 1014 uint32_t /* size */, |
1010 ppapi::HostResource /* result_resource */, | 1015 ppapi::HostResource /* result_resource */, |
1011 ppapi::proxy::SerializedHandle /* result_shm_handle */) | 1016 ppapi::proxy::SerializedHandle /* result_shm_handle */) |
1012 | 1017 |
1013 // PPB_ContentDecryptor_Dev messages handled in PPB_Instance_Proxy. | 1018 // PPB_ContentDecryptor_Dev messages handled in PPB_Instance_Proxy. |
1014 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_SessionCreated, | 1019 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PromiseResolved, |
1015 PP_Instance /* instance */, | 1020 PP_Instance /* instance */, |
1016 uint32_t /* session_id */, | 1021 uint32_t /* promise_id */) |
| 1022 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_PromiseResolvedWithSession, |
| 1023 PP_Instance /* instance */, |
| 1024 uint32_t /* promise_id */, |
1017 ppapi::proxy::SerializedVar /* web_session_id, String */) | 1025 ppapi::proxy::SerializedVar /* web_session_id, String */) |
| 1026 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_PromiseRejected, |
| 1027 PP_Instance /* instance */, |
| 1028 uint32_t /* promise_id */, |
| 1029 PP_ExceptionCode /* exception_code */, |
| 1030 int32_t /* system_code */, |
| 1031 ppapi::proxy::SerializedVar /* error_description, String */) |
1018 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SessionMessage, | 1032 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SessionMessage, |
1019 PP_Instance /* instance */, | 1033 PP_Instance /* instance */, |
1020 uint32_t /* session_id */, | 1034 ppapi::proxy::SerializedVar /* web_session_id, String */, |
1021 ppapi::proxy::SerializedVar /* message, ArrayBuffer */, | 1035 ppapi::proxy::SerializedVar /* message, ArrayBuffer */, |
1022 ppapi::proxy::SerializedVar /* destination_url, String */) | 1036 ppapi::proxy::SerializedVar /* destination_url, String */) |
1023 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SessionReady, | 1037 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SessionReady, |
1024 PP_Instance /* instance */, | 1038 PP_Instance /* instance */, |
1025 uint32_t /* session_id */) | 1039 ppapi::proxy::SerializedVar /* web_session_id, String */) |
1026 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SessionClosed, | 1040 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SessionClosed, |
1027 PP_Instance /* instance */, | 1041 PP_Instance /* instance */, |
1028 uint32_t /* session_id */) | 1042 ppapi::proxy::SerializedVar /* web_session_id, String */) |
1029 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SessionError, | 1043 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_SessionError, |
1030 PP_Instance /* instance */, | 1044 PP_Instance /* instance */, |
1031 uint32_t /* session_id */, | 1045 ppapi::proxy::SerializedVar /* web_session_id, String */, |
1032 int32_t /* media_error */, | 1046 PP_ExceptionCode /* exception_code */, |
1033 int32_t /* system_code */) | 1047 int32_t /* system_code */, |
| 1048 ppapi::proxy::SerializedVar /* error_description, String */) |
1034 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverBlock, | 1049 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverBlock, |
1035 PP_Instance /* instance */, | 1050 PP_Instance /* instance */, |
1036 PP_Resource /* decrypted_block, PPB_Buffer_Dev */, | 1051 PP_Resource /* decrypted_block, PPB_Buffer_Dev */, |
1037 std::string /* serialized_block_info */) | 1052 std::string /* serialized_block_info */) |
1038 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_DecoderInitializeDone, | 1053 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_DecoderInitializeDone, |
1039 PP_Instance /* instance */, | 1054 PP_Instance /* instance */, |
1040 PP_DecryptorStreamType /* decoder_type */, | 1055 PP_DecryptorStreamType /* decoder_type */, |
1041 uint32_t /* request_id */, | 1056 uint32_t /* request_id */, |
1042 PP_Bool /* success */) | 1057 PP_Bool /* success */) |
1043 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DecoderDeinitializeDone, | 1058 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DecoderDeinitializeDone, |
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2118 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, | 2133 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, |
2119 PP_TalkPermission /* permission */) | 2134 PP_TalkPermission /* permission */) |
2120 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) | 2135 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) |
2121 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) | 2136 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) |
2122 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) | 2137 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) |
2123 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) | 2138 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) |
2124 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) | 2139 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) |
2125 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) | 2140 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) |
2126 | 2141 |
2127 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 2142 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |