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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 | 241 |
242 bool PresumedWritable(const cricket::Connection* conn) const; | 242 bool PresumedWritable(const cricket::Connection* conn) const; |
243 | 243 |
244 void SortConnectionsAndUpdateState(); | 244 void SortConnectionsAndUpdateState(); |
245 void SwitchSelectedConnection(Connection* conn); | 245 void SwitchSelectedConnection(Connection* conn); |
246 void UpdateState(); | 246 void UpdateState(); |
247 void HandleAllTimedOut(); | 247 void HandleAllTimedOut(); |
248 void MaybeStopPortAllocatorSessions(); | 248 void MaybeStopPortAllocatorSessions(); |
249 TransportChannelState ComputeState() const; | 249 TransportChannelState ComputeState() const; |
250 | 250 |
| 251 Connection* GetBestConnectionOnNetwork(rtc::Network* network) const; |
251 bool CreateConnections(const Candidate& remote_candidate, | 252 bool CreateConnections(const Candidate& remote_candidate, |
252 PortInterface* origin_port); | 253 PortInterface* origin_port); |
253 bool CreateConnection(PortInterface* port, | 254 bool CreateConnection(PortInterface* port, |
254 const Candidate& remote_candidate, | 255 const Candidate& remote_candidate, |
255 PortInterface* origin_port); | 256 PortInterface* origin_port); |
256 bool FindConnection(cricket::Connection* connection) const; | 257 bool FindConnection(cricket::Connection* connection) const; |
257 | 258 |
258 uint32_t GetRemoteCandidateGeneration(const Candidate& candidate); | 259 uint32_t GetRemoteCandidateGeneration(const Candidate& candidate); |
259 bool IsDuplicateRemoteCandidate(const Candidate& candidate); | 260 bool IsDuplicateRemoteCandidate(const Candidate& candidate); |
260 void RememberRemoteCandidate(const Candidate& remote_candidate, | 261 void RememberRemoteCandidate(const Candidate& remote_candidate, |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 uint32_t nomination_ = 0; | 400 uint32_t nomination_ = 0; |
400 | 401 |
401 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; | 402 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; |
402 | 403 |
403 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); | 404 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
404 }; | 405 }; |
405 | 406 |
406 } // namespace cricket | 407 } // namespace cricket |
407 | 408 |
408 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ | 409 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ |
OLD | NEW |