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

Side by Side Diff: webrtc/modules/pacing/packet_router.cc

Issue 1674423002: Enable cpplint for webrtc/modules/pacing and fix all uncovered cpplint errors. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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/modules/pacing/paced_sender_unittest.cc ('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 (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 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 22 matching lines...) Expand all
33 33
34 bool SendFeedback(rtcp::TransportFeedback* packet, 34 bool SendFeedback(rtcp::TransportFeedback* packet,
35 std::list<RtpRtcp*>* rtp_modules) { 35 std::list<RtpRtcp*>* rtp_modules) {
36 for (auto* rtp_module : *rtp_modules) { 36 for (auto* rtp_module : *rtp_modules) {
37 packet->WithPacketSenderSsrc(rtp_module->SSRC()); 37 packet->WithPacketSenderSsrc(rtp_module->SSRC());
38 if (rtp_module->SendFeedbackPacket(*packet)) 38 if (rtp_module->SendFeedbackPacket(*packet))
39 return true; 39 return true;
40 } 40 }
41 return false; 41 return false;
42 } 42 }
43 } 43 } // namespace
44 44
45 PacketRouter::PacketRouter() : transport_seq_(0) { 45 PacketRouter::PacketRouter() : transport_seq_(0) {
46 pacer_thread_checker_.DetachFromThread(); 46 pacer_thread_checker_.DetachFromThread();
47 } 47 }
48 48
49 PacketRouter::~PacketRouter() { 49 PacketRouter::~PacketRouter() {
50 RTC_DCHECK(send_rtp_modules_.empty()); 50 RTC_DCHECK(send_rtp_modules_.empty());
51 RTC_DCHECK(recv_rtp_modules_.empty()); 51 RTC_DCHECK(recv_rtp_modules_.empty());
52 } 52 }
53 53
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 RTC_DCHECK(pacer_thread_checker_.CalledOnValidThread()); 126 RTC_DCHECK(pacer_thread_checker_.CalledOnValidThread());
127 rtc::CritScope cs(&modules_crit_); 127 rtc::CritScope cs(&modules_crit_);
128 if (::webrtc::SendFeedback(packet, &recv_rtp_modules_)) 128 if (::webrtc::SendFeedback(packet, &recv_rtp_modules_))
129 return true; 129 return true;
130 if (::webrtc::SendFeedback(packet, &send_rtp_modules_)) 130 if (::webrtc::SendFeedback(packet, &send_rtp_modules_))
131 return true; 131 return true;
132 return false; 132 return false;
133 } 133 }
134 134
135 } // namespace webrtc 135 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/pacing/paced_sender_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698