OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_P2P_BASE_UDPTRANSPORT_H_ | 11 #ifndef WEBRTC_P2P_BASE_UDPTRANSPORT_H_ |
12 #define WEBRTC_P2P_BASE_UDPTRANSPORT_H_ | 12 #define WEBRTC_P2P_BASE_UDPTRANSPORT_H_ |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 #include <string> | 15 #include <string> |
16 | 16 |
17 #include "webrtc/api/ortc/udptransportinterface.h" | 17 #include "webrtc/api/ortc/udptransportinterface.h" |
| 18 #include "webrtc/base/asyncpacketsocket.h" // For PacketOptions. |
| 19 #include "webrtc/base/optional.h" |
| 20 #include "webrtc/base/thread_checker.h" |
18 #include "webrtc/p2p/base/packettransportinternal.h" | 21 #include "webrtc/p2p/base/packettransportinternal.h" |
19 #include "webrtc/rtc_base/asyncpacketsocket.h" // For PacketOptions. | |
20 #include "webrtc/rtc_base/optional.h" | |
21 #include "webrtc/rtc_base/thread_checker.h" | |
22 | 22 |
23 namespace rtc { | 23 namespace rtc { |
24 class AsyncPacketSocket; | 24 class AsyncPacketSocket; |
25 struct PacketTime; | 25 struct PacketTime; |
26 struct SentPacket; | 26 struct SentPacket; |
27 class SocketAddress; | 27 class SocketAddress; |
28 } | 28 } |
29 | 29 |
30 namespace cricket { | 30 namespace cricket { |
31 | 31 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 int send_error_ = 0; | 80 int send_error_ = 0; |
81 std::unique_ptr<rtc::AsyncPacketSocket> socket_; | 81 std::unique_ptr<rtc::AsyncPacketSocket> socket_; |
82 // If not set, will be an "nil" address ("IsNil" returns true). | 82 // If not set, will be an "nil" address ("IsNil" returns true). |
83 rtc::SocketAddress remote_address_; | 83 rtc::SocketAddress remote_address_; |
84 rtc::ThreadChecker network_thread_checker_; | 84 rtc::ThreadChecker network_thread_checker_; |
85 }; | 85 }; |
86 | 86 |
87 } // namespace cricket | 87 } // namespace cricket |
88 | 88 |
89 #endif // WEBRTC_P2P_BASE_UDPTRANSPORT_H_ | 89 #endif // WEBRTC_P2P_BASE_UDPTRANSPORT_H_ |
OLD | NEW |