OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |