| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 rtc::Thread* thread() { return worker_thread_; } | 196 rtc::Thread* thread() { return worker_thread_; } |
| 197 bool IsGettingPorts() { return allocator_session()->IsGettingPorts(); } | 197 bool IsGettingPorts() { return allocator_session()->IsGettingPorts(); } |
| 198 | 198 |
| 199 // A transport channel is weak if the current best connection is either | 199 // A transport channel is weak if the current best connection is either |
| 200 // not receiving or not writable, or if there is no best connection at all. | 200 // not receiving or not writable, or if there is no best connection at all. |
| 201 bool weak() const; | 201 bool weak() const; |
| 202 void UpdateConnectionStates(); | 202 void UpdateConnectionStates(); |
| 203 void RequestSort(); | 203 void RequestSort(); |
| 204 void SortConnections(); | 204 void SortConnections(); |
| 205 void SwitchBestConnectionTo(Connection* conn); | 205 void SwitchBestConnectionTo(Connection* conn); |
| 206 bool NetworkChanged(const Connection* old_conn, |
| 207 const Connection* new_conn) const; |
| 206 void UpdateState(); | 208 void UpdateState(); |
| 207 void HandleAllTimedOut(); | 209 void HandleAllTimedOut(); |
| 208 void MaybeStopPortAllocatorSessions(); | 210 void MaybeStopPortAllocatorSessions(); |
| 209 TransportChannelState ComputeState() const; | 211 TransportChannelState ComputeState() const; |
| 210 | 212 |
| 211 Connection* GetBestConnectionOnNetwork(rtc::Network* network) const; | 213 Connection* GetBestConnectionOnNetwork(rtc::Network* network) const; |
| 212 bool CreateConnections(const Candidate& remote_candidate, | 214 bool CreateConnections(const Candidate& remote_candidate, |
| 213 PortInterface* origin_port); | 215 PortInterface* origin_port); |
| 214 bool CreateConnection(PortInterface* port, | 216 bool CreateConnection(PortInterface* port, |
| 215 const Candidate& remote_candidate, | 217 const Candidate& remote_candidate, |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 int weak_ping_interval_ = WEAK_PING_INTERVAL; | 327 int weak_ping_interval_ = WEAK_PING_INTERVAL; |
| 326 TransportChannelState state_ = TransportChannelState::STATE_INIT; | 328 TransportChannelState state_ = TransportChannelState::STATE_INIT; |
| 327 IceConfig config_; | 329 IceConfig config_; |
| 328 | 330 |
| 329 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); | 331 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
| 330 }; | 332 }; |
| 331 | 333 |
| 332 } // namespace cricket | 334 } // namespace cricket |
| 333 | 335 |
| 334 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ | 336 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ |
| OLD | NEW |