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" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/memory/linked_ptr.h" | |
raymes
2014/06/02 03:51:08
Is this needed?
Peng
2014/06/02 19:01:55
Done.
| |
12 #include "base/memory/shared_memory.h" | 13 #include "base/memory/shared_memory.h" |
13 #include "base/process/process.h" | 14 #include "base/process/process.h" |
14 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
15 #include "base/sync_socket.h" | 16 #include "base/sync_socket.h" |
16 #include "base/values.h" | 17 #include "base/values.h" |
17 #include "gpu/command_buffer/common/command_buffer.h" | 18 #include "gpu/command_buffer/common/command_buffer.h" |
18 #include "gpu/ipc/gpu_command_buffer_traits.h" | 19 #include "gpu/ipc/gpu_command_buffer_traits.h" |
19 #include "ipc/ipc_channel_handle.h" | 20 #include "ipc/ipc_channel_handle.h" |
20 #include "ipc/ipc_message_macros.h" | 21 #include "ipc/ipc_message_macros.h" |
21 #include "ipc/ipc_message_utils.h" | 22 #include "ipc/ipc_message_utils.h" |
22 #include "ipc/ipc_platform_file.h" | 23 #include "ipc/ipc_platform_file.h" |
23 #include "ppapi/c/dev/pp_video_capture_dev.h" | 24 #include "ppapi/c/dev/pp_video_capture_dev.h" |
24 #include "ppapi/c/dev/pp_video_dev.h" | 25 #include "ppapi/c/dev/pp_video_dev.h" |
25 #include "ppapi/c/dev/ppb_truetype_font_dev.h" | 26 #include "ppapi/c/dev/ppb_truetype_font_dev.h" |
26 #include "ppapi/c/dev/ppb_url_util_dev.h" | 27 #include "ppapi/c/dev/ppb_url_util_dev.h" |
27 #include "ppapi/c/dev/ppp_printing_dev.h" | 28 #include "ppapi/c/dev/ppp_printing_dev.h" |
28 #include "ppapi/c/pp_bool.h" | 29 #include "ppapi/c/pp_bool.h" |
29 #include "ppapi/c/pp_file_info.h" | 30 #include "ppapi/c/pp_file_info.h" |
30 #include "ppapi/c/pp_instance.h" | 31 #include "ppapi/c/pp_instance.h" |
31 #include "ppapi/c/pp_module.h" | 32 #include "ppapi/c/pp_module.h" |
32 #include "ppapi/c/pp_point.h" | 33 #include "ppapi/c/pp_point.h" |
33 #include "ppapi/c/pp_rect.h" | 34 #include "ppapi/c/pp_rect.h" |
34 #include "ppapi/c/pp_resource.h" | 35 #include "ppapi/c/pp_resource.h" |
35 #include "ppapi/c/pp_size.h" | 36 #include "ppapi/c/pp_size.h" |
36 #include "ppapi/c/pp_time.h" | 37 #include "ppapi/c/pp_time.h" |
37 #include "ppapi/c/ppb_audio_config.h" | 38 #include "ppapi/c/ppb_audio_config.h" |
39 #include "ppapi/c/ppb_compositor_layer.h" | |
38 #include "ppapi/c/ppb_image_data.h" | 40 #include "ppapi/c/ppb_image_data.h" |
39 #include "ppapi/c/ppb_tcp_socket.h" | 41 #include "ppapi/c/ppb_tcp_socket.h" |
40 #include "ppapi/c/ppb_text_input_controller.h" | 42 #include "ppapi/c/ppb_text_input_controller.h" |
41 #include "ppapi/c/ppb_udp_socket.h" | 43 #include "ppapi/c/ppb_udp_socket.h" |
42 #include "ppapi/c/private/pp_content_decryptor.h" | 44 #include "ppapi/c/private/pp_content_decryptor.h" |
43 #include "ppapi/c/private/pp_private_font_charset.h" | 45 #include "ppapi/c/private/pp_private_font_charset.h" |
44 #include "ppapi/c/private/ppb_flash.h" | 46 #include "ppapi/c/private/ppb_flash.h" |
45 #include "ppapi/c/private/ppb_host_resolver_private.h" | 47 #include "ppapi/c/private/ppb_host_resolver_private.h" |
46 #include "ppapi/c/private/ppb_isolated_file_system_private.h" | 48 #include "ppapi/c/private/ppb_isolated_file_system_private.h" |
47 #include "ppapi/c/private/ppb_net_address_private.h" | 49 #include "ppapi/c/private/ppb_net_address_private.h" |
48 #include "ppapi/c/private/ppb_pdf.h" | 50 #include "ppapi/c/private/ppb_pdf.h" |
49 #include "ppapi/c/private/ppb_talk_private.h" | 51 #include "ppapi/c/private/ppb_talk_private.h" |
50 #include "ppapi/c/private/ppp_flash_browser_operations.h" | 52 #include "ppapi/c/private/ppp_flash_browser_operations.h" |
51 #include "ppapi/proxy/host_resolver_private_resource.h" | 53 #include "ppapi/proxy/host_resolver_private_resource.h" |
52 #include "ppapi/proxy/network_list_resource.h" | 54 #include "ppapi/proxy/network_list_resource.h" |
53 #include "ppapi/proxy/ppapi_param_traits.h" | 55 #include "ppapi/proxy/ppapi_param_traits.h" |
54 #include "ppapi/proxy/ppapi_proxy_export.h" | 56 #include "ppapi/proxy/ppapi_proxy_export.h" |
55 #include "ppapi/proxy/resource_message_params.h" | 57 #include "ppapi/proxy/resource_message_params.h" |
56 #include "ppapi/proxy/serialized_flash_menu.h" | 58 #include "ppapi/proxy/serialized_flash_menu.h" |
57 #include "ppapi/proxy/serialized_handle.h" | 59 #include "ppapi/proxy/serialized_handle.h" |
58 #include "ppapi/proxy/serialized_structs.h" | 60 #include "ppapi/proxy/serialized_structs.h" |
59 #include "ppapi/proxy/serialized_var.h" | 61 #include "ppapi/proxy/serialized_var.h" |
62 #include "ppapi/shared_impl/compositor_layer.h" | |
60 #include "ppapi/shared_impl/dir_contents.h" | 63 #include "ppapi/shared_impl/dir_contents.h" |
61 #include "ppapi/shared_impl/file_growth.h" | 64 #include "ppapi/shared_impl/file_growth.h" |
62 #include "ppapi/shared_impl/file_path.h" | 65 #include "ppapi/shared_impl/file_path.h" |
63 #include "ppapi/shared_impl/file_ref_create_info.h" | 66 #include "ppapi/shared_impl/file_ref_create_info.h" |
64 #include "ppapi/shared_impl/media_stream_video_track_shared.h" | 67 #include "ppapi/shared_impl/media_stream_video_track_shared.h" |
65 #include "ppapi/shared_impl/ppapi_nacl_plugin_args.h" | 68 #include "ppapi/shared_impl/ppapi_nacl_plugin_args.h" |
66 #include "ppapi/shared_impl/ppapi_preferences.h" | 69 #include "ppapi/shared_impl/ppapi_preferences.h" |
67 #include "ppapi/shared_impl/ppb_device_ref_shared.h" | 70 #include "ppapi/shared_impl/ppb_device_ref_shared.h" |
68 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 71 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
69 #include "ppapi/shared_impl/ppb_tcp_socket_shared.h" | 72 #include "ppapi/shared_impl/ppb_tcp_socket_shared.h" |
70 #include "ppapi/shared_impl/ppb_view_shared.h" | 73 #include "ppapi/shared_impl/ppb_view_shared.h" |
71 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" | 74 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" |
72 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" | 75 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" |
73 #include "ppapi/shared_impl/socket_option_data.h" | 76 #include "ppapi/shared_impl/socket_option_data.h" |
74 #include "ppapi/shared_impl/url_request_info_data.h" | 77 #include "ppapi/shared_impl/url_request_info_data.h" |
75 #include "ppapi/shared_impl/url_response_info_data.h" | 78 #include "ppapi/shared_impl/url_response_info_data.h" |
76 | 79 |
77 #undef IPC_MESSAGE_EXPORT | 80 #undef IPC_MESSAGE_EXPORT |
78 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT | 81 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT |
79 | 82 |
80 #define IPC_MESSAGE_START PpapiMsgStart | 83 #define IPC_MESSAGE_START PpapiMsgStart |
81 | 84 |
82 IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion, | 85 IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion, |
83 ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE) | 86 ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE) |
87 IPC_ENUM_TRAITS_MAX_VALUE(ppapi::CompositorLayer::Type, | |
88 ppapi::CompositorLayer::TYPE_LAST) | |
84 IPC_ENUM_TRAITS(PP_AudioSampleRate) | 89 IPC_ENUM_TRAITS(PP_AudioSampleRate) |
90 IPC_ENUM_TRAITS_MAX_VALUE(PP_BlendMode, PP_BLENDMODE_LAST) | |
85 IPC_ENUM_TRAITS(PP_DeviceType_Dev) | 91 IPC_ENUM_TRAITS(PP_DeviceType_Dev) |
86 IPC_ENUM_TRAITS(PP_DecryptorStreamType) | 92 IPC_ENUM_TRAITS(PP_DecryptorStreamType) |
87 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileSystemType, PP_FILESYSTEMTYPE_ISOLATED) | 93 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileSystemType, PP_FILESYSTEMTYPE_ISOLATED) |
88 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileType, PP_FILETYPE_OTHER) | 94 IPC_ENUM_TRAITS_MAX_VALUE(PP_FileType, PP_FILETYPE_OTHER) |
89 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) | 95 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) |
90 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) | 96 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) |
91 IPC_ENUM_TRAITS(PP_FlashSetting) | 97 IPC_ENUM_TRAITS(PP_FlashSetting) |
92 IPC_ENUM_TRAITS(PP_ImageDataFormat) | 98 IPC_ENUM_TRAITS(PP_ImageDataFormat) |
93 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) | 99 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) |
94 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... | |
129 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) | 135 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) |
130 IPC_STRUCT_TRAITS_MEMBER(x) | 136 IPC_STRUCT_TRAITS_MEMBER(x) |
131 IPC_STRUCT_TRAITS_MEMBER(y) | 137 IPC_STRUCT_TRAITS_MEMBER(y) |
132 IPC_STRUCT_TRAITS_END() | 138 IPC_STRUCT_TRAITS_END() |
133 | 139 |
134 IPC_STRUCT_TRAITS_BEGIN(PP_Size) | 140 IPC_STRUCT_TRAITS_BEGIN(PP_Size) |
135 IPC_STRUCT_TRAITS_MEMBER(height) | 141 IPC_STRUCT_TRAITS_MEMBER(height) |
136 IPC_STRUCT_TRAITS_MEMBER(width) | 142 IPC_STRUCT_TRAITS_MEMBER(width) |
137 IPC_STRUCT_TRAITS_END() | 143 IPC_STRUCT_TRAITS_END() |
138 | 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 | |
139 IPC_STRUCT_TRAITS_BEGIN(PP_Rect) | 150 IPC_STRUCT_TRAITS_BEGIN(PP_Rect) |
140 IPC_STRUCT_TRAITS_MEMBER(point) | 151 IPC_STRUCT_TRAITS_MEMBER(point) |
141 IPC_STRUCT_TRAITS_MEMBER(size) | 152 IPC_STRUCT_TRAITS_MEMBER(size) |
142 IPC_STRUCT_TRAITS_END() | 153 IPC_STRUCT_TRAITS_END() |
143 | 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 | |
144 IPC_STRUCT_TRAITS_BEGIN(PP_ImageDataDesc) | 160 IPC_STRUCT_TRAITS_BEGIN(PP_ImageDataDesc) |
145 IPC_STRUCT_TRAITS_MEMBER(format) | 161 IPC_STRUCT_TRAITS_MEMBER(format) |
146 IPC_STRUCT_TRAITS_MEMBER(size) | 162 IPC_STRUCT_TRAITS_MEMBER(size) |
147 IPC_STRUCT_TRAITS_MEMBER(stride) | 163 IPC_STRUCT_TRAITS_MEMBER(stride) |
148 IPC_STRUCT_TRAITS_END() | 164 IPC_STRUCT_TRAITS_END() |
149 | 165 |
150 IPC_STRUCT_TRAITS_BEGIN(PP_PictureBuffer_Dev) | 166 IPC_STRUCT_TRAITS_BEGIN(PP_PictureBuffer_Dev) |
151 IPC_STRUCT_TRAITS_MEMBER(id) | 167 IPC_STRUCT_TRAITS_MEMBER(id) |
152 IPC_STRUCT_TRAITS_MEMBER(size) | 168 IPC_STRUCT_TRAITS_MEMBER(size) |
153 IPC_STRUCT_TRAITS_MEMBER(texture_id) | 169 IPC_STRUCT_TRAITS_MEMBER(texture_id) |
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1265 int32_t /* min */, | 1281 int32_t /* min */, |
1266 int32_t /* max */, | 1282 int32_t /* max */, |
1267 uint32_t /* bucket_count */) | 1283 uint32_t /* bucket_count */) |
1268 IPC_MESSAGE_CONTROL3(PpapiHostMsg_UMA_HistogramEnumeration, | 1284 IPC_MESSAGE_CONTROL3(PpapiHostMsg_UMA_HistogramEnumeration, |
1269 std::string /* name */, | 1285 std::string /* name */, |
1270 int32_t /* sample */, | 1286 int32_t /* sample */, |
1271 int32_t /* boundary_value */) | 1287 int32_t /* boundary_value */) |
1272 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UMA_IsCrashReportingEnabled); | 1288 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UMA_IsCrashReportingEnabled); |
1273 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UMA_IsCrashReportingEnabledReply); | 1289 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UMA_IsCrashReportingEnabledReply); |
1274 | 1290 |
1291 // Compositor | |
1292 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Compositor_Create) | |
1293 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Compositor_CommitLayers, | |
1294 std::vector<ppapi::CompositorLayer> /* layers */, | |
1295 bool /* changed */) | |
1296 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Compositor_CommitLayersReply) | |
1297 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_Compositor_ReleaseResource, | |
1298 int32_t /* id */, | |
1299 uint32_t /* sync_point */, | |
1300 bool /* is_lost */) | |
1301 | |
1275 // File chooser. | 1302 // File chooser. |
1276 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) | 1303 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) |
1277 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, | 1304 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, |
1278 bool /* save_as */, | 1305 bool /* save_as */, |
1279 bool /* open_multiple */, | 1306 bool /* open_multiple */, |
1280 std::string /* suggested_file_name */, | 1307 std::string /* suggested_file_name */, |
1281 std::vector<std::string> /* accept_mime_types */) | 1308 std::vector<std::string> /* accept_mime_types */) |
1282 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, | 1309 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, |
1283 std::vector<ppapi::FileRefCreateInfo> /* files */) | 1310 std::vector<ppapi::FileRefCreateInfo> /* files */) |
1284 | 1311 |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2113 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, | 2140 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, |
2114 PP_TalkPermission /* permission */) | 2141 PP_TalkPermission /* permission */) |
2115 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) | 2142 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) |
2116 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) | 2143 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) |
2117 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) | 2144 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) |
2118 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) | 2145 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) |
2119 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) | 2146 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) |
2120 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) | 2147 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) |
2121 | 2148 |
2122 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 2149 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |