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

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

Issue 539323002: [Cast] Sanity-check for unbounded queue growth in PacedSender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: No packet dropping. Created 6 years, 3 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 | « no previous file | 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 <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 size_t current_max_burst_size_; 198 size_t current_max_burst_size_;
199 size_t next_max_burst_size_; 199 size_t next_max_burst_size_;
200 size_t next_next_max_burst_size_; 200 size_t next_next_max_burst_size_;
201 // Number of packets already sent in the current burst. 201 // Number of packets already sent in the current burst.
202 size_t current_burst_size_; 202 size_t current_burst_size_;
203 // This is when the current burst ends. 203 // This is when the current burst ends.
204 base::TimeTicks burst_end_; 204 base::TimeTicks burst_end_;
205 205
206 State state_; 206 State state_;
207 207
208 bool has_reached_upper_bound_once_;
209
208 // NOTE: Weak pointers must be invalidated before all other member variables. 210 // NOTE: Weak pointers must be invalidated before all other member variables.
209 base::WeakPtrFactory<PacedSender> weak_factory_; 211 base::WeakPtrFactory<PacedSender> weak_factory_;
210 212
211 DISALLOW_COPY_AND_ASSIGN(PacedSender); 213 DISALLOW_COPY_AND_ASSIGN(PacedSender);
212 }; 214 };
213 215
214 } // namespace cast 216 } // namespace cast
215 } // namespace media 217 } // namespace media
216 218
217 #endif // MEDIA_CAST_NET_PACING_PACED_SENDER_H_ 219 #endif // MEDIA_CAST_NET_PACING_PACED_SENDER_H_
OLDNEW
« no previous file with comments | « no previous file | media/cast/net/pacing/paced_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698