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

Side by Side Diff: webrtc/modules/pacing/paced_sender.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
« no previous file with comments | « webrtc/modules/pacing/paced_sender.h ('k') | webrtc/modules/pacing/packet_router.h » ('j') | 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) 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/pacing/paced_sender.h" 11 #include "webrtc/modules/pacing/paced_sender.h"
12 12
13 #include <algorithm> 13 #include <algorithm>
14 #include <map> 14 #include <map>
15 #include <queue> 15 #include <queue>
16 #include <set> 16 #include <set>
17 #include <vector> 17 #include <vector>
18 18
19 #include "webrtc/base/checks.h"
20 #include "webrtc/base/logging.h"
19 #include "webrtc/modules/include/module_common_types.h" 21 #include "webrtc/modules/include/module_common_types.h"
20 #include "webrtc/modules/pacing/alr_detector.h" 22 #include "webrtc/modules/pacing/alr_detector.h"
21 #include "webrtc/modules/pacing/bitrate_prober.h" 23 #include "webrtc/modules/pacing/bitrate_prober.h"
22 #include "webrtc/modules/utility/include/process_thread.h" 24 #include "webrtc/modules/utility/include/process_thread.h"
23 #include "webrtc/rtc_base/checks.h"
24 #include "webrtc/rtc_base/logging.h"
25 #include "webrtc/system_wrappers/include/clock.h" 25 #include "webrtc/system_wrappers/include/clock.h"
26 #include "webrtc/system_wrappers/include/field_trial.h" 26 #include "webrtc/system_wrappers/include/field_trial.h"
27 27
28 namespace { 28 namespace {
29 // Time limit in milliseconds between packet bursts. 29 // Time limit in milliseconds between packet bursts.
30 const int64_t kMinPacketLimitMs = 5; 30 const int64_t kMinPacketLimitMs = 5;
31 31
32 // Upper cap on process interval, in case process has not been called in a long 32 // Upper cap on process interval, in case process has not been called in a long
33 // time. 33 // time.
34 const int64_t kMaxIntervalTimeMs = 30; 34 const int64_t kMaxIntervalTimeMs = 30;
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 rtc::CritScope cs(&critsect_); 542 rtc::CritScope cs(&critsect_);
543 pacing_factor_ = pacing_factor; 543 pacing_factor_ = pacing_factor;
544 } 544 }
545 545
546 void PacedSender::SetQueueTimeLimit(int limit_ms) { 546 void PacedSender::SetQueueTimeLimit(int limit_ms) {
547 rtc::CritScope cs(&critsect_); 547 rtc::CritScope cs(&critsect_);
548 queue_time_limit = limit_ms; 548 queue_time_limit = limit_ms;
549 } 549 }
550 550
551 } // namespace webrtc 551 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/pacing/paced_sender.h ('k') | webrtc/modules/pacing/packet_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698