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