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

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

Issue 2444793003: Let receiving() and SignalReceivingState be part of rtc::PacketTransportInterface. (Closed)
Patch Set: Fix comment for receiving(). Created 4 years, 1 month 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/transportcontroller.h ('k') | no next file » | 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 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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 } 566 }
567 567
568 void TransportController::OnChannelWritableState_n( 568 void TransportController::OnChannelWritableState_n(
569 rtc::PacketTransportInterface* transport) { 569 rtc::PacketTransportInterface* transport) {
570 RTC_DCHECK(network_thread_->IsCurrent()); 570 RTC_DCHECK(network_thread_->IsCurrent());
571 LOG(LS_INFO) << " TransportChannel " << transport->debug_name() 571 LOG(LS_INFO) << " TransportChannel " << transport->debug_name()
572 << " writability changed to " << transport->writable() << "."; 572 << " writability changed to " << transport->writable() << ".";
573 UpdateAggregateStates_n(); 573 UpdateAggregateStates_n();
574 } 574 }
575 575
576 void TransportController::OnChannelReceivingState_n(TransportChannel* channel) { 576 void TransportController::OnChannelReceivingState_n(
577 rtc::PacketTransportInterface* transport) {
577 RTC_DCHECK(network_thread_->IsCurrent()); 578 RTC_DCHECK(network_thread_->IsCurrent());
578 UpdateAggregateStates_n(); 579 UpdateAggregateStates_n();
579 } 580 }
580 581
581 void TransportController::OnChannelGatheringState_n( 582 void TransportController::OnChannelGatheringState_n(
582 TransportChannelImpl* channel) { 583 TransportChannelImpl* channel) {
583 RTC_DCHECK(network_thread_->IsCurrent()); 584 RTC_DCHECK(network_thread_->IsCurrent());
584 UpdateAggregateStates_n(); 585 UpdateAggregateStates_n();
585 } 586 }
586 587
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 708
708 void TransportController::SetMetricsObserver( 709 void TransportController::SetMetricsObserver(
709 webrtc::MetricsObserverInterface* metrics_observer) { 710 webrtc::MetricsObserverInterface* metrics_observer) {
710 metrics_observer_ = metrics_observer; 711 metrics_observer_ = metrics_observer;
711 for (auto channel : channels_) { 712 for (auto channel : channels_) {
712 channel->SetMetricsObserver(metrics_observer); 713 channel->SetMetricsObserver(metrics_observer);
713 } 714 }
714 } 715 }
715 716
716 } // namespace cricket 717 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/p2p/base/transportcontroller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698