Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: media/cast/video_sender/video_sender.h

Issue 74133002: Cast: Removed unnecessary ref counters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added TODO Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
100 scoped_ptr<EncodedVideoFrame> video_frame, 100 scoped_ptr<EncodedVideoFrame> video_frame,
101 const base::TimeTicks& capture_time); 101 const base::TimeTicks& capture_time);
102 102
103 const uint32 incoming_feedback_ssrc_; 103 const uint32 incoming_feedback_ssrc_;
104 const base::TimeDelta rtp_max_delay_; 104 const base::TimeDelta rtp_max_delay_;
105 const int max_frame_rate_; 105 const int max_frame_rate_;
106 106
107 scoped_refptr<CastEnvironment> cast_environment_; 107 scoped_refptr<CastEnvironment> cast_environment_;
108 scoped_ptr<LocalRtcpVideoSenderFeedback> rtcp_feedback_; 108 scoped_ptr<LocalRtcpVideoSenderFeedback> rtcp_feedback_;
109 scoped_ptr<LocalRtpVideoSenderStatistics> rtp_video_sender_statistics_; 109 scoped_ptr<LocalRtpVideoSenderStatistics> rtp_video_sender_statistics_;
110 scoped_refptr<VideoEncoder> video_encoder_; 110 scoped_ptr<VideoEncoder> video_encoder_;
111 scoped_ptr<Rtcp> rtcp_; 111 scoped_ptr<Rtcp> rtcp_;
112 scoped_ptr<RtpSender> rtp_sender_; 112 scoped_ptr<RtpSender> rtp_sender_;
113 VideoEncoderController* video_encoder_controller_; 113 VideoEncoderController* video_encoder_controller_;
114 uint8 max_unacked_frames_; 114 uint8 max_unacked_frames_;
115 int last_acked_frame_id_; 115 int last_acked_frame_id_;
116 int last_sent_frame_id_; 116 int last_sent_frame_id_;
117 int last_sent_key_frame_id_; 117 int last_sent_key_frame_id_;
118 int duplicate_ack_; 118 int duplicate_ack_;
119 base::TimeTicks last_send_time_; 119 base::TimeTicks last_send_time_;
120 base::TimeTicks last_checked_skip_count_time_; 120 base::TimeTicks last_checked_skip_count_time_;
121 int last_skip_count_; 121 int last_skip_count_;
122 CongestionControl congestion_control_; 122 CongestionControl congestion_control_;
123 123
124 base::WeakPtrFactory<VideoSender> weak_factory_; 124 base::WeakPtrFactory<VideoSender> weak_factory_;
125 125
126 DISALLOW_COPY_AND_ASSIGN(VideoSender); 126 DISALLOW_COPY_AND_ASSIGN(VideoSender);
127 }; 127 };
128 128
129 } // namespace cast 129 } // namespace cast
130 } // namespace media 130 } // namespace media
131 131
132 #endif // MEDIA_CAST_VIDEO_SENDER_VIDEO_SENDER_H_ 132 #endif // MEDIA_CAST_VIDEO_SENDER_VIDEO_SENDER_H_
133 133
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698