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

Side by Side Diff: webrtc/pc/channel.cc

Issue 1844773002: Update the call when the network route changes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Merge with head 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/media/engine/webrtcvoiceengine.cc ('k') | webrtc/pc/channel_unittest.cc » ('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 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2004 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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 if (state != DTLS_TRANSPORT_CONNECTED) { 505 if (state != DTLS_TRANSPORT_CONNECTED) {
506 srtp_filter_.ResetParams(); 506 srtp_filter_.ResetParams();
507 } 507 }
508 } 508 }
509 509
510 void BaseChannel::OnSelectedCandidatePairChanged( 510 void BaseChannel::OnSelectedCandidatePairChanged(
511 TransportChannel* channel, 511 TransportChannel* channel,
512 CandidatePairInterface* selected_candidate_pair, 512 CandidatePairInterface* selected_candidate_pair,
513 int last_sent_packet_id) { 513 int last_sent_packet_id) {
514 ASSERT(channel == transport_channel_ || channel == rtcp_transport_channel_); 514 ASSERT(channel == transport_channel_ || channel == rtcp_transport_channel_);
515 NetworkRoute network_route; 515 rtc::NetworkRoute network_route;
516 if (selected_candidate_pair) { 516 if (selected_candidate_pair) {
517 network_route = 517 network_route = rtc::NetworkRoute(
518 NetworkRoute(selected_candidate_pair->local_candidate().network_id(), 518 selected_candidate_pair->local_candidate().network_id(),
519 selected_candidate_pair->remote_candidate().network_id(), 519 selected_candidate_pair->remote_candidate().network_id(),
520 last_sent_packet_id); 520 last_sent_packet_id);
521 } 521 }
522 media_channel()->OnNetworkRouteChanged(channel->transport_name(), 522 media_channel()->OnNetworkRouteChanged(channel->transport_name(),
523 network_route); 523 network_route);
524 } 524 }
525 525
526 void BaseChannel::SetReadyToSend(bool rtcp, bool ready) { 526 void BaseChannel::SetReadyToSend(bool rtcp, bool ready) {
527 if (rtcp) { 527 if (rtcp) {
528 rtcp_ready_to_send_ = ready; 528 rtcp_ready_to_send_ = ready;
529 } else { 529 } else {
530 rtp_ready_to_send_ = ready; 530 rtp_ready_to_send_ = ready;
(...skipping 1672 matching lines...) Expand 10 before | Expand all | Expand 10 after
2203 return (data_channel_type_ == DCT_RTP) && BaseChannel::ShouldSetupDtlsSrtp(); 2203 return (data_channel_type_ == DCT_RTP) && BaseChannel::ShouldSetupDtlsSrtp();
2204 } 2204 }
2205 2205
2206 void DataChannel::OnStreamClosedRemotely(uint32_t sid) { 2206 void DataChannel::OnStreamClosedRemotely(uint32_t sid) {
2207 rtc::TypedMessageData<uint32_t>* message = 2207 rtc::TypedMessageData<uint32_t>* message =
2208 new rtc::TypedMessageData<uint32_t>(sid); 2208 new rtc::TypedMessageData<uint32_t>(sid);
2209 signaling_thread()->Post(this, MSG_STREAMCLOSEDREMOTELY, message); 2209 signaling_thread()->Post(this, MSG_STREAMCLOSEDREMOTELY, message);
2210 } 2210 }
2211 2211
2212 } // namespace cricket 2212 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/media/engine/webrtcvoiceengine.cc ('k') | webrtc/pc/channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698