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

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

Issue 2913793002: Address some violations of chromium-style. (Closed)
Patch Set: 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 TransportFeedbackObserver*
danilchap 2017/05/30 14:55:39 add an empty line above
nisse-webrtc 2017/05/31 08:44:54 Done.
188 SendSideCongestionController::GetTransportFeedbackObserver() {
189 return this;
190 }
191
184 void SendSideCongestionController::SignalNetworkState(NetworkState state) { 192 void SendSideCongestionController::SignalNetworkState(NetworkState state) {
185 LOG(LS_INFO) << "SignalNetworkState " 193 LOG(LS_INFO) << "SignalNetworkState "
186 << (state == kNetworkUp ? "Up" : "Down"); 194 << (state == kNetworkUp ? "Up" : "Down");
187 if (state == kNetworkUp) { 195 if (state == kNetworkUp) {
188 pacer_->Resume(); 196 pacer_->Resume();
189 } else { 197 } else {
190 pacer_->Pause(); 198 pacer_->Pause();
191 } 199 }
192 { 200 {
193 rtc::CritScope cs(&network_state_lock_); 201 rtc::CritScope cs(&network_state_lock_);
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 bool SendSideCongestionController::IsSendQueueFull() const { 319 bool SendSideCongestionController::IsSendQueueFull() const {
312 return pacer_->ExpectedQueueTimeMs() > PacedSender::kMaxQueueLengthMs; 320 return pacer_->ExpectedQueueTimeMs() > PacedSender::kMaxQueueLengthMs;
313 } 321 }
314 322
315 bool SendSideCongestionController::IsNetworkDown() const { 323 bool SendSideCongestionController::IsNetworkDown() const {
316 rtc::CritScope cs(&network_state_lock_); 324 rtc::CritScope cs(&network_state_lock_);
317 return network_state_ == kNetworkDown; 325 return network_state_ == kNetworkDown;
318 } 326 }
319 327
320 } // namespace webrtc 328 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698