| 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/network_interfaces.h" | 
| 13 #include "third_party/webrtc/base/asyncpacketsocket.h" | 13 #include "third_party/webrtc/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) | 
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 115                      rtc::PacketOptions /* packet options */, | 115                      rtc::PacketOptions /* packet options */, | 
| 116                      uint64 /* packet_id */) | 116                      uint64 /* packet_id */) | 
| 117 | 117 | 
| 118 IPC_MESSAGE_CONTROL1(P2PHostMsg_DestroySocket, | 118 IPC_MESSAGE_CONTROL1(P2PHostMsg_DestroySocket, | 
| 119                      int /* socket_id */) | 119                      int /* socket_id */) | 
| 120 | 120 | 
| 121 IPC_MESSAGE_CONTROL3(P2PHostMsg_SetOption, | 121 IPC_MESSAGE_CONTROL3(P2PHostMsg_SetOption, | 
| 122                      int /* socket_id */, | 122                      int /* socket_id */, | 
| 123                      content::P2PSocketOption /* socket option type */, | 123                      content::P2PSocketOption /* socket option type */, | 
| 124                      int /* value */) | 124                      int /* value */) | 
| OLD | NEW | 
|---|