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

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

Issue 1785613011: Revert of Remove candidates when doing continual gathering (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 4 years, 9 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 channel_->SignalReadPacket.connect(this, 106 channel_->SignalReadPacket.connect(this,
107 &DtlsTransportChannelWrapper::OnReadPacket); 107 &DtlsTransportChannelWrapper::OnReadPacket);
108 channel_->SignalSentPacket.connect( 108 channel_->SignalSentPacket.connect(
109 this, &DtlsTransportChannelWrapper::OnSentPacket); 109 this, &DtlsTransportChannelWrapper::OnSentPacket);
110 channel_->SignalReadyToSend.connect(this, 110 channel_->SignalReadyToSend.connect(this,
111 &DtlsTransportChannelWrapper::OnReadyToSend); 111 &DtlsTransportChannelWrapper::OnReadyToSend);
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(
117 this, &DtlsTransportChannelWrapper::OnCandidatesRemoved);
118 channel_->SignalRoleConflict.connect(this, 116 channel_->SignalRoleConflict.connect(this,
119 &DtlsTransportChannelWrapper::OnRoleConflict); 117 &DtlsTransportChannelWrapper::OnRoleConflict);
120 channel_->SignalRouteChange.connect(this, 118 channel_->SignalRouteChange.connect(this,
121 &DtlsTransportChannelWrapper::OnRouteChange); 119 &DtlsTransportChannelWrapper::OnRouteChange);
122 channel_->SignalConnectionRemoved.connect(this, 120 channel_->SignalConnectionRemoved.connect(this,
123 &DtlsTransportChannelWrapper::OnConnectionRemoved); 121 &DtlsTransportChannelWrapper::OnConnectionRemoved);
124 channel_->SignalReceivingState.connect(this, 122 channel_->SignalReceivingState.connect(this,
125 &DtlsTransportChannelWrapper::OnReceivingState); 123 &DtlsTransportChannelWrapper::OnReceivingState);
126 } 124 }
127 125
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 SignalGatheringState(this); 606 SignalGatheringState(this);
609 } 607 }
610 608
611 void DtlsTransportChannelWrapper::OnCandidateGathered( 609 void DtlsTransportChannelWrapper::OnCandidateGathered(
612 TransportChannelImpl* channel, 610 TransportChannelImpl* channel,
613 const Candidate& c) { 611 const Candidate& c) {
614 ASSERT(channel == channel_); 612 ASSERT(channel == channel_);
615 SignalCandidateGathered(this, c); 613 SignalCandidateGathered(this, c);
616 } 614 }
617 615
618 void DtlsTransportChannelWrapper::OnCandidatesRemoved(
619 TransportChannelImpl* channel,
620 const Candidates& candidates) {
621 ASSERT(channel == channel_);
622 SignalCandidatesRemoved(this, candidates);
623 }
624
625 void DtlsTransportChannelWrapper::OnRoleConflict( 616 void DtlsTransportChannelWrapper::OnRoleConflict(
626 TransportChannelImpl* channel) { 617 TransportChannelImpl* channel) {
627 ASSERT(channel == channel_); 618 ASSERT(channel == channel_);
628 SignalRoleConflict(this); 619 SignalRoleConflict(this);
629 } 620 }
630 621
631 void DtlsTransportChannelWrapper::OnRouteChange( 622 void DtlsTransportChannelWrapper::OnRouteChange(
632 TransportChannel* channel, const Candidate& candidate) { 623 TransportChannel* channel, const Candidate& candidate) {
633 ASSERT(channel == channel_); 624 ASSERT(channel == channel_);
634 SignalRouteChange(this, candidate); 625 SignalRouteChange(this, candidate);
635 } 626 }
636 627
637 void DtlsTransportChannelWrapper::OnConnectionRemoved( 628 void DtlsTransportChannelWrapper::OnConnectionRemoved(
638 TransportChannelImpl* channel) { 629 TransportChannelImpl* channel) {
639 ASSERT(channel == channel_); 630 ASSERT(channel == channel_);
640 SignalConnectionRemoved(this); 631 SignalConnectionRemoved(this);
641 } 632 }
642 633
643 void DtlsTransportChannelWrapper::Reconnect() { 634 void DtlsTransportChannelWrapper::Reconnect() {
644 set_dtls_state(DTLS_TRANSPORT_NEW); 635 set_dtls_state(DTLS_TRANSPORT_NEW);
645 set_writable(false); 636 set_writable(false);
646 if (channel_->writable()) { 637 if (channel_->writable()) {
647 OnWritableState(channel_); 638 OnWritableState(channel_);
648 } 639 }
649 } 640 }
650 641
651 } // namespace cricket 642 } // 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