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

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: 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 // 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 base::TickClock* clock_; // Not owned by this class. 74 base::TickClock* clock_; // Not owned by this class.
75 LoggingImpl* logging_; // Not owned by this class. 75 LoggingImpl* logging_; // Not owned by this class.
76 RtpPacketizerConfig config_; 76 RtpPacketizerConfig config_;
77 scoped_ptr<RtpPacketizer> packetizer_; 77 scoped_ptr<RtpPacketizer> packetizer_;
78 scoped_ptr<PacketStorage> storage_; 78 scoped_ptr<PacketStorage> storage_;
79 PacedSender* const transport_; 79 PacedSender* const transport_;
80 CastTransportRtpStatistics stats_callback_; 80 CastTransportRtpStatistics stats_callback_;
81 scoped_refptr<base::SingleThreadTaskRunner> transport_task_runner_; 81 scoped_refptr<base::SingleThreadTaskRunner> transport_task_runner_;
82 82
83 // NOTE: Weak pointers must be invalidated before all other member variables.
83 base::WeakPtrFactory<RtpSender> weak_factory_; 84 base::WeakPtrFactory<RtpSender> weak_factory_;
84 85
85 DISALLOW_COPY_AND_ASSIGN(RtpSender); 86 DISALLOW_COPY_AND_ASSIGN(RtpSender);
86 }; 87 };
87 88
88 } // namespace transport 89 } // namespace transport
89 } // namespace cast 90 } // namespace cast
90 } // namespace media 91 } // namespace media
91 92
92 #endif // MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ 93 #endif // MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_
OLDNEW
« no previous file with comments | « media/cast/transport/pacing/paced_sender.h ('k') | media/cast/transport/transport/udp_transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698