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

Side by Side Diff: media/cast/video_receiver/video_receiver.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_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ 5 #ifndef MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_
6 #define MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ 6 #define MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 bool time_incoming_packet_updated_; 130 bool time_incoming_packet_updated_;
131 base::TimeTicks time_incoming_packet_; 131 base::TimeTicks time_incoming_packet_;
132 uint32 incoming_rtp_timestamp_; 132 uint32 incoming_rtp_timestamp_;
133 base::TimeTicks last_render_time_; 133 base::TimeTicks last_render_time_;
134 SetTargetDelayCallback target_delay_cb_; 134 SetTargetDelayCallback target_delay_cb_;
135 135
136 // This mapping allows us to log kVideoAckSent as a frame event. In addition 136 // This mapping allows us to log kVideoAckSent as a frame event. In addition
137 // it allows the event to be transmitted via RTCP. 137 // it allows the event to be transmitted via RTCP.
138 RtpTimestamp frame_id_to_rtp_timestamp_[256]; 138 RtpTimestamp frame_id_to_rtp_timestamp_[256];
139 139
140 // NOTE: Weak pointers must be invalidated before all other member variables.
140 base::WeakPtrFactory<VideoReceiver> weak_factory_; 141 base::WeakPtrFactory<VideoReceiver> weak_factory_;
141 142
142 DISALLOW_COPY_AND_ASSIGN(VideoReceiver); 143 DISALLOW_COPY_AND_ASSIGN(VideoReceiver);
143 }; 144 };
144 145
145 } // namespace cast 146 } // namespace cast
146 } // namespace media 147 } // namespace media
147 148
148 #endif // MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ 149 #endif // MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_
OLDNEW
« no previous file with comments | « media/cast/transport/transport/udp_transport.h ('k') | media/cast/video_sender/external_video_encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698