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

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: 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 PacketSender* transport_; // Not owned by this class. 78 PacketSender* transport_; // Not owned by this class.
79 scoped_refptr<base::SingleThreadTaskRunner> transport_task_runner_; 79 scoped_refptr<base::SingleThreadTaskRunner> transport_task_runner_;
80 size_t burst_size_; 80 size_t burst_size_;
81 size_t packets_sent_in_burst_; 81 size_t packets_sent_in_burst_;
82 base::TimeTicks time_last_process_; 82 base::TimeTicks time_last_process_;
83 // Note: We can't combine the |packet_list_| and the |resend_packet_list_| 83 // Note: We can't combine the |packet_list_| and the |resend_packet_list_|
84 // since then we might get reordering of the retransmitted packets. 84 // since then we might get reordering of the retransmitted packets.
85 PacketList packet_list_; 85 PacketList packet_list_;
86 PacketList resend_packet_list_; 86 PacketList resend_packet_list_;
87 87
88 // NOTE: This must always be last so it's invalidated before other member
89 // variables might be accessed.
88 base::WeakPtrFactory<PacedSender> weak_factory_; 90 base::WeakPtrFactory<PacedSender> weak_factory_;
89 91
90 DISALLOW_COPY_AND_ASSIGN(PacedSender); 92 DISALLOW_COPY_AND_ASSIGN(PacedSender);
91 }; 93 };
92 94
93 } // namespace transport 95 } // namespace transport
94 } // namespace cast 96 } // namespace cast
95 } // namespace media 97 } // namespace media
96 98
97 #endif // MEDIA_CAST_TRANSPORT_PACING_PACED_SENDER_H_ 99 #endif // MEDIA_CAST_TRANSPORT_PACING_PACED_SENDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698