| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 void SendEncodedVideoFrameToTransport( | 101 void SendEncodedVideoFrameToTransport( |
| 102 scoped_ptr<transport::EncodedVideoFrame> encoded_frame, | 102 scoped_ptr<transport::EncodedVideoFrame> encoded_frame, |
| 103 const base::TimeTicks& capture_time); | 103 const base::TimeTicks& capture_time); |
| 104 | 104 |
| 105 void InitializeTimers(); | 105 void InitializeTimers(); |
| 106 | 106 |
| 107 void ResendPacketsOnTransportThread( | 107 void ResendPacketsOnTransportThread( |
| 108 const transport::MissingFramesAndPacketsMap& missing_packets); | 108 const transport::MissingFramesAndPacketsMap& missing_packets); |
| 109 | 109 |
| 110 const base::TimeDelta rtp_max_delay_; | 110 base::TimeDelta rtp_max_delay_; |
| 111 const int max_frame_rate_; | 111 const int max_frame_rate_; |
| 112 | 112 |
| 113 scoped_refptr<CastEnvironment> cast_environment_; | 113 scoped_refptr<CastEnvironment> cast_environment_; |
| 114 transport::CastTransportSender* const transport_sender_; | 114 transport::CastTransportSender* const transport_sender_; |
| 115 | 115 |
| 116 // Subscribes to raw events. | 116 // Subscribes to raw events. |
| 117 // Processes raw audio events to be sent over to the cast receiver via RTCP. | 117 // Processes raw audio events to be sent over to the cast receiver via RTCP. |
| 118 SenderRtcpEventSubscriber event_subscriber_; | 118 SenderRtcpEventSubscriber event_subscriber_; |
| 119 | 119 |
| 120 scoped_ptr<LocalRtcpVideoSenderFeedback> rtcp_feedback_; | 120 scoped_ptr<LocalRtcpVideoSenderFeedback> rtcp_feedback_; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 143 bool active_session_; | 143 bool active_session_; |
| 144 base::WeakPtrFactory<VideoSender> weak_factory_; | 144 base::WeakPtrFactory<VideoSender> weak_factory_; |
| 145 | 145 |
| 146 DISALLOW_COPY_AND_ASSIGN(VideoSender); | 146 DISALLOW_COPY_AND_ASSIGN(VideoSender); |
| 147 }; | 147 }; |
| 148 | 148 |
| 149 } // namespace cast | 149 } // namespace cast |
| 150 } // namespace media | 150 } // namespace media |
| 151 | 151 |
| 152 #endif // MEDIA_CAST_VIDEO_SENDER_VIDEO_SENDER_H_ | 152 #endif // MEDIA_CAST_VIDEO_SENDER_VIDEO_SENDER_H_ |
| OLD | NEW |