| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2015 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 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // Creates a channel if it doesn't exist. Otherwise, increments a reference | 82 // Creates a channel if it doesn't exist. Otherwise, increments a reference |
| 83 // count and returns an existing channel. | 83 // count and returns an existing channel. |
| 84 virtual TransportChannel* CreateTransportChannel_w( | 84 virtual TransportChannel* CreateTransportChannel_w( |
| 85 const std::string& transport_name, | 85 const std::string& transport_name, |
| 86 int component); | 86 int component); |
| 87 | 87 |
| 88 // Decrements a channel's reference count, and destroys the channel if | 88 // Decrements a channel's reference count, and destroys the channel if |
| 89 // nothing is referencing it. | 89 // nothing is referencing it. |
| 90 virtual void DestroyTransportChannel_w(const std::string& transport_name, | 90 virtual void DestroyTransportChannel_w(const std::string& transport_name, |
| 91 int component); | 91 int component); |
| 92 #ifdef HAVE_QUIC |
| 93 // Activates QUIC usage. |
| 94 void set_quic() { quic_ = true; } |
| 95 bool quic() const { return quic_; } |
| 96 #endif // HAVE_QUIC |
| 92 | 97 |
| 93 // All of these signals are fired on the signalling thread. | 98 // All of these signals are fired on the signalling thread. |
| 94 | 99 |
| 95 // If any transport failed => failed, | 100 // If any transport failed => failed, |
| 96 // Else if all completed => completed, | 101 // Else if all completed => completed, |
| 97 // Else if all connected => connected, | 102 // Else if all connected => connected, |
| 98 // Else => connecting | 103 // Else => connecting |
| 99 sigslot::signal1<IceConnectionState> SignalConnectionState; | 104 sigslot::signal1<IceConnectionState> SignalConnectionState; |
| 100 | 105 |
| 101 // Receiving if any transport is receiving | 106 // Receiving if any transport is receiving |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 IceGatheringState gathering_state_ = kIceGatheringNew; | 219 IceGatheringState gathering_state_ = kIceGatheringNew; |
| 215 | 220 |
| 216 // TODO(deadbeef): Move the fields below down to the transports themselves | 221 // TODO(deadbeef): Move the fields below down to the transports themselves |
| 217 IceConfig ice_config_; | 222 IceConfig ice_config_; |
| 218 IceRole ice_role_ = ICEROLE_CONTROLLING; | 223 IceRole ice_role_ = ICEROLE_CONTROLLING; |
| 219 // Flag which will be set to true after the first role switch | 224 // Flag which will be set to true after the first role switch |
| 220 bool ice_role_switch_ = false; | 225 bool ice_role_switch_ = false; |
| 221 uint64_t ice_tiebreaker_ = rtc::CreateRandomId64(); | 226 uint64_t ice_tiebreaker_ = rtc::CreateRandomId64(); |
| 222 rtc::scoped_refptr<rtc::RTCCertificate> certificate_; | 227 rtc::scoped_refptr<rtc::RTCCertificate> certificate_; |
| 223 rtc::AsyncInvoker invoker_; | 228 rtc::AsyncInvoker invoker_; |
| 229 |
| 230 #ifdef HAVE_QUIC |
| 231 // True if QUIC is used instead of DTLS. |
| 232 bool quic_ = false; |
| 233 #endif // HAVE_QUIC |
| 224 }; | 234 }; |
| 225 | 235 |
| 226 } // namespace cricket | 236 } // namespace cricket |
| 227 | 237 |
| 228 #endif // WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_ | 238 #endif // WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_ |
| OLD | NEW |