| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |