Chromium Code Reviews| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 66 #include "ppapi/shared_impl/ppapi_preferences.h" | 66 #include "ppapi/shared_impl/ppapi_preferences.h" |
| 67 #include "ppapi/shared_impl/ppb_device_ref_shared.h" | 67 #include "ppapi/shared_impl/ppb_device_ref_shared.h" |
| 68 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 68 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
| 69 #include "ppapi/shared_impl/ppb_tcp_socket_shared.h" | 69 #include "ppapi/shared_impl/ppb_tcp_socket_shared.h" |
| 70 #include "ppapi/shared_impl/ppb_view_shared.h" | 70 #include "ppapi/shared_impl/ppb_view_shared.h" |
| 71 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" | 71 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" |
| 72 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" | 72 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" |
| 73 #include "ppapi/shared_impl/socket_option_data.h" | 73 #include "ppapi/shared_impl/socket_option_data.h" |
| 74 #include "ppapi/shared_impl/url_request_info_data.h" | 74 #include "ppapi/shared_impl/url_request_info_data.h" |
| 75 #include "ppapi/shared_impl/url_response_info_data.h" | 75 #include "ppapi/shared_impl/url_response_info_data.h" |
| 76 #include "ui/events/latency_info.h" | |
| 77 | |
| 78 #if !defined(OS_NACL) | |
| 79 #include "content/common/content_param_traits_macros.h" | |
| 80 #endif | |
|
piman
2014/05/12 22:10:36
ppapi can't depend on content.
Yufeng Shen (Slow to review)
2014/05/13 00:16:15
I am not sure how to do this correctly.
so curren
| |
| 76 | 81 |
| 77 #undef IPC_MESSAGE_EXPORT | 82 #undef IPC_MESSAGE_EXPORT |
| 78 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT | 83 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT |
| 79 | 84 |
| 80 #define IPC_MESSAGE_START PpapiMsgStart | 85 #define IPC_MESSAGE_START PpapiMsgStart |
| 81 | 86 |
| 82 IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion, | 87 IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion, |
| 83 ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE) | 88 ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE) |
| 84 IPC_ENUM_TRAITS(PP_AudioSampleRate) | 89 IPC_ENUM_TRAITS(PP_AudioSampleRate) |
| 85 IPC_ENUM_TRAITS(PP_DeviceType_Dev) | 90 IPC_ENUM_TRAITS(PP_DeviceType_Dev) |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 114 IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev) | 119 IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev) |
| 115 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev) | 120 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev) |
| 116 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) | 121 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) |
| 117 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev) | 122 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev) |
| 118 IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option, | 123 IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option, |
| 119 PP_UDPSOCKET_OPTION_RECV_BUFFER_SIZE) | 124 PP_UDPSOCKET_OPTION_RECV_BUFFER_SIZE) |
| 120 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) | 125 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) |
| 121 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) | 126 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) |
| 122 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST) | 127 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST) |
| 123 | 128 |
| 129 // For nacl build, we pull the definition directly from | |
| 130 // "latency_info_param_traits_macros.h" instead of through | |
| 131 // "content/common/content_param_traits_macros.h" so we don't have to | |
| 132 // rely on a nacl content build. | |
| 133 #if defined(OS_NACL) | |
| 134 #include "ui/events/latency_info_param_traits_macros.h" | |
| 135 #endif | |
| 136 | |
| 124 IPC_STRUCT_TRAITS_BEGIN(PP_Point) | 137 IPC_STRUCT_TRAITS_BEGIN(PP_Point) |
| 125 IPC_STRUCT_TRAITS_MEMBER(x) | 138 IPC_STRUCT_TRAITS_MEMBER(x) |
| 126 IPC_STRUCT_TRAITS_MEMBER(y) | 139 IPC_STRUCT_TRAITS_MEMBER(y) |
| 127 IPC_STRUCT_TRAITS_END() | 140 IPC_STRUCT_TRAITS_END() |
| 128 | 141 |
| 129 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) | 142 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) |
| 130 IPC_STRUCT_TRAITS_MEMBER(x) | 143 IPC_STRUCT_TRAITS_MEMBER(x) |
| 131 IPC_STRUCT_TRAITS_MEMBER(y) | 144 IPC_STRUCT_TRAITS_MEMBER(y) |
| 132 IPC_STRUCT_TRAITS_END() | 145 IPC_STRUCT_TRAITS_END() |
| 133 | 146 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 293 IPC_STRUCT_TRAITS_MEMBER(key_code) | 306 IPC_STRUCT_TRAITS_MEMBER(key_code) |
| 294 IPC_STRUCT_TRAITS_MEMBER(code) | 307 IPC_STRUCT_TRAITS_MEMBER(code) |
| 295 IPC_STRUCT_TRAITS_MEMBER(character_text) | 308 IPC_STRUCT_TRAITS_MEMBER(character_text) |
| 296 IPC_STRUCT_TRAITS_MEMBER(composition_segment_offsets) | 309 IPC_STRUCT_TRAITS_MEMBER(composition_segment_offsets) |
| 297 IPC_STRUCT_TRAITS_MEMBER(composition_target_segment) | 310 IPC_STRUCT_TRAITS_MEMBER(composition_target_segment) |
| 298 IPC_STRUCT_TRAITS_MEMBER(composition_selection_start) | 311 IPC_STRUCT_TRAITS_MEMBER(composition_selection_start) |
| 299 IPC_STRUCT_TRAITS_MEMBER(composition_selection_end) | 312 IPC_STRUCT_TRAITS_MEMBER(composition_selection_end) |
| 300 IPC_STRUCT_TRAITS_MEMBER(touches) | 313 IPC_STRUCT_TRAITS_MEMBER(touches) |
| 301 IPC_STRUCT_TRAITS_MEMBER(changed_touches) | 314 IPC_STRUCT_TRAITS_MEMBER(changed_touches) |
| 302 IPC_STRUCT_TRAITS_MEMBER(target_touches) | 315 IPC_STRUCT_TRAITS_MEMBER(target_touches) |
| 316 IPC_STRUCT_TRAITS_MEMBER(latency_info) | |
| 303 IPC_STRUCT_TRAITS_END() | 317 IPC_STRUCT_TRAITS_END() |
| 304 | 318 |
| 305 IPC_STRUCT_TRAITS_BEGIN(ppapi::HostPortPair) | 319 IPC_STRUCT_TRAITS_BEGIN(ppapi::HostPortPair) |
| 306 IPC_STRUCT_TRAITS_MEMBER(host) | 320 IPC_STRUCT_TRAITS_MEMBER(host) |
| 307 IPC_STRUCT_TRAITS_MEMBER(port) | 321 IPC_STRUCT_TRAITS_MEMBER(port) |
| 308 IPC_STRUCT_TRAITS_END() | 322 IPC_STRUCT_TRAITS_END() |
| 309 | 323 |
| 310 IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData) | 324 IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData) |
| 311 IPC_STRUCT_TRAITS_MEMBER(url) | 325 IPC_STRUCT_TRAITS_MEMBER(url) |
| 312 IPC_STRUCT_TRAITS_MEMBER(method) | 326 IPC_STRUCT_TRAITS_MEMBER(method) |
| (...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 877 PP_Instance /* instance */, | 891 PP_Instance /* instance */, |
| 878 PP_Bool /* result */, | 892 PP_Bool /* result */, |
| 879 PP_Size /* size */) | 893 PP_Size /* size */) |
| 880 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_RequestInputEvents, | 894 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_RequestInputEvents, |
| 881 PP_Instance /* instance */, | 895 PP_Instance /* instance */, |
| 882 bool /* is_filtering */, | 896 bool /* is_filtering */, |
| 883 uint32_t /* event_classes */) | 897 uint32_t /* event_classes */) |
| 884 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_ClearInputEvents, | 898 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_ClearInputEvents, |
| 885 PP_Instance /* instance */, | 899 PP_Instance /* instance */, |
| 886 uint32_t /* event_classes */) | 900 uint32_t /* event_classes */) |
| 901 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_StartTrackingLatency, | |
| 902 PP_Instance /* instance */) | |
| 887 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PostMessage, | 903 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PostMessage, |
| 888 PP_Instance /* instance */, | 904 PP_Instance /* instance */, |
| 889 ppapi::proxy::SerializedVar /* message */) | 905 ppapi::proxy::SerializedVar /* message */) |
| 890 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_LockMouse, | 906 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_LockMouse, |
| 891 PP_Instance /* instance */) | 907 PP_Instance /* instance */) |
| 892 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_UnlockMouse, | 908 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_UnlockMouse, |
| 893 PP_Instance /* instance */) | 909 PP_Instance /* instance */) |
| 894 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_ResolveRelativeToDocument, | 910 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_ResolveRelativeToDocument, |
| 895 PP_Instance /* instance */, | 911 PP_Instance /* instance */, |
| 896 ppapi::proxy::SerializedVar /* relative */, | 912 ppapi::proxy::SerializedVar /* relative */, |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1411 IPC_MESSAGE_CONTROL3(PpapiHostMsg_Graphics2D_Scroll, | 1427 IPC_MESSAGE_CONTROL3(PpapiHostMsg_Graphics2D_Scroll, |
| 1412 bool /* clip_specified */, | 1428 bool /* clip_specified */, |
| 1413 PP_Rect /* clip */, | 1429 PP_Rect /* clip */, |
| 1414 PP_Point /* amount */) | 1430 PP_Point /* amount */) |
| 1415 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_ReplaceContents, | 1431 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_ReplaceContents, |
| 1416 ppapi::HostResource /* image_data */) | 1432 ppapi::HostResource /* image_data */) |
| 1417 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_SetScale, | 1433 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_SetScale, |
| 1418 float /* scale */) | 1434 float /* scale */) |
| 1419 | 1435 |
| 1420 // Graphics2D, plugin -> host -> plugin | 1436 // Graphics2D, plugin -> host -> plugin |
| 1421 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Graphics2D_Flush) | 1437 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_Flush, |
| 1438 std::vector<ui::LatencyInfo> /* latency_info */) | |
| 1422 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_FlushAck) | 1439 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_FlushAck) |
| 1423 | 1440 |
| 1424 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_ReadImageData, | 1441 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_ReadImageData, |
| 1425 PP_Resource /* image */, | 1442 PP_Resource /* image */, |
| 1426 PP_Point /* top_left */) | 1443 PP_Point /* top_left */) |
| 1427 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck) | 1444 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck) |
| 1428 | 1445 |
| 1429 // IsolatedFileSystem | 1446 // IsolatedFileSystem |
| 1430 IPC_MESSAGE_CONTROL0(PpapiHostMsg_IsolatedFileSystem_Create) | 1447 IPC_MESSAGE_CONTROL0(PpapiHostMsg_IsolatedFileSystem_Create) |
| 1431 IPC_MESSAGE_CONTROL1(PpapiHostMsg_IsolatedFileSystem_BrowserOpen, | 1448 IPC_MESSAGE_CONTROL1(PpapiHostMsg_IsolatedFileSystem_BrowserOpen, |
| (...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2113 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, | 2130 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, |
| 2114 PP_TalkPermission /* permission */) | 2131 PP_TalkPermission /* permission */) |
| 2115 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) | 2132 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) |
| 2116 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) | 2133 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) |
| 2117 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) | 2134 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) |
| 2118 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) | 2135 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) |
| 2119 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) | 2136 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) |
| 2120 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) | 2137 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) |
| 2121 | 2138 |
| 2122 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 2139 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
| OLD | NEW |