| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 void UpdateConnectionStates(); | 169 void UpdateConnectionStates(); |
| 170 void RequestSort(); | 170 void RequestSort(); |
| 171 void SortConnections(); | 171 void SortConnections(); |
| 172 void SwitchBestConnectionTo(Connection* conn); | 172 void SwitchBestConnectionTo(Connection* conn); |
| 173 void UpdateChannelState(); | 173 void UpdateChannelState(); |
| 174 void HandleWritable(); | 174 void HandleWritable(); |
| 175 void HandleNotWritable(); | 175 void HandleNotWritable(); |
| 176 void HandleAllTimedOut(); | 176 void HandleAllTimedOut(); |
| 177 | 177 |
| 178 Connection* GetBestConnectionOnNetwork(rtc::Network* network) const; | 178 Connection* GetBestConnectionOnNetwork(rtc::Network* network) const; |
| 179 bool CreateConnections(const Candidate& remote_candidate, | 179 bool CreateConnections(const Candidate &remote_candidate, |
| 180 PortInterface* origin_port); | 180 PortInterface* origin_port, bool readable); |
| 181 bool CreateConnection(PortInterface* port, | 181 bool CreateConnection(PortInterface* port, const Candidate& remote_candidate, |
| 182 const Candidate& remote_candidate, | 182 PortInterface* origin_port, bool readable); |
| 183 PortInterface* origin_port); | |
| 184 bool FindConnection(cricket::Connection* connection) const; | 183 bool FindConnection(cricket::Connection* connection) const; |
| 185 | 184 |
| 186 uint32 GetRemoteCandidateGeneration(const Candidate& candidate); | 185 uint32 GetRemoteCandidateGeneration(const Candidate& candidate); |
| 187 bool IsDuplicateRemoteCandidate(const Candidate& candidate); | 186 bool IsDuplicateRemoteCandidate(const Candidate& candidate); |
| 188 void RememberRemoteCandidate(const Candidate& remote_candidate, | 187 void RememberRemoteCandidate(const Candidate& remote_candidate, |
| 189 PortInterface* origin_port); | 188 PortInterface* origin_port); |
| 190 bool IsPingable(Connection* conn); | 189 bool IsPingable(Connection* conn); |
| 191 void PingConnection(Connection* conn); | 190 void PingConnection(Connection* conn); |
| 192 void AddAllocatorSession(PortAllocatorSession* session); | 191 void AddAllocatorSession(PortAllocatorSession* session); |
| 193 void AddConnection(Connection* connection); | 192 void AddConnection(Connection* connection); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 | 250 |
| 252 int check_receiving_delay_; | 251 int check_receiving_delay_; |
| 253 int receiving_timeout_; | 252 int receiving_timeout_; |
| 254 | 253 |
| 255 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); | 254 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
| 256 }; | 255 }; |
| 257 | 256 |
| 258 } // namespace cricket | 257 } // namespace cricket |
| 259 | 258 |
| 260 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ | 259 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ |
| OLD | NEW |