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

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

Issue 193303002: WeakPtr destruction order cleanup: media edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « media/cast/test/utility/in_process_receiver.h ('k') | media/cast/transport/rtp_sender/rtp_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698