diff options
author | deadbeef <deadbeef@chromium.org> | 2015-09-23 11:26:25 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-23 18:27:01 +0000 |
commit | c912315bd1a2e2def25caf9366ecf2f2df284c93 (patch) | |
tree | 5ffaba8c10c070fcb6af21695301141f52c11cba /remoting | |
parent | fa2e4f2d931e0290ecab3df2e87b161795dfc7ac (diff) | |
download | chromium_src-c912315bd1a2e2def25caf9366ecf2f2df284c93.zip chromium_src-c912315bd1a2e2def25caf9366ecf2f2df284c93.tar.gz chromium_src-c912315bd1a2e2def25caf9366ecf2f2df284c93.tar.bz2 |
Roll WebRTC 10010:10022, Libjingle 10011:10022
WebRTC 10010:10022
Changes: https://chromium.googlesource.com/external/webrtc/trunk/webrtc.git/+log/ea85c10..a6e4fcd
Libjingle 10011:10022
Changes: https://chromium.googlesource.com/external/webrtc/trunk/talk.git/+log/300c749..228d997
Review URL: https://codereview.chromium.org/1323243006
Cr-Commit-Position: refs/heads/master@{#350347}
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/protocol/libjingle_transport_factory.cc | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/remoting/protocol/libjingle_transport_factory.cc b/remoting/protocol/libjingle_transport_factory.cc index 5099840..ec3a0f3 100644 --- a/remoting/protocol/libjingle_transport_factory.cc +++ b/remoting/protocol/libjingle_transport_factory.cc @@ -79,9 +79,8 @@ class LibjingleTransport void NotifyConnected(); // Signal handlers for cricket::TransportChannel. - void OnRequestSignaling(cricket::TransportChannelImpl* channel); - void OnCandidateReady(cricket::TransportChannelImpl* channel, - const cricket::Candidate& candidate); + void OnCandidateGathered(cricket::TransportChannelImpl* channel, + const cricket::Candidate& candidate); void OnRouteChange(cricket::TransportChannel* channel, const cricket::Candidate& candidate); void OnWritableState(cricket::TransportChannel* channel); @@ -161,7 +160,7 @@ void LibjingleTransport::OnCanStart() { } while (!pending_candidates_.empty()) { - channel_->OnCandidate(pending_candidates_.front()); + channel_->AddRemoteCandidate(pending_candidates_.front()); pending_candidates_.pop_front(); } } @@ -199,10 +198,8 @@ void LibjingleTransport::DoStart() { event_handler_->OnTransportIceCredentials(this, ice_username_fragment_, ice_password); channel_->SetIceCredentials(ice_username_fragment_, ice_password); - channel_->SignalRequestSignaling.connect( - this, &LibjingleTransport::OnRequestSignaling); - channel_->SignalCandidateReady.connect( - this, &LibjingleTransport::OnCandidateReady); + channel_->SignalCandidateGathered.connect( + this, &LibjingleTransport::OnCandidateGathered); channel_->SignalRouteChange.connect( this, &LibjingleTransport::OnRouteChange); channel_->SignalWritableState.connect( @@ -211,6 +208,7 @@ void LibjingleTransport::DoStart() { !(network_settings_.flags & NetworkSettings::NAT_TRAVERSAL_OUTGOING)); channel_->Connect(); + channel_->MaybeStartGathering(); --connect_attempts_left_; @@ -256,7 +254,7 @@ void LibjingleTransport::AddRemoteCandidate( return; if (channel_) { - channel_->OnCandidate(candidate); + channel_->AddRemoteCandidate(candidate); } else { pending_candidates_.push_back(candidate); } @@ -272,13 +270,7 @@ bool LibjingleTransport::is_connected() const { return callback_.is_null(); } -void LibjingleTransport::OnRequestSignaling( - cricket::TransportChannelImpl* channel) { - DCHECK(CalledOnValidThread()); - channel_->OnSignalingReady(); -} - -void LibjingleTransport::OnCandidateReady( +void LibjingleTransport::OnCandidateGathered( cricket::TransportChannelImpl* channel, const cricket::Candidate& candidate) { DCHECK(CalledOnValidThread()); |