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

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

Issue 1803063004: Reset the BWE when the network changes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Removed changes in call dir and leave that in a separate CL. Created 4 years, 8 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 channel_->SignalGatheringState.connect( 112 channel_->SignalGatheringState.connect(
113 this, &DtlsTransportChannelWrapper::OnGatheringState); 113 this, &DtlsTransportChannelWrapper::OnGatheringState);
114 channel_->SignalCandidateGathered.connect( 114 channel_->SignalCandidateGathered.connect(
115 this, &DtlsTransportChannelWrapper::OnCandidateGathered); 115 this, &DtlsTransportChannelWrapper::OnCandidateGathered);
116 channel_->SignalCandidatesRemoved.connect( 116 channel_->SignalCandidatesRemoved.connect(
117 this, &DtlsTransportChannelWrapper::OnCandidatesRemoved); 117 this, &DtlsTransportChannelWrapper::OnCandidatesRemoved);
118 channel_->SignalRoleConflict.connect(this, 118 channel_->SignalRoleConflict.connect(this,
119 &DtlsTransportChannelWrapper::OnRoleConflict); 119 &DtlsTransportChannelWrapper::OnRoleConflict);
120 channel_->SignalRouteChange.connect(this, 120 channel_->SignalRouteChange.connect(this,
121 &DtlsTransportChannelWrapper::OnRouteChange); 121 &DtlsTransportChannelWrapper::OnRouteChange);
122 channel_->SignalSelectedCandidatePairChanged.connect(
123 this, &DtlsTransportChannelWrapper::OnSelectedCandidatePairChanged);
122 channel_->SignalConnectionRemoved.connect(this, 124 channel_->SignalConnectionRemoved.connect(this,
123 &DtlsTransportChannelWrapper::OnConnectionRemoved); 125 &DtlsTransportChannelWrapper::OnConnectionRemoved);
124 channel_->SignalReceivingState.connect(this, 126 channel_->SignalReceivingState.connect(this,
125 &DtlsTransportChannelWrapper::OnReceivingState); 127 &DtlsTransportChannelWrapper::OnReceivingState);
126 } 128 }
127 129
128 DtlsTransportChannelWrapper::~DtlsTransportChannelWrapper() { 130 DtlsTransportChannelWrapper::~DtlsTransportChannelWrapper() {
129 } 131 }
130 132
131 void DtlsTransportChannelWrapper::Connect() { 133 void DtlsTransportChannelWrapper::Connect() {
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 ASSERT(channel == channel_); 629 ASSERT(channel == channel_);
628 SignalRoleConflict(this); 630 SignalRoleConflict(this);
629 } 631 }
630 632
631 void DtlsTransportChannelWrapper::OnRouteChange( 633 void DtlsTransportChannelWrapper::OnRouteChange(
632 TransportChannel* channel, const Candidate& candidate) { 634 TransportChannel* channel, const Candidate& candidate) {
633 ASSERT(channel == channel_); 635 ASSERT(channel == channel_);
634 SignalRouteChange(this, candidate); 636 SignalRouteChange(this, candidate);
635 } 637 }
636 638
639 void DtlsTransportChannelWrapper::OnSelectedCandidatePairChanged(
640 TransportChannel* channel,
641 CandidatePairInterface* selected_candidate_pair) {
642 ASSERT(channel == channel_);
643 SignalSelectedCandidatePairChanged(this, selected_candidate_pair);
644 }
645
637 void DtlsTransportChannelWrapper::OnConnectionRemoved( 646 void DtlsTransportChannelWrapper::OnConnectionRemoved(
638 TransportChannelImpl* channel) { 647 TransportChannelImpl* channel) {
639 ASSERT(channel == channel_); 648 ASSERT(channel == channel_);
640 SignalConnectionRemoved(this); 649 SignalConnectionRemoved(this);
641 } 650 }
642 651
643 void DtlsTransportChannelWrapper::Reconnect() { 652 void DtlsTransportChannelWrapper::Reconnect() {
644 set_dtls_state(DTLS_TRANSPORT_NEW); 653 set_dtls_state(DTLS_TRANSPORT_NEW);
645 set_writable(false); 654 set_writable(false);
646 if (channel_->writable()) { 655 if (channel_->writable()) {
647 OnWritableState(channel_); 656 OnWritableState(channel_);
648 } 657 }
649 } 658 }
650 659
651 } // namespace cricket 660 } // 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