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

Side by Side Diff: media/cast/receiver/frame_receiver.h

Issue 387933005: Cast: Refactor RTCP handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 6 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « media/cast/receiver/cast_receiver_impl.cc ('k') | media/cast/receiver/frame_receiver.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_RECEIVER_FRAME_RECEIVER_H_ 5 #ifndef MEDIA_CAST_RECEIVER_FRAME_RECEIVER_H_
6 #define MEDIA_CAST_RECEIVER_FRAME_RECEIVER_H_ 6 #define MEDIA_CAST_RECEIVER_FRAME_RECEIVER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // it allows the event to be transmitted via RTCP. 165 // it allows the event to be transmitted via RTCP.
166 RtpTimestamp frame_id_to_rtp_timestamp_[256]; 166 RtpTimestamp frame_id_to_rtp_timestamp_[256];
167 167
168 // Lip-sync values used to compute the playout time of each frame from its RTP 168 // Lip-sync values used to compute the playout time of each frame from its RTP
169 // timestamp. These are updated each time the first packet of a frame is 169 // timestamp. These are updated each time the first packet of a frame is
170 // received. 170 // received.
171 RtpTimestamp lip_sync_rtp_timestamp_; 171 RtpTimestamp lip_sync_rtp_timestamp_;
172 base::TimeTicks lip_sync_reference_time_; 172 base::TimeTicks lip_sync_reference_time_;
173 ClockDriftSmoother lip_sync_drift_; 173 ClockDriftSmoother lip_sync_drift_;
174 174
175 // Time interval for sending a RTCP report.
176 const base::TimeDelta rtcp_interval_;
177
175 // NOTE: Weak pointers must be invalidated before all other member variables. 178 // NOTE: Weak pointers must be invalidated before all other member variables.
176 base::WeakPtrFactory<FrameReceiver> weak_factory_; 179 base::WeakPtrFactory<FrameReceiver> weak_factory_;
177 180
178 DISALLOW_COPY_AND_ASSIGN(FrameReceiver); 181 DISALLOW_COPY_AND_ASSIGN(FrameReceiver);
179 }; 182 };
180 183
181 } // namespace cast 184 } // namespace cast
182 } // namespace media 185 } // namespace media
183 186
184 #endif // MEDIA_CAST_RECEIVER_FRAME_RECEIVER_H_ 187 #endif // MEDIA_CAST_RECEIVER_FRAME_RECEIVER_H_
OLDNEW
« no previous file with comments | « media/cast/receiver/cast_receiver_impl.cc ('k') | media/cast/receiver/frame_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698