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 17 matching lines...) Expand all Loading... |
28 #include "ppapi/c/pp_bool.h" | 28 #include "ppapi/c/pp_bool.h" |
29 #include "ppapi/c/pp_file_info.h" | 29 #include "ppapi/c/pp_file_info.h" |
30 #include "ppapi/c/pp_instance.h" | 30 #include "ppapi/c/pp_instance.h" |
31 #include "ppapi/c/pp_module.h" | 31 #include "ppapi/c/pp_module.h" |
32 #include "ppapi/c/pp_point.h" | 32 #include "ppapi/c/pp_point.h" |
33 #include "ppapi/c/pp_rect.h" | 33 #include "ppapi/c/pp_rect.h" |
34 #include "ppapi/c/pp_resource.h" | 34 #include "ppapi/c/pp_resource.h" |
35 #include "ppapi/c/pp_size.h" | 35 #include "ppapi/c/pp_size.h" |
36 #include "ppapi/c/pp_time.h" | 36 #include "ppapi/c/pp_time.h" |
37 #include "ppapi/c/ppb_audio_config.h" | 37 #include "ppapi/c/ppb_audio_config.h" |
| 38 #include "ppapi/c/ppb_compositor_layer.h" |
38 #include "ppapi/c/ppb_image_data.h" | 39 #include "ppapi/c/ppb_image_data.h" |
39 #include "ppapi/c/ppb_tcp_socket.h" | 40 #include "ppapi/c/ppb_tcp_socket.h" |
40 #include "ppapi/c/ppb_text_input_controller.h" | 41 #include "ppapi/c/ppb_text_input_controller.h" |
41 #include "ppapi/c/ppb_udp_socket.h" | 42 #include "ppapi/c/ppb_udp_socket.h" |
42 #include "ppapi/c/private/pp_content_decryptor.h" | 43 #include "ppapi/c/private/pp_content_decryptor.h" |
43 #include "ppapi/c/private/pp_private_font_charset.h" | 44 #include "ppapi/c/private/pp_private_font_charset.h" |
44 #include "ppapi/c/private/ppb_flash.h" | 45 #include "ppapi/c/private/ppb_flash.h" |
45 #include "ppapi/c/private/ppb_host_resolver_private.h" | 46 #include "ppapi/c/private/ppb_host_resolver_private.h" |
46 #include "ppapi/c/private/ppb_isolated_file_system_private.h" | 47 #include "ppapi/c/private/ppb_isolated_file_system_private.h" |
47 #include "ppapi/c/private/ppb_net_address_private.h" | 48 #include "ppapi/c/private/ppb_net_address_private.h" |
48 #include "ppapi/c/private/ppb_pdf.h" | 49 #include "ppapi/c/private/ppb_pdf.h" |
49 #include "ppapi/c/private/ppb_talk_private.h" | 50 #include "ppapi/c/private/ppb_talk_private.h" |
50 #include "ppapi/c/private/ppp_flash_browser_operations.h" | 51 #include "ppapi/c/private/ppp_flash_browser_operations.h" |
51 #include "ppapi/proxy/host_resolver_private_resource.h" | 52 #include "ppapi/proxy/host_resolver_private_resource.h" |
52 #include "ppapi/proxy/network_list_resource.h" | 53 #include "ppapi/proxy/network_list_resource.h" |
53 #include "ppapi/proxy/ppapi_param_traits.h" | 54 #include "ppapi/proxy/ppapi_param_traits.h" |
54 #include "ppapi/proxy/ppapi_proxy_export.h" | 55 #include "ppapi/proxy/ppapi_proxy_export.h" |
55 #include "ppapi/proxy/resource_message_params.h" | 56 #include "ppapi/proxy/resource_message_params.h" |
56 #include "ppapi/proxy/serialized_flash_menu.h" | 57 #include "ppapi/proxy/serialized_flash_menu.h" |
57 #include "ppapi/proxy/serialized_handle.h" | 58 #include "ppapi/proxy/serialized_handle.h" |
58 #include "ppapi/proxy/serialized_structs.h" | 59 #include "ppapi/proxy/serialized_structs.h" |
59 #include "ppapi/proxy/serialized_var.h" | 60 #include "ppapi/proxy/serialized_var.h" |
| 61 #include "ppapi/shared_impl/compositor_layer_data.h" |
60 #include "ppapi/shared_impl/dir_contents.h" | 62 #include "ppapi/shared_impl/dir_contents.h" |
61 #include "ppapi/shared_impl/file_growth.h" | 63 #include "ppapi/shared_impl/file_growth.h" |
62 #include "ppapi/shared_impl/file_path.h" | 64 #include "ppapi/shared_impl/file_path.h" |
63 #include "ppapi/shared_impl/file_ref_create_info.h" | 65 #include "ppapi/shared_impl/file_ref_create_info.h" |
64 #include "ppapi/shared_impl/media_stream_video_track_shared.h" | 66 #include "ppapi/shared_impl/media_stream_video_track_shared.h" |
65 #include "ppapi/shared_impl/ppapi_nacl_plugin_args.h" | 67 #include "ppapi/shared_impl/ppapi_nacl_plugin_args.h" |
66 #include "ppapi/shared_impl/ppapi_preferences.h" | 68 #include "ppapi/shared_impl/ppapi_preferences.h" |
67 #include "ppapi/shared_impl/ppb_device_ref_shared.h" | 69 #include "ppapi/shared_impl/ppb_device_ref_shared.h" |
68 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 70 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
69 #include "ppapi/shared_impl/ppb_tcp_socket_shared.h" | 71 #include "ppapi/shared_impl/ppb_tcp_socket_shared.h" |
70 #include "ppapi/shared_impl/ppb_view_shared.h" | 72 #include "ppapi/shared_impl/ppb_view_shared.h" |
71 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" | 73 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" |
72 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" | 74 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" |
73 #include "ppapi/shared_impl/socket_option_data.h" | 75 #include "ppapi/shared_impl/socket_option_data.h" |
74 #include "ppapi/shared_impl/url_request_info_data.h" | 76 #include "ppapi/shared_impl/url_request_info_data.h" |
75 #include "ppapi/shared_impl/url_response_info_data.h" | 77 #include "ppapi/shared_impl/url_response_info_data.h" |
76 #include "ui/events/ipc/latency_info_param_traits.h" | 78 #include "ui/events/ipc/latency_info_param_traits.h" |
77 | 79 |
78 #undef IPC_MESSAGE_EXPORT | 80 #undef IPC_MESSAGE_EXPORT |
79 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT | 81 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT |
80 | 82 |
81 #define IPC_MESSAGE_START PpapiMsgStart | 83 #define IPC_MESSAGE_START PpapiMsgStart |
82 | 84 |
83 IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion, | 85 IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion, |
84 ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE) | 86 ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE) |
| 87 IPC_ENUM_TRAITS_MAX_VALUE(ppapi::CompositorLayerData::Type, |
| 88 ppapi::CompositorLayerData::TYPE_LAST) |
85 IPC_ENUM_TRAITS(PP_AudioSampleRate) | 89 IPC_ENUM_TRAITS(PP_AudioSampleRate) |
| 90 IPC_ENUM_TRAITS_MAX_VALUE(PP_BlendMode, PP_BLENDMODE_LAST) |
86 IPC_ENUM_TRAITS(PP_DeviceType_Dev) | 91 IPC_ENUM_TRAITS(PP_DeviceType_Dev) |
87 IPC_ENUM_TRAITS(PP_DecryptorStreamType) | 92 IPC_ENUM_TRAITS(PP_DecryptorStreamType) |
88 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileSystemType, PP_FILESYSTEMTYPE_ISOLATED) | 93 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileSystemType, PP_FILESYSTEMTYPE_ISOLATED) |
89 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileType, PP_FILETYPE_OTHER) | 94 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileType, PP_FILETYPE_OTHER) |
90 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) | 95 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) |
91 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) | 96 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) |
92 IPC_ENUM_TRAITS(PP_FlashSetting) | 97 IPC_ENUM_TRAITS(PP_FlashSetting) |
93 IPC_ENUM_TRAITS(PP_ImageDataFormat) | 98 IPC_ENUM_TRAITS(PP_ImageDataFormat) |
94 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) | 99 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) |
95 IPC_ENUM_TRAITS(PP_InputEvent_Type) | 100 IPC_ENUM_TRAITS(PP_InputEvent_Type) |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) | 135 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) |
131 IPC_STRUCT_TRAITS_MEMBER(x) | 136 IPC_STRUCT_TRAITS_MEMBER(x) |
132 IPC_STRUCT_TRAITS_MEMBER(y) | 137 IPC_STRUCT_TRAITS_MEMBER(y) |
133 IPC_STRUCT_TRAITS_END() | 138 IPC_STRUCT_TRAITS_END() |
134 | 139 |
135 IPC_STRUCT_TRAITS_BEGIN(PP_Size) | 140 IPC_STRUCT_TRAITS_BEGIN(PP_Size) |
136 IPC_STRUCT_TRAITS_MEMBER(height) | 141 IPC_STRUCT_TRAITS_MEMBER(height) |
137 IPC_STRUCT_TRAITS_MEMBER(width) | 142 IPC_STRUCT_TRAITS_MEMBER(width) |
138 IPC_STRUCT_TRAITS_END() | 143 IPC_STRUCT_TRAITS_END() |
139 | 144 |
| 145 IPC_STRUCT_TRAITS_BEGIN(PP_FloatSize) |
| 146 IPC_STRUCT_TRAITS_MEMBER(height) |
| 147 IPC_STRUCT_TRAITS_MEMBER(width) |
| 148 IPC_STRUCT_TRAITS_END() |
| 149 |
140 IPC_STRUCT_TRAITS_BEGIN(PP_Rect) | 150 IPC_STRUCT_TRAITS_BEGIN(PP_Rect) |
141 IPC_STRUCT_TRAITS_MEMBER(point) | 151 IPC_STRUCT_TRAITS_MEMBER(point) |
142 IPC_STRUCT_TRAITS_MEMBER(size) | 152 IPC_STRUCT_TRAITS_MEMBER(size) |
143 IPC_STRUCT_TRAITS_END() | 153 IPC_STRUCT_TRAITS_END() |
144 | 154 |
| 155 IPC_STRUCT_TRAITS_BEGIN(PP_FloatRect) |
| 156 IPC_STRUCT_TRAITS_MEMBER(point) |
| 157 IPC_STRUCT_TRAITS_MEMBER(size) |
| 158 IPC_STRUCT_TRAITS_END() |
| 159 |
145 IPC_STRUCT_TRAITS_BEGIN(PP_ImageDataDesc) | 160 IPC_STRUCT_TRAITS_BEGIN(PP_ImageDataDesc) |
146 IPC_STRUCT_TRAITS_MEMBER(format) | 161 IPC_STRUCT_TRAITS_MEMBER(format) |
147 IPC_STRUCT_TRAITS_MEMBER(size) | 162 IPC_STRUCT_TRAITS_MEMBER(size) |
148 IPC_STRUCT_TRAITS_MEMBER(stride) | 163 IPC_STRUCT_TRAITS_MEMBER(stride) |
149 IPC_STRUCT_TRAITS_END() | 164 IPC_STRUCT_TRAITS_END() |
150 | 165 |
151 IPC_STRUCT_TRAITS_BEGIN(PP_PictureBuffer_Dev) | 166 IPC_STRUCT_TRAITS_BEGIN(PP_PictureBuffer_Dev) |
152 IPC_STRUCT_TRAITS_MEMBER(id) | 167 IPC_STRUCT_TRAITS_MEMBER(id) |
153 IPC_STRUCT_TRAITS_MEMBER(size) | 168 IPC_STRUCT_TRAITS_MEMBER(size) |
154 IPC_STRUCT_TRAITS_MEMBER(texture_id) | 169 IPC_STRUCT_TRAITS_MEMBER(texture_id) |
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1269 int32_t /* min */, | 1284 int32_t /* min */, |
1270 int32_t /* max */, | 1285 int32_t /* max */, |
1271 uint32_t /* bucket_count */) | 1286 uint32_t /* bucket_count */) |
1272 IPC_MESSAGE_CONTROL3(PpapiHostMsg_UMA_HistogramEnumeration, | 1287 IPC_MESSAGE_CONTROL3(PpapiHostMsg_UMA_HistogramEnumeration, |
1273 std::string /* name */, | 1288 std::string /* name */, |
1274 int32_t /* sample */, | 1289 int32_t /* sample */, |
1275 int32_t /* boundary_value */) | 1290 int32_t /* boundary_value */) |
1276 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UMA_IsCrashReportingEnabled); | 1291 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UMA_IsCrashReportingEnabled); |
1277 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UMA_IsCrashReportingEnabledReply); | 1292 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UMA_IsCrashReportingEnabledReply); |
1278 | 1293 |
| 1294 // Compositor |
| 1295 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Compositor_Create) |
| 1296 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Compositor_CommitLayers, |
| 1297 std::vector<ppapi::CompositorLayerData> /* layers */, |
| 1298 bool /* reset */) |
| 1299 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Compositor_CommitLayersReply) |
| 1300 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_Compositor_ReleaseResource, |
| 1301 int32_t /* id */, |
| 1302 uint32_t /* sync_point */, |
| 1303 bool /* is_lost */) |
| 1304 |
1279 // File chooser. | 1305 // File chooser. |
1280 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) | 1306 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) |
1281 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, | 1307 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, |
1282 bool /* save_as */, | 1308 bool /* save_as */, |
1283 bool /* open_multiple */, | 1309 bool /* open_multiple */, |
1284 std::string /* suggested_file_name */, | 1310 std::string /* suggested_file_name */, |
1285 std::vector<std::string> /* accept_mime_types */) | 1311 std::vector<std::string> /* accept_mime_types */) |
1286 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, | 1312 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, |
1287 std::vector<ppapi::FileRefCreateInfo> /* files */) | 1313 std::vector<ppapi::FileRefCreateInfo> /* files */) |
1288 | 1314 |
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2118 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, | 2144 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, |
2119 PP_TalkPermission /* permission */) | 2145 PP_TalkPermission /* permission */) |
2120 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) | 2146 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) |
2121 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) | 2147 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) |
2122 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) | 2148 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) |
2123 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) | 2149 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) |
2124 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) | 2150 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) |
2125 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) | 2151 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) |
2126 | 2152 |
2127 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 2153 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |