Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: webrtc/p2p/base/dtlstransportchannel.cc

Issue 2099783002: Fixing bug where Connection drops packets when presumed writable. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Merge with master. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/p2p/base/dtlstransportchannel.h ('k') | webrtc/p2p/base/faketransportcontroller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « webrtc/p2p/base/dtlstransportchannel.h ('k') | webrtc/p2p/base/faketransportcontroller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698