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

Side by Side Diff: webrtc/modules/pacing/paced_sender.h

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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // Multiplicative factor that is applied to the target bitrate to calculate 66 // Multiplicative factor that is applied to the target bitrate to calculate
67 // the number of bytes that can be transmitted per interval. 67 // the number of bytes that can be transmitted per interval.
68 // Increasing this factor will result in lower delays in cases of bitrate 68 // Increasing this factor will result in lower delays in cases of bitrate
69 // overshoots from the encoder. 69 // overshoots from the encoder.
70 static const float kDefaultPaceMultiplier; 70 static const float kDefaultPaceMultiplier;
71 71
72 PacedSender(const Clock* clock, 72 PacedSender(const Clock* clock,
73 PacketSender* packet_sender, 73 PacketSender* packet_sender,
74 RtcEventLog* event_log); 74 RtcEventLog* event_log);
75 75
76 virtual ~PacedSender(); 76 ~PacedSender() override;
77 77
78 virtual void CreateProbeCluster(int bitrate_bps); 78 virtual void CreateProbeCluster(int bitrate_bps);
79 79
80 // Temporarily pause all sending. 80 // Temporarily pause all sending.
81 void Pause(); 81 void Pause();
82 82
83 // Resume sending packets. 83 // Resume sending packets.
84 void Resume(); 84 void Resume();
85 85
86 // Enable bitrate probing. Enabled by default, mostly here to simplify 86 // Enable bitrate probing. Enabled by default, mostly here to simplify
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 int64_t time_last_update_us_ GUARDED_BY(critsect_); 190 int64_t time_last_update_us_ GUARDED_BY(critsect_);
191 int64_t first_sent_packet_ms_ GUARDED_BY(critsect_); 191 int64_t first_sent_packet_ms_ GUARDED_BY(critsect_);
192 192
193 std::unique_ptr<paced_sender::PacketQueue> packets_ GUARDED_BY(critsect_); 193 std::unique_ptr<paced_sender::PacketQueue> packets_ GUARDED_BY(critsect_);
194 uint64_t packet_counter_; 194 uint64_t packet_counter_;
195 ProcessThread* process_thread_ = nullptr; 195 ProcessThread* process_thread_ = nullptr;
196 }; 196 };
197 } // namespace webrtc 197 } // namespace webrtc
198 #endif // WEBRTC_MODULES_PACING_PACED_SENDER_H_ 198 #endif // WEBRTC_MODULES_PACING_PACED_SENDER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/congestion_controller/send_side_congestion_controller.cc ('k') | webrtc/modules/pacing/packet_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698