| 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_SENDER_VIDEO_SENDER_H_ | 5 #ifndef MEDIA_CAST_VIDEO_SENDER_VIDEO_SENDER_H_ |
| 6 #define MEDIA_CAST_VIDEO_SENDER_VIDEO_SENDER_H_ | 6 #define MEDIA_CAST_VIDEO_SENDER_VIDEO_SENDER_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // member will be resized to hold the encrypted size. | 114 // member will be resized to hold the encrypted size. |
| 115 bool EncryptVideoFrame(const EncodedVideoFrame& encoded_frame, | 115 bool EncryptVideoFrame(const EncodedVideoFrame& encoded_frame, |
| 116 EncodedVideoFrame* encrypted_video_frame); | 116 EncodedVideoFrame* encrypted_video_frame); |
| 117 | 117 |
| 118 const base::TimeDelta rtp_max_delay_; | 118 const base::TimeDelta rtp_max_delay_; |
| 119 const int max_frame_rate_; | 119 const int max_frame_rate_; |
| 120 | 120 |
| 121 scoped_refptr<CastEnvironment> cast_environment_; | 121 scoped_refptr<CastEnvironment> cast_environment_; |
| 122 scoped_ptr<LocalRtcpVideoSenderFeedback> rtcp_feedback_; | 122 scoped_ptr<LocalRtcpVideoSenderFeedback> rtcp_feedback_; |
| 123 scoped_ptr<LocalRtpVideoSenderStatistics> rtp_video_sender_statistics_; | 123 scoped_ptr<LocalRtpVideoSenderStatistics> rtp_video_sender_statistics_; |
| 124 scoped_refptr<VideoEncoder> video_encoder_; | 124 scoped_ptr<VideoEncoder> video_encoder_; |
| 125 scoped_ptr<Rtcp> rtcp_; | 125 scoped_ptr<Rtcp> rtcp_; |
| 126 scoped_ptr<RtpSender> rtp_sender_; | 126 scoped_ptr<RtpSender> rtp_sender_; |
| 127 VideoEncoderController* video_encoder_controller_; | 127 VideoEncoderController* video_encoder_controller_; |
| 128 uint8 max_unacked_frames_; | 128 uint8 max_unacked_frames_; |
| 129 scoped_ptr<crypto::Encryptor> encryptor_; | 129 scoped_ptr<crypto::Encryptor> encryptor_; |
| 130 std::string iv_mask_; | 130 std::string iv_mask_; |
| 131 int last_acked_frame_id_; | 131 int last_acked_frame_id_; |
| 132 int last_sent_frame_id_; | 132 int last_sent_frame_id_; |
| 133 int duplicate_ack_; | 133 int duplicate_ack_; |
| 134 base::TimeTicks last_send_time_; | 134 base::TimeTicks last_send_time_; |
| 135 base::TimeTicks last_checked_skip_count_time_; | 135 base::TimeTicks last_checked_skip_count_time_; |
| 136 int last_skip_count_; | 136 int last_skip_count_; |
| 137 CongestionControl congestion_control_; | 137 CongestionControl congestion_control_; |
| 138 | 138 |
| 139 bool initialized_; | 139 bool initialized_; |
| 140 base::WeakPtrFactory<VideoSender> weak_factory_; | 140 base::WeakPtrFactory<VideoSender> weak_factory_; |
| 141 | 141 |
| 142 DISALLOW_COPY_AND_ASSIGN(VideoSender); | 142 DISALLOW_COPY_AND_ASSIGN(VideoSender); |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 } // namespace cast | 145 } // namespace cast |
| 146 } // namespace media | 146 } // namespace media |
| 147 | 147 |
| 148 #endif // MEDIA_CAST_VIDEO_SENDER_VIDEO_SENDER_H_ | 148 #endif // MEDIA_CAST_VIDEO_SENDER_VIDEO_SENDER_H_ |
| 149 | 149 |
| OLD | NEW |