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

Side by Side Diff: webrtc/modules/congestion_controller/send_side_congestion_controller.cc

Issue 2913793002: Address some violations of chromium-style. (Closed)
Patch Set: Add empty line. Created 3 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 } 174 }
175 175
176 int64_t SendSideCongestionController::GetPacerQueuingDelayMs() const { 176 int64_t SendSideCongestionController::GetPacerQueuingDelayMs() const {
177 return IsNetworkDown() ? 0 : pacer_->QueueInMs(); 177 return IsNetworkDown() ? 0 : pacer_->QueueInMs();
178 } 178 }
179 179
180 int64_t SendSideCongestionController::GetFirstPacketTimeMs() const { 180 int64_t SendSideCongestionController::GetFirstPacketTimeMs() const {
181 return pacer_->FirstSentPacketTimeMs(); 181 return pacer_->FirstSentPacketTimeMs();
182 } 182 }
183 183
184 PacedSender* SendSideCongestionController::pacer() {
185 return pacer_.get();
186 }
187
188 TransportFeedbackObserver*
189 SendSideCongestionController::GetTransportFeedbackObserver() {
190 return this;
191 }
192
184 void SendSideCongestionController::SignalNetworkState(NetworkState state) { 193 void SendSideCongestionController::SignalNetworkState(NetworkState state) {
185 LOG(LS_INFO) << "SignalNetworkState " 194 LOG(LS_INFO) << "SignalNetworkState "
186 << (state == kNetworkUp ? "Up" : "Down"); 195 << (state == kNetworkUp ? "Up" : "Down");
187 if (state == kNetworkUp) { 196 if (state == kNetworkUp) {
188 pacer_->Resume(); 197 pacer_->Resume();
189 } else { 198 } else {
190 pacer_->Pause(); 199 pacer_->Pause();
191 } 200 }
192 { 201 {
193 rtc::CritScope cs(&network_state_lock_); 202 rtc::CritScope cs(&network_state_lock_);
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 bool SendSideCongestionController::IsSendQueueFull() const { 320 bool SendSideCongestionController::IsSendQueueFull() const {
312 return pacer_->ExpectedQueueTimeMs() > PacedSender::kMaxQueueLengthMs; 321 return pacer_->ExpectedQueueTimeMs() > PacedSender::kMaxQueueLengthMs;
313 } 322 }
314 323
315 bool SendSideCongestionController::IsNetworkDown() const { 324 bool SendSideCongestionController::IsNetworkDown() const {
316 rtc::CritScope cs(&network_state_lock_); 325 rtc::CritScope cs(&network_state_lock_);
317 return network_state_ == kNetworkDown; 326 return network_state_ == kNetworkDown;
318 } 327 }
319 328
320 } // namespace webrtc 329 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/congestion_controller/probe_bitrate_estimator.cc ('k') | webrtc/modules/pacing/paced_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698