| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2011 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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 | 658 |
| 659 void DtlsTransportChannelWrapper::OnRouteChange( | 659 void DtlsTransportChannelWrapper::OnRouteChange( |
| 660 TransportChannel* channel, const Candidate& candidate) { | 660 TransportChannel* channel, const Candidate& candidate) { |
| 661 ASSERT(channel == channel_); | 661 ASSERT(channel == channel_); |
| 662 SignalRouteChange(this, candidate); | 662 SignalRouteChange(this, candidate); |
| 663 } | 663 } |
| 664 | 664 |
| 665 void DtlsTransportChannelWrapper::OnSelectedCandidatePairChanged( | 665 void DtlsTransportChannelWrapper::OnSelectedCandidatePairChanged( |
| 666 TransportChannel* channel, | 666 TransportChannel* channel, |
| 667 CandidatePairInterface* selected_candidate_pair, | 667 CandidatePairInterface* selected_candidate_pair, |
| 668 int last_sent_packet_id) { | 668 int last_sent_packet_id, |
| 669 bool ready_to_send) { |
| 669 ASSERT(channel == channel_); | 670 ASSERT(channel == channel_); |
| 670 SignalSelectedCandidatePairChanged(this, selected_candidate_pair, | 671 SignalSelectedCandidatePairChanged(this, selected_candidate_pair, |
| 671 last_sent_packet_id); | 672 last_sent_packet_id, ready_to_send); |
| 672 } | 673 } |
| 673 | 674 |
| 674 void DtlsTransportChannelWrapper::OnChannelStateChanged( | 675 void DtlsTransportChannelWrapper::OnChannelStateChanged( |
| 675 TransportChannelImpl* channel) { | 676 TransportChannelImpl* channel) { |
| 676 ASSERT(channel == channel_); | 677 ASSERT(channel == channel_); |
| 677 SignalStateChanged(this); | 678 SignalStateChanged(this); |
| 678 } | 679 } |
| 679 | 680 |
| 680 void DtlsTransportChannelWrapper::Reconnect() { | 681 void DtlsTransportChannelWrapper::Reconnect() { |
| 681 set_dtls_state(DTLS_TRANSPORT_NEW); | 682 set_dtls_state(DTLS_TRANSPORT_NEW); |
| 682 set_writable(false); | 683 set_writable(false); |
| 683 if (channel_->writable()) { | 684 if (channel_->writable()) { |
| 684 OnWritableState(channel_); | 685 OnWritableState(channel_); |
| 685 } | 686 } |
| 686 } | 687 } |
| 687 | 688 |
| 688 } // namespace cricket | 689 } // namespace cricket |
| OLD | NEW |