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

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

Issue 2098703004: Revert of Revert "Revert of Update the BWE when the network route changes. (patchset #5 id:180001 of https://… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 4 years, 5 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/port.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 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 void BaseChannel::OnSelectedCandidatePairChanged( 601 void BaseChannel::OnSelectedCandidatePairChanged(
602 TransportChannel* channel, 602 TransportChannel* channel,
603 CandidatePairInterface* selected_candidate_pair, 603 CandidatePairInterface* selected_candidate_pair,
604 int last_sent_packet_id) { 604 int last_sent_packet_id) {
605 ASSERT(channel == transport_channel_ || channel == rtcp_transport_channel_); 605 ASSERT(channel == transport_channel_ || channel == rtcp_transport_channel_);
606 RTC_DCHECK(network_thread_->IsCurrent()); 606 RTC_DCHECK(network_thread_->IsCurrent());
607 std::string transport_name = channel->transport_name(); 607 std::string transport_name = channel->transport_name();
608 rtc::NetworkRoute network_route; 608 rtc::NetworkRoute network_route;
609 if (selected_candidate_pair) { 609 if (selected_candidate_pair) {
610 network_route = rtc::NetworkRoute( 610 network_route = rtc::NetworkRoute(
611 selected_candidate_pair->ReadyToSendMedia(),
612 selected_candidate_pair->local_candidate().network_id(), 611 selected_candidate_pair->local_candidate().network_id(),
613 selected_candidate_pair->remote_candidate().network_id(), 612 selected_candidate_pair->remote_candidate().network_id(),
614 last_sent_packet_id); 613 last_sent_packet_id);
615 } 614 }
616 invoker_.AsyncInvoke<void>( 615 invoker_.AsyncInvoke<void>(
617 RTC_FROM_HERE, worker_thread_, 616 RTC_FROM_HERE, worker_thread_,
618 Bind(&MediaChannel::OnNetworkRouteChanged, media_channel_, transport_name, 617 Bind(&MediaChannel::OnNetworkRouteChanged, media_channel_, transport_name,
619 network_route)); 618 network_route));
620 } 619 }
621 620
(...skipping 1806 matching lines...) Expand 10 before | Expand all | Expand 10 after
2428 } 2427 }
2429 2428
2430 void DataChannel::OnStreamClosedRemotely(uint32_t sid) { 2429 void DataChannel::OnStreamClosedRemotely(uint32_t sid) {
2431 rtc::TypedMessageData<uint32_t>* message = 2430 rtc::TypedMessageData<uint32_t>* message =
2432 new rtc::TypedMessageData<uint32_t>(sid); 2431 new rtc::TypedMessageData<uint32_t>(sid);
2433 signaling_thread()->Post(RTC_FROM_HERE, this, MSG_STREAMCLOSEDREMOTELY, 2432 signaling_thread()->Post(RTC_FROM_HERE, this, MSG_STREAMCLOSEDREMOTELY,
2434 message); 2433 message);
2435 } 2434 }
2436 2435
2437 } // namespace cricket 2436 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/p2p/base/port.cc ('k') | webrtc/pc/channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698