| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 } | 384 } |
| 385 | 385 |
| 386 void QuicTransportChannel::OnRouteChange(TransportChannel* channel, | 386 void QuicTransportChannel::OnRouteChange(TransportChannel* channel, |
| 387 const Candidate& candidate) { | 387 const Candidate& candidate) { |
| 388 ASSERT(channel == channel_); | 388 ASSERT(channel == channel_); |
| 389 SignalRouteChange(this, candidate); | 389 SignalRouteChange(this, candidate); |
| 390 } | 390 } |
| 391 | 391 |
| 392 void QuicTransportChannel::OnSelectedCandidatePairChanged( | 392 void QuicTransportChannel::OnSelectedCandidatePairChanged( |
| 393 TransportChannel* channel, | 393 TransportChannel* channel, |
| 394 CandidatePairInterface* selected_candidate_pair) { | 394 CandidatePairInterface* selected_candidate_pair, |
| 395 int last_sent_packet_id) { |
| 395 ASSERT(channel == channel_); | 396 ASSERT(channel == channel_); |
| 396 SignalSelectedCandidatePairChanged(this, selected_candidate_pair); | 397 SignalSelectedCandidatePairChanged(this, selected_candidate_pair, |
| 398 last_sent_packet_id); |
| 397 } | 399 } |
| 398 | 400 |
| 399 void QuicTransportChannel::OnConnectionRemoved(TransportChannelImpl* channel) { | 401 void QuicTransportChannel::OnConnectionRemoved(TransportChannelImpl* channel) { |
| 400 ASSERT(channel == channel_); | 402 ASSERT(channel == channel_); |
| 401 SignalConnectionRemoved(this); | 403 SignalConnectionRemoved(this); |
| 402 } | 404 } |
| 403 | 405 |
| 404 bool QuicTransportChannel::MaybeStartQuic() { | 406 bool QuicTransportChannel::MaybeStartQuic() { |
| 405 if (!channel_->writable()) { | 407 if (!channel_->writable()) { |
| 406 LOG_J(LS_ERROR, this) << "Couldn't start QUIC handshake."; | 408 LOG_J(LS_ERROR, this) << "Couldn't start QUIC handshake."; |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 quic_->connection()->OnCanWrite(); | 563 quic_->connection()->OnCanWrite(); |
| 562 } | 564 } |
| 563 | 565 |
| 564 void QuicTransportChannel::set_quic_state(QuicTransportState state) { | 566 void QuicTransportChannel::set_quic_state(QuicTransportState state) { |
| 565 LOG_J(LS_VERBOSE, this) << "set_quic_state from:" << quic_state_ << " to " | 567 LOG_J(LS_VERBOSE, this) << "set_quic_state from:" << quic_state_ << " to " |
| 566 << state; | 568 << state; |
| 567 quic_state_ = state; | 569 quic_state_ = state; |
| 568 } | 570 } |
| 569 | 571 |
| 570 } // namespace cricket | 572 } // namespace cricket |
| OLD | NEW |