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_ICETRANSPORTINTERNAL_H_ | 11 #ifndef WEBRTC_P2P_BASE_ICETRANSPORTINTERNAL_H_ |
12 #define WEBRTC_P2P_BASE_ICETRANSPORTINTERNAL_H_ | 12 #define WEBRTC_P2P_BASE_ICETRANSPORTINTERNAL_H_ |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 #include "webrtc/p2p/base/candidate.h" | 16 #include "webrtc/p2p/base/candidate.h" |
17 #include "webrtc/p2p/base/candidatepairinterface.h" | 17 #include "webrtc/p2p/base/candidatepairinterface.h" |
18 #include "webrtc/p2p/base/jseptransport.h" | 18 #include "webrtc/p2p/base/jseptransport.h" |
19 #include "webrtc/p2p/base/packettransportinterface.h" | 19 #include "webrtc/p2p/base/packettransportinterface.h" |
20 #include "webrtc/p2p/base/transportdescription.h" | 20 #include "webrtc/p2p/base/transportdescription.h" |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 class MetricsObserverInterface; | 23 class MetricsObserverInterface; |
24 } | 24 } |
25 | 25 |
26 namespace cricket { | 26 namespace cricket { |
27 | 27 |
| 28 class IceTransportInternal; |
| 29 typedef IceTransportInternal IceTransportInternal2; |
| 30 |
28 // TODO(zhihuang): replace it with PeerConnectionInterface::IceConnectionState. | 31 // TODO(zhihuang): replace it with PeerConnectionInterface::IceConnectionState. |
29 enum class IceTransportState { | 32 enum class IceTransportState { |
30 STATE_INIT, | 33 STATE_INIT, |
31 STATE_CONNECTING, // Will enter this state once a connection is created | 34 STATE_CONNECTING, // Will enter this state once a connection is created |
32 STATE_COMPLETED, | 35 STATE_COMPLETED, |
33 STATE_FAILED | 36 STATE_FAILED |
34 }; | 37 }; |
35 | 38 |
36 // TODO(zhihuang): Remove this once it's no longer used in | 39 // TODO(zhihuang): Remove this once it's no longer used in |
37 // remoting/protocol/libjingle_transport_factory.cc | 40 // remoting/protocol/libjingle_transport_factory.cc |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 138 |
136 // Debugging description of this transport. | 139 // Debugging description of this transport. |
137 const std::string debug_name() const override { | 140 const std::string debug_name() const override { |
138 return transport_name() + " " + std::to_string(component()); | 141 return transport_name() + " " + std::to_string(component()); |
139 } | 142 } |
140 }; | 143 }; |
141 | 144 |
142 } // namespace cricket | 145 } // namespace cricket |
143 | 146 |
144 #endif // WEBRTC_P2P_BASE_ICETRANSPORTINTERNAL_H_ | 147 #endif // WEBRTC_P2P_BASE_ICETRANSPORTINTERNAL_H_ |
OLD | NEW |