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_AUDIO_RECEIVER_AUDIO_RECEIVER_H_ | 5 #ifndef MEDIA_CAST_AUDIO_RECEIVER_AUDIO_RECEIVER_H_ |
6 #define MEDIA_CAST_AUDIO_RECEIVER_AUDIO_RECEIVER_H_ | 6 #define MEDIA_CAST_AUDIO_RECEIVER_AUDIO_RECEIVER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 uint32 first_incoming_rtp_timestamp_; | 161 uint32 first_incoming_rtp_timestamp_; |
162 transport::TransportEncryptionHandler decryptor_; | 162 transport::TransportEncryptionHandler decryptor_; |
163 | 163 |
164 // Outstanding callbacks to run to deliver on client requests for frames. | 164 // Outstanding callbacks to run to deliver on client requests for frames. |
165 std::list<AudioFrameEncodedCallback> frame_request_queue_; | 165 std::list<AudioFrameEncodedCallback> frame_request_queue_; |
166 | 166 |
167 // True while there's an outstanding task to re-invoke | 167 // True while there's an outstanding task to re-invoke |
168 // EmitAvailableEncodedFrames(). | 168 // EmitAvailableEncodedFrames(). |
169 bool is_waiting_for_consecutive_frame_; | 169 bool is_waiting_for_consecutive_frame_; |
170 | 170 |
171 // This mapping allows us to log kAudioAckSent as a frame event. In addition | 171 // This mapping allows us to log AUDIO_ACK_SENT as a frame event. In addition |
172 // it allows the event to be transmitted via RTCP. | 172 // it allows the event to be transmitted via RTCP. |
173 RtpTimestamp frame_id_to_rtp_timestamp_[256]; | 173 RtpTimestamp frame_id_to_rtp_timestamp_[256]; |
174 | 174 |
175 // NOTE: Weak pointers must be invalidated before all other member variables. | 175 // NOTE: Weak pointers must be invalidated before all other member variables. |
176 base::WeakPtrFactory<AudioReceiver> weak_factory_; | 176 base::WeakPtrFactory<AudioReceiver> weak_factory_; |
177 | 177 |
178 DISALLOW_COPY_AND_ASSIGN(AudioReceiver); | 178 DISALLOW_COPY_AND_ASSIGN(AudioReceiver); |
179 }; | 179 }; |
180 | 180 |
181 } // namespace cast | 181 } // namespace cast |
182 } // namespace media | 182 } // namespace media |
183 | 183 |
184 #endif // MEDIA_CAST_AUDIO_RECEIVER_AUDIO_RECEIVER_H_ | 184 #endif // MEDIA_CAST_AUDIO_RECEIVER_AUDIO_RECEIVER_H_ |
OLD | NEW |