| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 12 #include "content/common/p2p_socket_type.h" | 12 #include "content/common/p2p_socket_type.h" |
| 13 #include "ipc/ipc_message_macros.h" | 13 #include "ipc/ipc_message_macros.h" |
| 14 #include "net/base/ip_address.h" |
| 14 #include "net/base/network_interfaces.h" | 15 #include "net/base/network_interfaces.h" |
| 15 #include "third_party/webrtc/base/asyncpacketsocket.h" | 16 #include "third_party/webrtc/base/asyncpacketsocket.h" |
| 16 | 17 |
| 17 #undef IPC_MESSAGE_EXPORT | 18 #undef IPC_MESSAGE_EXPORT |
| 18 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 19 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 19 #define IPC_MESSAGE_START P2PMsgStart | 20 #define IPC_MESSAGE_START P2PMsgStart |
| 20 | 21 |
| 21 IPC_ENUM_TRAITS_MAX_VALUE(content::P2PSocketType, | 22 IPC_ENUM_TRAITS_MAX_VALUE(content::P2PSocketType, |
| 22 content::P2P_SOCKET_TYPE_LAST) | 23 content::P2P_SOCKET_TYPE_LAST) |
| 23 IPC_ENUM_TRAITS_MAX_VALUE(content::P2PSocketOption, | 24 IPC_ENUM_TRAITS_MAX_VALUE(content::P2PSocketOption, |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 rtc::PacketOptions /* packet options */, | 123 rtc::PacketOptions /* packet options */, |
| 123 uint64_t /* packet_id */) | 124 uint64_t /* packet_id */) |
| 124 | 125 |
| 125 IPC_MESSAGE_CONTROL1(P2PHostMsg_DestroySocket, | 126 IPC_MESSAGE_CONTROL1(P2PHostMsg_DestroySocket, |
| 126 int /* socket_id */) | 127 int /* socket_id */) |
| 127 | 128 |
| 128 IPC_MESSAGE_CONTROL3(P2PHostMsg_SetOption, | 129 IPC_MESSAGE_CONTROL3(P2PHostMsg_SetOption, |
| 129 int /* socket_id */, | 130 int /* socket_id */, |
| 130 content::P2PSocketOption /* socket option type */, | 131 content::P2PSocketOption /* socket option type */, |
| 131 int /* value */) | 132 int /* value */) |
| OLD | NEW |