OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2015 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 channel->SignalGatheringState.connect( | 184 channel->SignalGatheringState.connect( |
185 this, &TransportController::OnChannelGatheringState_n); | 185 this, &TransportController::OnChannelGatheringState_n); |
186 channel->SignalCandidateGathered.connect( | 186 channel->SignalCandidateGathered.connect( |
187 this, &TransportController::OnChannelCandidateGathered_n); | 187 this, &TransportController::OnChannelCandidateGathered_n); |
188 channel->SignalCandidatesRemoved.connect( | 188 channel->SignalCandidatesRemoved.connect( |
189 this, &TransportController::OnChannelCandidatesRemoved_n); | 189 this, &TransportController::OnChannelCandidatesRemoved_n); |
190 channel->SignalRoleConflict.connect( | 190 channel->SignalRoleConflict.connect( |
191 this, &TransportController::OnChannelRoleConflict_n); | 191 this, &TransportController::OnChannelRoleConflict_n); |
192 channel->SignalStateChanged.connect( | 192 channel->SignalStateChanged.connect( |
193 this, &TransportController::OnChannelStateChanged_n); | 193 this, &TransportController::OnChannelStateChanged_n); |
| 194 channel->SignalDtlsHandshakeError.connect( |
| 195 this, &TransportController::OnDtlsHandshakeError); |
194 channels_.insert(channels_.end(), RefCountedChannel(channel))->AddRef(); | 196 channels_.insert(channels_.end(), RefCountedChannel(channel))->AddRef(); |
195 // Adding a channel could cause aggregate state to change. | 197 // Adding a channel could cause aggregate state to change. |
196 UpdateAggregateStates_n(); | 198 UpdateAggregateStates_n(); |
197 return channel; | 199 return channel; |
198 } | 200 } |
199 | 201 |
200 void TransportController::DestroyTransportChannel_n( | 202 void TransportController::DestroyTransportChannel_n( |
201 const std::string& transport_name, | 203 const std::string& transport_name, |
202 int component) { | 204 int component) { |
203 RTC_DCHECK(network_thread_->IsCurrent()); | 205 RTC_DCHECK(network_thread_->IsCurrent()); |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 new_gathering_state = kIceGatheringGathering; | 680 new_gathering_state = kIceGatheringGathering; |
679 } | 681 } |
680 if (gathering_state_ != new_gathering_state) { | 682 if (gathering_state_ != new_gathering_state) { |
681 gathering_state_ = new_gathering_state; | 683 gathering_state_ = new_gathering_state; |
682 signaling_thread_->Post( | 684 signaling_thread_->Post( |
683 RTC_FROM_HERE, this, MSG_ICEGATHERINGSTATE, | 685 RTC_FROM_HERE, this, MSG_ICEGATHERINGSTATE, |
684 new rtc::TypedMessageData<IceGatheringState>(new_gathering_state)); | 686 new rtc::TypedMessageData<IceGatheringState>(new_gathering_state)); |
685 } | 687 } |
686 } | 688 } |
687 | 689 |
| 690 void TransportController::OnDtlsHandshakeError(rtc::SSLHandshakeError error) { |
| 691 SignalDtlsHandshakeError(error); |
| 692 } |
| 693 |
688 } // namespace cricket | 694 } // namespace cricket |
OLD | NEW |