| 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 // IPC messages for the P2P Transport API. | 5 // IPC messages for the P2P Transport API. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/common/p2p_socket_type.h" | 10 #include "content/common/p2p_socket_type.h" |
| 11 #include "ipc/ipc_message_macros.h" | 11 #include "ipc/ipc_message_macros.h" |
| 12 #include "net/base/net_util.h" | 12 #include "net/base/net_util.h" |
| 13 #include "third_party/libjingle/source/talk/base/asyncpacketsocket.h" | 13 #include "third_party/libjingle/source/talk/base/asyncpacketsocket.h" |
| 14 | 14 |
| 15 #undef IPC_MESSAGE_EXPORT | 15 #undef IPC_MESSAGE_EXPORT |
| 16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 17 #define IPC_MESSAGE_START P2PMsgStart | 17 #define IPC_MESSAGE_START P2PMsgStart |
| 18 | 18 |
| 19 IPC_ENUM_TRAITS_MAX_VALUE(content::P2PSocketType, | 19 IPC_ENUM_TRAITS_MAX_VALUE(content::P2PSocketType, |
| 20 content::P2P_SOCKET_TYPE_LAST) | 20 content::P2P_SOCKET_TYPE_LAST) |
| 21 IPC_ENUM_TRAITS_MAX_VALUE(content::P2PSocketOption, | 21 IPC_ENUM_TRAITS_MAX_VALUE(content::P2PSocketOption, |
| 22 content::P2P_SOCKET_OPT_MAX - 1) | 22 content::P2P_SOCKET_OPT_MAX - 1) |
| 23 IPC_ENUM_TRAITS_MIN_MAX_VALUE(talk_base::DiffServCodePoint, | 23 IPC_ENUM_TRAITS_MIN_MAX_VALUE(talk_base::DiffServCodePoint, |
| 24 talk_base::DSCP_NO_CHANGE, | 24 talk_base::DSCP_NO_CHANGE, |
| 25 talk_base::DSCP_CS7) | 25 talk_base::DSCP_CS7) |
| 26 IPC_ENUM_TRAITS_MIN_MAX_VALUE(net::NetworkChangeNotifier::ConnectionType, | |
| 27 net::NetworkChangeNotifier::CONNECTION_UNKNOWN, | |
| 28 net::NetworkChangeNotifier::CONNECTION_NONE) | |
| 29 | |
| 30 | 26 |
| 31 IPC_STRUCT_TRAITS_BEGIN(net::NetworkInterface) | 27 IPC_STRUCT_TRAITS_BEGIN(net::NetworkInterface) |
| 32 IPC_STRUCT_TRAITS_MEMBER(name) | 28 IPC_STRUCT_TRAITS_MEMBER(name) |
| 33 IPC_STRUCT_TRAITS_MEMBER(type) | 29 IPC_STRUCT_TRAITS_MEMBER(type) |
| 34 IPC_STRUCT_TRAITS_MEMBER(address) | 30 IPC_STRUCT_TRAITS_MEMBER(address) |
| 35 IPC_STRUCT_TRAITS_END() | 31 IPC_STRUCT_TRAITS_END() |
| 36 | 32 |
| 37 IPC_STRUCT_TRAITS_BEGIN(talk_base::PacketTimeUpdateParams) | 33 IPC_STRUCT_TRAITS_BEGIN(talk_base::PacketTimeUpdateParams) |
| 38 IPC_STRUCT_TRAITS_MEMBER(rtp_sendtime_extension_id) | 34 IPC_STRUCT_TRAITS_MEMBER(rtp_sendtime_extension_id) |
| 39 IPC_STRUCT_TRAITS_MEMBER(srtp_auth_key) | 35 IPC_STRUCT_TRAITS_MEMBER(srtp_auth_key) |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 talk_base::PacketOptions /* packet options */, | 106 talk_base::PacketOptions /* packet options */, |
| 111 uint64 /* packet_id */) | 107 uint64 /* packet_id */) |
| 112 | 108 |
| 113 IPC_MESSAGE_CONTROL1(P2PHostMsg_DestroySocket, | 109 IPC_MESSAGE_CONTROL1(P2PHostMsg_DestroySocket, |
| 114 int /* socket_id */) | 110 int /* socket_id */) |
| 115 | 111 |
| 116 IPC_MESSAGE_CONTROL3(P2PHostMsg_SetOption, | 112 IPC_MESSAGE_CONTROL3(P2PHostMsg_SetOption, |
| 117 int /* socket_id */, | 113 int /* socket_id */, |
| 118 content::P2PSocketOption /* socket option type */, | 114 content::P2PSocketOption /* socket option type */, |
| 119 int /* value */) | 115 int /* value */) |
| OLD | NEW |