| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 uint32 incoming_rtp_timestamp_; | 159 uint32 incoming_rtp_timestamp_; |
| 160 transport::TransportEncryptionHandler decryptor_; | 160 transport::TransportEncryptionHandler decryptor_; |
| 161 | 161 |
| 162 // Outstanding callbacks to run to deliver on client requests for frames. | 162 // Outstanding callbacks to run to deliver on client requests for frames. |
| 163 std::list<VideoFrameEncodedCallback> frame_request_queue_; | 163 std::list<VideoFrameEncodedCallback> frame_request_queue_; |
| 164 | 164 |
| 165 // True while there's an outstanding task to re-invoke | 165 // True while there's an outstanding task to re-invoke |
| 166 // EmitAvailableEncodedFrames(). | 166 // EmitAvailableEncodedFrames(). |
| 167 bool is_waiting_for_consecutive_frame_; | 167 bool is_waiting_for_consecutive_frame_; |
| 168 | 168 |
| 169 // This mapping allows us to log kVideoAckSent as a frame event. In addition | 169 // This mapping allows us to log FRAME_ACK_SENT as a frame event. In addition |
| 170 // it allows the event to be transmitted via RTCP. | 170 // it allows the event to be transmitted via RTCP. |
| 171 RtpTimestamp frame_id_to_rtp_timestamp_[256]; | 171 RtpTimestamp frame_id_to_rtp_timestamp_[256]; |
| 172 | 172 |
| 173 // NOTE: Weak pointers must be invalidated before all other member variables. | 173 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 174 base::WeakPtrFactory<VideoReceiver> weak_factory_; | 174 base::WeakPtrFactory<VideoReceiver> weak_factory_; |
| 175 | 175 |
| 176 DISALLOW_COPY_AND_ASSIGN(VideoReceiver); | 176 DISALLOW_COPY_AND_ASSIGN(VideoReceiver); |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 } // namespace cast | 179 } // namespace cast |
| 180 } // namespace media | 180 } // namespace media |
| 181 | 181 |
| 182 #endif // MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ | 182 #endif // MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ |
| OLD | NEW |