| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_TRANSPORT_PACING_PACED_SENDER_H_ | 5 #ifndef MEDIA_CAST_TRANSPORT_PACING_PACED_SENDER_H_ |
| 6 #define MEDIA_CAST_TRANSPORT_PACING_PACED_SENDER_H_ | 6 #define MEDIA_CAST_TRANSPORT_PACING_PACED_SENDER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 uint32 audio_ssrc_; | 91 uint32 audio_ssrc_; |
| 92 uint32 video_ssrc_; | 92 uint32 video_ssrc_; |
| 93 size_t burst_size_; | 93 size_t burst_size_; |
| 94 size_t packets_sent_in_burst_; | 94 size_t packets_sent_in_burst_; |
| 95 base::TimeTicks time_last_process_; | 95 base::TimeTicks time_last_process_; |
| 96 // Note: We can't combine the |packet_list_| and the |resend_packet_list_| | 96 // Note: We can't combine the |packet_list_| and the |resend_packet_list_| |
| 97 // since then we might get reordering of the retransmitted packets. | 97 // since then we might get reordering of the retransmitted packets. |
| 98 PacketList packet_list_; | 98 PacketList packet_list_; |
| 99 PacketList resend_packet_list_; | 99 PacketList resend_packet_list_; |
| 100 | 100 |
| 101 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 101 base::WeakPtrFactory<PacedSender> weak_factory_; | 102 base::WeakPtrFactory<PacedSender> weak_factory_; |
| 102 | 103 |
| 103 DISALLOW_COPY_AND_ASSIGN(PacedSender); | 104 DISALLOW_COPY_AND_ASSIGN(PacedSender); |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 } // namespace transport | 107 } // namespace transport |
| 107 } // namespace cast | 108 } // namespace cast |
| 108 } // namespace media | 109 } // namespace media |
| 109 | 110 |
| 110 #endif // MEDIA_CAST_TRANSPORT_PACING_PACED_SENDER_H_ | 111 #endif // MEDIA_CAST_TRANSPORT_PACING_PACED_SENDER_H_ |
| OLD | NEW |