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 <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/process.h" | 11 #include "base/process.h" |
| 12 #include "base/shared_memory.h" | 12 #include "base/shared_memory.h" |
| 13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 14 #include "base/sync_socket.h" | 14 #include "base/sync_socket.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "gpu/command_buffer/common/command_buffer.h" | 16 #include "gpu/command_buffer/common/command_buffer.h" |
| 17 #include "gpu/ipc/gpu_command_buffer_traits.h" | 17 #include "gpu/ipc/gpu_command_buffer_traits.h" |
| 18 #include "ipc/ipc_channel_handle.h" | 18 #include "ipc/ipc_channel_handle.h" |
| 19 #include "ipc/ipc_message_macros.h" | 19 #include "ipc/ipc_message_macros.h" |
| 20 #include "ipc/ipc_message_utils.h" | 20 #include "ipc/ipc_message_utils.h" |
| 21 #include "ipc/ipc_platform_file.h" | 21 #include "ipc/ipc_platform_file.h" |
| 22 #include "ppapi/c/dev/pp_video_capture_dev.h" | 22 #include "ppapi/c/dev/pp_video_capture_dev.h" |
| 23 #include "ppapi/c/dev/pp_video_dev.h" | 23 #include "ppapi/c/dev/pp_video_dev.h" |
| 24 #include "ppapi/c/dev/ppb_text_input_dev.h" | 24 #include "ppapi/c/dev/ppb_text_input_dev.h" |
| 25 #include "ppapi/c/dev/ppb_truetype_font_dev.h" | 25 #include "ppapi/c/dev/ppb_truetype_font_dev.h" |
| 26 #include "ppapi/c/dev/ppb_udp_socket_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" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 94 IPC_ENUM_TRAITS(PP_ResourceString) | 95 IPC_ENUM_TRAITS(PP_ResourceString) |
| 95 IPC_ENUM_TRAITS_MAX_VALUE(PP_TalkEvent, PP_TALKEVENT_NUM_EVENTS - 1) | 96 IPC_ENUM_TRAITS_MAX_VALUE(PP_TalkEvent, PP_TALKEVENT_NUM_EVENTS - 1) |
| 96 IPC_ENUM_TRAITS_MAX_VALUE(PP_TalkPermission, | 97 IPC_ENUM_TRAITS_MAX_VALUE(PP_TalkPermission, |
| 97 PP_TALKPERMISSION_NUM_PERMISSIONS - 1) | 98 PP_TALKPERMISSION_NUM_PERMISSIONS - 1) |
| 98 IPC_ENUM_TRAITS(PP_TextInput_Type) | 99 IPC_ENUM_TRAITS(PP_TextInput_Type) |
| 99 IPC_ENUM_TRAITS(PP_TrueTypeFontFamily_Dev) | 100 IPC_ENUM_TRAITS(PP_TrueTypeFontFamily_Dev) |
| 100 IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev) | 101 IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev) |
| 101 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev) | 102 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev) |
| 102 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) | 103 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) |
| 103 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev) | 104 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev) |
| 105 IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option_Dev, | |
| 106 PP_UDPSOCKET_OPTION_RECV_BUFFER_SIZE) | |
| 104 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) | 107 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) |
| 105 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) | 108 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) |
| 106 | 109 |
| 107 IPC_STRUCT_TRAITS_BEGIN(PP_Point) | 110 IPC_STRUCT_TRAITS_BEGIN(PP_Point) |
| 108 IPC_STRUCT_TRAITS_MEMBER(x) | 111 IPC_STRUCT_TRAITS_MEMBER(x) |
| 109 IPC_STRUCT_TRAITS_MEMBER(y) | 112 IPC_STRUCT_TRAITS_MEMBER(y) |
| 110 IPC_STRUCT_TRAITS_END() | 113 IPC_STRUCT_TRAITS_END() |
| 111 | 114 |
| 112 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) | 115 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) |
| 113 IPC_STRUCT_TRAITS_MEMBER(x) | 116 IPC_STRUCT_TRAITS_MEMBER(x) |
| (...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1195 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Write, | 1198 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Write, |
| 1196 uint32 /* socket_id */, | 1199 uint32 /* socket_id */, |
| 1197 std::string /* data */) | 1200 std::string /* data */) |
| 1198 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPSocket_Disconnect, | 1201 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPSocket_Disconnect, |
| 1199 uint32 /* socket_id */) | 1202 uint32 /* socket_id */) |
| 1200 IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBTCPSocket_SetBoolOption, | 1203 IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBTCPSocket_SetBoolOption, |
| 1201 uint32 /* socket_id */, | 1204 uint32 /* socket_id */, |
| 1202 uint32 /* name */, | 1205 uint32 /* name */, |
| 1203 bool /* value */) | 1206 bool /* value */) |
| 1204 | 1207 |
| 1205 // UDPSocketPrivate. | |
| 1206 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocketPrivate_Create) | |
| 1207 IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocketPrivate_SetBoolSocketFeature, | |
| 1208 int32_t /* name */, | |
| 1209 bool /* value */) | |
| 1210 IPC_MESSAGE_CONTROL1(PpapiHostMsg_UDPSocketPrivate_Bind, | |
| 1211 PP_NetAddress_Private /* net_addr */) | |
| 1212 IPC_MESSAGE_CONTROL1(PpapiHostMsg_UDPSocketPrivate_RecvFrom, | |
| 1213 int32_t /* num_bytes */) | |
| 1214 IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocketPrivate_SendTo, | |
| 1215 std::string /* data */, | |
| 1216 PP_NetAddress_Private /* net_addr */) | |
| 1217 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocketPrivate_Close) | |
| 1218 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_UDPSocketPrivate_BindReply, | |
| 1219 PP_NetAddress_Private /* bound_addr */) | |
| 1220 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_UDPSocketPrivate_RecvFromReply, | |
| 1221 std::string /* data */, | |
| 1222 PP_NetAddress_Private /* remote_addr */) | |
| 1223 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_UDPSocketPrivate_SendToReply, | |
| 1224 int32_t /* bytes_written */) | |
| 1225 | |
| 1226 // PPB_TCPServerSocket_Private. | 1208 // PPB_TCPServerSocket_Private. |
| 1227 IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBTCPServerSocket_Listen, | 1209 IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBTCPServerSocket_Listen, |
| 1228 int32 /* routing_id */, | 1210 int32 /* routing_id */, |
| 1229 uint32 /* plugin_dispatcher_id */, | 1211 uint32 /* plugin_dispatcher_id */, |
| 1230 PP_Resource /* socket_resource */, | 1212 PP_Resource /* socket_resource */, |
| 1231 PP_NetAddress_Private /* addr */, | 1213 PP_NetAddress_Private /* addr */, |
| 1232 int32_t /* backlog */) | 1214 int32_t /* backlog */) |
| 1233 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPServerSocket_Accept, | 1215 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPServerSocket_Accept, |
| 1234 int32 /* tcp_client_socket_routing_id */, | 1216 int32 /* tcp_client_socket_routing_id */, |
| 1235 uint32 /* server_socket_id */) | 1217 uint32 /* server_socket_id */) |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1505 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_HostResolverPrivate_ResolveReply, | 1487 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_HostResolverPrivate_ResolveReply, |
| 1506 std::string /* canonical_name */, | 1488 std::string /* canonical_name */, |
| 1507 std::vector<PP_NetAddress_Private> /* net_address_list */) | 1489 std::vector<PP_NetAddress_Private> /* net_address_list */) |
| 1508 | 1490 |
| 1509 // Printing. | 1491 // Printing. |
| 1510 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) | 1492 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) |
| 1511 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) | 1493 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) |
| 1512 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, | 1494 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, |
| 1513 PP_PrintSettings_Dev /* print_settings */) | 1495 PP_PrintSettings_Dev /* print_settings */) |
| 1514 | 1496 |
| 1497 // UDP Socket ------------------------------------------------------------------ | |
| 1498 // Creates a PPB_UDPSocket resource. | |
| 1499 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Create) | |
| 1500 | |
| 1501 // Creates a PPB_UDPSocket_Private resource. | |
| 1502 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_CreatePrivate) | |
| 1503 | |
| 1504 // |list_value| constains only one element, which is the option value to set. | |
| 1505 // base::Value cannot be used because it doesn't have a default constructor. | |
| 1506 IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocket_SetOption, | |
| 1507 PP_UDPSocket_Option_Dev /* name */, | |
| 1508 base::ListValue /* list_value */) | |
| 1509 IPC_MESSAGE_CONTROL1(PpapiHostMsg_UDPSocket_Bind, | |
| 1510 PP_NetAddress_Private /* net_addr */) | |
| 1511 IPC_MESSAGE_CONTROL1(PpapiHostMsg_UDPSocket_RecvFrom, | |
| 1512 int32_t /* num_bytes */) | |
| 1513 IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocket_SendTo, | |
| 1514 std::string /* data */, | |
| 1515 PP_NetAddress_Private /* net_addr */) | |
| 1516 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Close) | |
| 1517 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UDPSocket_SetOptionReply) | |
|
bbudge
2013/06/17 11:58:47
I see that you are preserving the original order o
yzshen1
2013/06/17 21:33:38
Sounds good. Done.
On 2013/06/17 11:58:47, bbudge
| |
| 1518 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_UDPSocket_BindReply, | |
| 1519 PP_NetAddress_Private /* bound_addr */) | |
| 1520 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_UDPSocket_RecvFromReply, | |
| 1521 std::string /* data */, | |
| 1522 PP_NetAddress_Private /* remote_addr */) | |
| 1523 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_UDPSocket_SendToReply, | |
| 1524 int32_t /* bytes_written */) | |
| 1525 | |
| 1515 // URLLoader ------------------------------------------------------------------ | 1526 // URLLoader ------------------------------------------------------------------ |
| 1516 | 1527 |
| 1517 IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_Create) | 1528 IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_Create) |
| 1518 | 1529 |
| 1519 // These messages correspond to PPAPI calls and all should get a | 1530 // These messages correspond to PPAPI calls and all should get a |
| 1520 // CallbackComplete message. | 1531 // CallbackComplete message. |
| 1521 IPC_MESSAGE_CONTROL1(PpapiHostMsg_URLLoader_Open, | 1532 IPC_MESSAGE_CONTROL1(PpapiHostMsg_URLLoader_Open, |
| 1522 ppapi::URLRequestInfoData /* request_data */) | 1533 ppapi::URLRequestInfoData /* request_data */) |
| 1523 | 1534 |
| 1524 // The plugin can tell the host to defer a load to hold off on sending more | 1535 // The plugin can tell the host to defer a load to hold off on sending more |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1936 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoSource_OpenReply) | 1947 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoSource_OpenReply) |
| 1937 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_GetFrame) | 1948 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_GetFrame) |
| 1938 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_VideoSource_GetFrameReply, | 1949 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_VideoSource_GetFrameReply, |
| 1939 ppapi::HostResource /* resource_id */, | 1950 ppapi::HostResource /* resource_id */, |
| 1940 PP_ImageDataDesc /* image_data_desc */, | 1951 PP_ImageDataDesc /* image_data_desc */, |
| 1941 int /* fd */, | 1952 int /* fd */, |
| 1942 PP_TimeTicks /* timestamp */) | 1953 PP_TimeTicks /* timestamp */) |
| 1943 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Close) | 1954 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Close) |
| 1944 | 1955 |
| 1945 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1956 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
| OLD | NEW |