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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, |
241 const std::string& remote_username, | 241 const std::string& remote_username, |
242 bool port_muxed); | 242 bool port_muxed); |
243 void OnPortDestroyed(PortInterface* port); | 243 void OnPortDestroyed(PortInterface* port); |
244 void OnPortNetworkInactive(PortInterface* port); | 244 void OnPortNetworkInactive(PortInterface* port); |
| 245 void OnPortNetworkCostChanged(PortInterface* port); |
245 void OnRoleConflict(PortInterface* port); | 246 void OnRoleConflict(PortInterface* port); |
246 | 247 |
247 void OnConnectionStateChange(Connection* connection); | 248 void OnConnectionStateChange(Connection* connection); |
248 void OnReadPacket(Connection *connection, const char *data, size_t len, | 249 void OnReadPacket(Connection *connection, const char *data, size_t len, |
249 const rtc::PacketTime& packet_time); | 250 const rtc::PacketTime& packet_time); |
250 void OnSentPacket(const rtc::SentPacket& sent_packet); | 251 void OnSentPacket(const rtc::SentPacket& sent_packet); |
251 void OnReadyToSend(Connection* connection); | 252 void OnReadyToSend(Connection* connection); |
252 void OnConnectionDestroyed(Connection *connection); | 253 void OnConnectionDestroyed(Connection *connection); |
253 | 254 |
254 void OnNominated(Connection* conn); | 255 void OnNominated(Connection* conn); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 TransportChannelState state_ = TransportChannelState::STATE_INIT; | 332 TransportChannelState state_ = TransportChannelState::STATE_INIT; |
332 IceConfig config_; | 333 IceConfig config_; |
333 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before. | 334 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before. |
334 | 335 |
335 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); | 336 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
336 }; | 337 }; |
337 | 338 |
338 } // namespace cricket | 339 } // namespace cricket |
339 | 340 |
340 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ | 341 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ |
OLD | NEW |