| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 std::list<VideoFrameEncodedCallback> queued_encoded_callbacks_; | 119 std::list<VideoFrameEncodedCallback> queued_encoded_callbacks_; |
| 120 bool time_incoming_packet_updated_; | 120 bool time_incoming_packet_updated_; |
| 121 base::TimeTicks time_incoming_packet_; | 121 base::TimeTicks time_incoming_packet_; |
| 122 uint32 incoming_rtp_timestamp_; | 122 uint32 incoming_rtp_timestamp_; |
| 123 base::TimeTicks last_render_time_; | 123 base::TimeTicks last_render_time_; |
| 124 | 124 |
| 125 // This mapping allows us to log kVideoAckSent as a frame event. In addition | 125 // This mapping allows us to log kVideoAckSent as a frame event. In addition |
| 126 // it allows the event to be transmitted via RTCP. | 126 // it allows the event to be transmitted via RTCP. |
| 127 RtpTimestamp frame_id_to_rtp_timestamp_[256]; | 127 RtpTimestamp frame_id_to_rtp_timestamp_[256]; |
| 128 | 128 |
| 129 // NOTE: This must always be last so it's invalidated before other member |
| 130 // variables might be accessed. |
| 129 base::WeakPtrFactory<VideoReceiver> weak_factory_; | 131 base::WeakPtrFactory<VideoReceiver> weak_factory_; |
| 130 | 132 |
| 131 DISALLOW_COPY_AND_ASSIGN(VideoReceiver); | 133 DISALLOW_COPY_AND_ASSIGN(VideoReceiver); |
| 132 }; | 134 }; |
| 133 | 135 |
| 134 } // namespace cast | 136 } // namespace cast |
| 135 } // namespace media | 137 } // namespace media |
| 136 | 138 |
| 137 #endif // MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ | 139 #endif // MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ |
| OLD | NEW |