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

Side by Side Diff: media/cast/transport/rtp_sender/rtp_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 // This file contains the interface to the cast RTP sender. 5 // This file contains the interface to the cast RTP sender.
6 6
7 #ifndef MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ 7 #ifndef MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_
8 #define MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ 8 #define MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void UpdateSequenceNumber(Packet* packet); 68 void UpdateSequenceNumber(Packet* packet);
69 69
70 base::TickClock* clock_; // Not owned by this class. 70 base::TickClock* clock_; // Not owned by this class.
71 RtpPacketizerConfig config_; 71 RtpPacketizerConfig config_;
72 scoped_ptr<RtpPacketizer> packetizer_; 72 scoped_ptr<RtpPacketizer> packetizer_;
73 scoped_ptr<PacketStorage> storage_; 73 scoped_ptr<PacketStorage> storage_;
74 PacedSender* const transport_; 74 PacedSender* const transport_;
75 CastTransportRtpStatistics stats_callback_; 75 CastTransportRtpStatistics stats_callback_;
76 scoped_refptr<base::SingleThreadTaskRunner> transport_task_runner_; 76 scoped_refptr<base::SingleThreadTaskRunner> transport_task_runner_;
77 77
78 // NOTE: This must always be last so it's invalidated before other member
79 // variables might be accessed.
78 base::WeakPtrFactory<RtpSender> weak_factory_; 80 base::WeakPtrFactory<RtpSender> weak_factory_;
79 81
80 DISALLOW_COPY_AND_ASSIGN(RtpSender); 82 DISALLOW_COPY_AND_ASSIGN(RtpSender);
81 }; 83 };
82 84
83 } // namespace transport 85 } // namespace transport
84 } // namespace cast 86 } // namespace cast
85 } // namespace media 87 } // namespace media
86 88
87 #endif // MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ 89 #endif // MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698