| 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 <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |