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

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

Issue 2964773002: Revert "Update includes for webrtc/{base => rtc_base} rename (1/3)" (Closed)
Patch Set: Created 3 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
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
11 #include "webrtc/modules/congestion_controller/include/send_side_congestion_cont roller.h" 11 #include "webrtc/modules/congestion_controller/include/send_side_congestion_cont roller.h"
12 12
13 #include <algorithm> 13 #include <algorithm>
14 #include <memory> 14 #include <memory>
15 #include <vector> 15 #include <vector>
16 16
17 #include "webrtc/base/checks.h"
18 #include "webrtc/base/logging.h"
19 #include "webrtc/base/ptr_util.h"
20 #include "webrtc/base/rate_limiter.h"
21 #include "webrtc/base/socket.h"
17 #include "webrtc/modules/bitrate_controller/include/bitrate_controller.h" 22 #include "webrtc/modules/bitrate_controller/include/bitrate_controller.h"
18 #include "webrtc/modules/congestion_controller/acknowledge_bitrate_estimator.h" 23 #include "webrtc/modules/congestion_controller/acknowledge_bitrate_estimator.h"
19 #include "webrtc/modules/congestion_controller/probe_controller.h" 24 #include "webrtc/modules/congestion_controller/probe_controller.h"
20 #include "webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h" 25 #include "webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h"
21 #include "webrtc/rtc_base/checks.h"
22 #include "webrtc/rtc_base/logging.h"
23 #include "webrtc/rtc_base/ptr_util.h"
24 #include "webrtc/rtc_base/rate_limiter.h"
25 #include "webrtc/rtc_base/socket.h"
26 26
27 namespace webrtc { 27 namespace webrtc {
28 namespace { 28 namespace {
29 29
30 static const int64_t kRetransmitWindowSizeMs = 500; 30 static const int64_t kRetransmitWindowSizeMs = 500;
31 31
32 // Makes sure that the bitrate and the min, max values are in valid range. 32 // Makes sure that the bitrate and the min, max values are in valid range.
33 static void ClampBitrates(int* bitrate_bps, 33 static void ClampBitrates(int* bitrate_bps,
34 int* min_bitrate_bps, 34 int* min_bitrate_bps,
35 int* max_bitrate_bps) { 35 int* max_bitrate_bps) {
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 bool SendSideCongestionController::IsSendQueueFull() const { 347 bool SendSideCongestionController::IsSendQueueFull() const {
348 return pacer_->ExpectedQueueTimeMs() > PacedSender::kMaxQueueLengthMs; 348 return pacer_->ExpectedQueueTimeMs() > PacedSender::kMaxQueueLengthMs;
349 } 349 }
350 350
351 bool SendSideCongestionController::IsNetworkDown() const { 351 bool SendSideCongestionController::IsNetworkDown() const {
352 rtc::CritScope cs(&network_state_lock_); 352 rtc::CritScope cs(&network_state_lock_);
353 return network_state_ == kNetworkDown; 353 return network_state_ == kNetworkDown;
354 } 354 }
355 355
356 } // namespace webrtc 356 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698