| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 size_t next_next_max_burst_size_; | 221 size_t next_next_max_burst_size_; |
| 222 // Number of packets already sent in the current burst. | 222 // Number of packets already sent in the current burst. |
| 223 size_t current_burst_size_; | 223 size_t current_burst_size_; |
| 224 // This is when the current burst ends. | 224 // This is when the current burst ends. |
| 225 base::TimeTicks burst_end_; | 225 base::TimeTicks burst_end_; |
| 226 | 226 |
| 227 State state_; | 227 State state_; |
| 228 | 228 |
| 229 bool has_reached_upper_bound_once_; | 229 bool has_reached_upper_bound_once_; |
| 230 | 230 |
| 231 // Tracks recently-logged RTP timestamps so that it can expand the truncated |
| 232 // values found in packets. |
| 233 RtpTimeTicks last_logged_audio_rtp_timestamp_; |
| 234 RtpTimeTicks last_logged_video_rtp_timestamp_; |
| 235 |
| 231 // NOTE: Weak pointers must be invalidated before all other member variables. | 236 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 232 base::WeakPtrFactory<PacedSender> weak_factory_; | 237 base::WeakPtrFactory<PacedSender> weak_factory_; |
| 233 | 238 |
| 234 DISALLOW_COPY_AND_ASSIGN(PacedSender); | 239 DISALLOW_COPY_AND_ASSIGN(PacedSender); |
| 235 }; | 240 }; |
| 236 | 241 |
| 237 } // namespace cast | 242 } // namespace cast |
| 238 } // namespace media | 243 } // namespace media |
| 239 | 244 |
| 240 #endif // MEDIA_CAST_NET_PACING_PACED_SENDER_H_ | 245 #endif // MEDIA_CAST_NET_PACING_PACED_SENDER_H_ |
| OLD | NEW |