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

Side by Side Diff: media/cast/net/pacing/paced_sender.h

Issue 1515433002: Replace uses of raw uint32's with a type-checked RtpTimeTicks data type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Speculative workaround fix for win8_chromium_ng compile error. Created 4 years, 11 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 | « media/cast/net/mock_cast_transport_sender.h ('k') | media/cast/net/pacing/paced_sender.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « media/cast/net/mock_cast_transport_sender.h ('k') | media/cast/net/pacing/paced_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698