| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 bool port_muxed); | 204 bool port_muxed); |
| 205 void OnPortDestroyed(PortInterface* port); | 205 void OnPortDestroyed(PortInterface* port); |
| 206 void OnRoleConflict(PortInterface* port); | 206 void OnRoleConflict(PortInterface* port); |
| 207 | 207 |
| 208 void OnConnectionStateChange(Connection* connection); | 208 void OnConnectionStateChange(Connection* connection); |
| 209 void OnReadPacket(Connection *connection, const char *data, size_t len, | 209 void OnReadPacket(Connection *connection, const char *data, size_t len, |
| 210 const rtc::PacketTime& packet_time); | 210 const rtc::PacketTime& packet_time); |
| 211 void OnReadyToSend(Connection* connection); | 211 void OnReadyToSend(Connection* connection); |
| 212 void OnConnectionDestroyed(Connection *connection); | 212 void OnConnectionDestroyed(Connection *connection); |
| 213 | 213 |
| 214 void OnUseCandidate(Connection* conn); | 214 void OnNominated(Connection* conn); |
| 215 | 215 |
| 216 virtual void OnMessage(rtc::Message *pmsg); | 216 virtual void OnMessage(rtc::Message *pmsg); |
| 217 void OnSort(); | 217 void OnSort(); |
| 218 void OnPing(); | 218 void OnPing(); |
| 219 | 219 |
| 220 void OnCheckReceiving(); | 220 void OnCheckReceiving(); |
| 221 | 221 |
| 222 void PruneConnections(); |
| 223 Connection* best_nominated_connection() const; |
| 224 |
| 222 P2PTransport* transport_; | 225 P2PTransport* transport_; |
| 223 PortAllocator *allocator_; | 226 PortAllocator *allocator_; |
| 224 rtc::Thread *worker_thread_; | 227 rtc::Thread *worker_thread_; |
| 225 bool incoming_only_; | 228 bool incoming_only_; |
| 226 bool waiting_for_signaling_; | 229 bool waiting_for_signaling_; |
| 227 int error_; | 230 int error_; |
| 228 std::vector<PortAllocatorSession*> allocator_sessions_; | 231 std::vector<PortAllocatorSession*> allocator_sessions_; |
| 229 std::vector<PortInterface *> ports_; | 232 std::vector<PortInterface *> ports_; |
| 230 std::vector<Connection *> connections_; | 233 std::vector<Connection *> connections_; |
| 231 Connection* best_connection_; | 234 Connection* best_connection_; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 248 | 251 |
| 249 int check_receiving_delay_; | 252 int check_receiving_delay_; |
| 250 int receiving_timeout_; | 253 int receiving_timeout_; |
| 251 | 254 |
| 252 DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); | 255 DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
| 253 }; | 256 }; |
| 254 | 257 |
| 255 } // namespace cricket | 258 } // namespace cricket |
| 256 | 259 |
| 257 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ | 260 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ |
| OLD | NEW |