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; | |
252 bool CreateConnections(const Candidate& remote_candidate, | 251 bool CreateConnections(const Candidate& remote_candidate, |
253 PortInterface* origin_port); | 252 PortInterface* origin_port); |
254 bool CreateConnection(PortInterface* port, | 253 bool CreateConnection(PortInterface* port, |
255 const Candidate& remote_candidate, | 254 const Candidate& remote_candidate, |
256 PortInterface* origin_port); | 255 PortInterface* origin_port); |
257 bool FindConnection(cricket::Connection* connection) const; | 256 bool FindConnection(cricket::Connection* connection) const; |
258 | 257 |
259 uint32_t GetRemoteCandidateGeneration(const Candidate& candidate); | 258 uint32_t GetRemoteCandidateGeneration(const Candidate& candidate); |
260 bool IsDuplicateRemoteCandidate(const Candidate& candidate); | 259 bool IsDuplicateRemoteCandidate(const Candidate& candidate); |
261 void RememberRemoteCandidate(const Candidate& remote_candidate, | 260 void RememberRemoteCandidate(const Candidate& remote_candidate, |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 uint32_t nomination_ = 0; | 399 uint32_t nomination_ = 0; |
401 | 400 |
402 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; | 401 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; |
403 | 402 |
404 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); | 403 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
405 }; | 404 }; |
406 | 405 |
407 } // namespace cricket | 406 } // namespace cricket |
408 | 407 |
409 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ | 408 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ |
OLD | NEW |