| 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 const Candidate& remote_candidate, | 220 const Candidate& remote_candidate, |
| 221 PortInterface* origin_port); | 221 PortInterface* origin_port); |
| 222 bool FindConnection(cricket::Connection* connection) const; | 222 bool FindConnection(cricket::Connection* connection) const; |
| 223 | 223 |
| 224 uint32_t GetRemoteCandidateGeneration(const Candidate& candidate); | 224 uint32_t GetRemoteCandidateGeneration(const Candidate& candidate); |
| 225 bool IsDuplicateRemoteCandidate(const Candidate& candidate); | 225 bool IsDuplicateRemoteCandidate(const Candidate& candidate); |
| 226 void RememberRemoteCandidate(const Candidate& remote_candidate, | 226 void RememberRemoteCandidate(const Candidate& remote_candidate, |
| 227 PortInterface* origin_port); | 227 PortInterface* origin_port); |
| 228 bool IsPingable(Connection* conn, int64_t now); | 228 bool IsPingable(Connection* conn, int64_t now); |
| 229 void PingConnection(Connection* conn); | 229 void PingConnection(Connection* conn); |
| 230 void AddAllocatorSession(PortAllocatorSession* session); | 230 void AddAllocatorSession(PortAllocatorSession* session, bool pooled); |
| 231 void AddConnection(Connection* connection); | 231 void AddConnection(Connection* connection); |
| 232 | 232 |
| 233 void OnPortReady(PortAllocatorSession *session, PortInterface* port); | 233 void OnPortReady(PortAllocatorSession *session, PortInterface* port); |
| 234 void OnCandidatesReady(PortAllocatorSession *session, | 234 void OnCandidatesReady(PortAllocatorSession *session, |
| 235 const std::vector<Candidate>& candidates); | 235 const std::vector<Candidate>& candidates); |
| 236 void OnCandidatesAllocationDone(PortAllocatorSession* session); | 236 void OnCandidatesAllocationDone(PortAllocatorSession* session); |
| 237 void OnUnknownAddress(PortInterface* port, | 237 void OnUnknownAddress(PortInterface* port, |
| 238 const rtc::SocketAddress& addr, | 238 const rtc::SocketAddress& addr, |
| 239 ProtocolType proto, | 239 ProtocolType proto, |
| 240 IceMessage* stun_msg, | 240 IceMessage* stun_msg, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 TransportChannelState state_ = TransportChannelState::STATE_INIT; | 331 TransportChannelState state_ = TransportChannelState::STATE_INIT; |
| 332 IceConfig config_; | 332 IceConfig config_; |
| 333 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before. | 333 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before. |
| 334 | 334 |
| 335 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); | 335 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
| 336 }; | 336 }; |
| 337 | 337 |
| 338 } // namespace cricket | 338 } // namespace cricket |
| 339 | 339 |
| 340 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ | 340 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ |
| OLD | NEW |