OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_CAST_NET_PACING_PACED_SENDER_H_ | 5 #ifndef MEDIA_CAST_NET_PACING_PACED_SENDER_H_ |
6 #define MEDIA_CAST_NET_PACING_PACED_SENDER_H_ | 6 #define MEDIA_CAST_NET_PACING_PACED_SENDER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <tuple> | 9 #include <tuple> |
10 #include <vector> | 10 #include <vector> |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 size_t next_next_max_burst_size_; | 218 size_t next_next_max_burst_size_; |
219 // Number of packets already sent in the current burst. | 219 // Number of packets already sent in the current burst. |
220 size_t current_burst_size_; | 220 size_t current_burst_size_; |
221 // This is when the current burst ends. | 221 // This is when the current burst ends. |
222 base::TimeTicks burst_end_; | 222 base::TimeTicks burst_end_; |
223 | 223 |
224 State state_; | 224 State state_; |
225 | 225 |
226 bool has_reached_upper_bound_once_; | 226 bool has_reached_upper_bound_once_; |
227 | 227 |
| 228 // Tracks recently-logged RTP timestamps so that it can expand the truncated |
| 229 // values found in packets. |
| 230 RtpTimeTicks last_logged_audio_rtp_timestamp_; |
| 231 RtpTimeTicks last_logged_video_rtp_timestamp_; |
| 232 |
228 // NOTE: Weak pointers must be invalidated before all other member variables. | 233 // NOTE: Weak pointers must be invalidated before all other member variables. |
229 base::WeakPtrFactory<PacedSender> weak_factory_; | 234 base::WeakPtrFactory<PacedSender> weak_factory_; |
230 | 235 |
231 DISALLOW_COPY_AND_ASSIGN(PacedSender); | 236 DISALLOW_COPY_AND_ASSIGN(PacedSender); |
232 }; | 237 }; |
233 | 238 |
234 } // namespace cast | 239 } // namespace cast |
235 } // namespace media | 240 } // namespace media |
236 | 241 |
237 #endif // MEDIA_CAST_NET_PACING_PACED_SENDER_H_ | 242 #endif // MEDIA_CAST_NET_PACING_PACED_SENDER_H_ |
OLD | NEW |