| 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_DECODER_H_ |   5 #ifndef MEDIA_CAST_AUDIO_RECEIVER_AUDIO_DECODER_H_ | 
|   6 #define MEDIA_CAST_AUDIO_RECEIVER_AUDIO_DECODER_H_ |   6 #define MEDIA_CAST_AUDIO_RECEIVER_AUDIO_DECODER_H_ | 
|   7  |   7  | 
|   8 #include "base/callback.h" |   8 #include "base/callback.h" | 
|   9 #include "base/synchronization/lock.h" |   9 #include "base/synchronization/lock.h" | 
|  10 #include "media/cast/cast_config.h" |  10 #include "media/cast/cast_config.h" | 
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  44   void IncomingParsedRtpPacket(const uint8* payload_data, |  44   void IncomingParsedRtpPacket(const uint8* payload_data, | 
|  45                                size_t payload_size, |  45                                size_t payload_size, | 
|  46                                const RtpCastHeader& rtp_header); |  46                                const RtpCastHeader& rtp_header); | 
|  47  |  47  | 
|  48   bool TimeToSendNextCastMessage(base::TimeTicks* time_to_send); |  48   bool TimeToSendNextCastMessage(base::TimeTicks* time_to_send); | 
|  49   void SendCastMessage(); |  49   void SendCastMessage(); | 
|  50  |  50  | 
|  51  private: |  51  private: | 
|  52   scoped_refptr<CastEnvironment> cast_environment_; |  52   scoped_refptr<CastEnvironment> cast_environment_; | 
|  53  |  53  | 
|  54   // The webrtc AudioCodingModule is threadsafe. |  54   // The webrtc AudioCodingModule is thread safe. | 
|  55   scoped_ptr<webrtc::AudioCodingModule> audio_decoder_; |  55   scoped_ptr<webrtc::AudioCodingModule> audio_decoder_; | 
|  56  |  56  | 
|  57   FrameIdMap frame_id_map_; |  57   FrameIdMap frame_id_map_; | 
|  58   CastMessageBuilder cast_message_builder_; |  58   CastMessageBuilder cast_message_builder_; | 
|  59  |  59  | 
|  60   base::Lock lock_; |  60   base::Lock lock_; | 
|  61   bool have_received_packets_; |  61   bool have_received_packets_; | 
|  62   FrameIdRtpTimestampMap frame_id_rtp_timestamp_map_; |  62   FrameIdRtpTimestampMap frame_id_rtp_timestamp_map_; | 
|  63   uint32 last_played_out_timestamp_; |  63   uint32 last_played_out_timestamp_; | 
|  64  |  64  | 
|  65   DISALLOW_COPY_AND_ASSIGN(AudioDecoder); |  65   DISALLOW_COPY_AND_ASSIGN(AudioDecoder); | 
|  66 }; |  66 }; | 
|  67  |  67  | 
|  68 }  // namespace cast |  68 }  // namespace cast | 
|  69 }  // namespace media |  69 }  // namespace media | 
|  70  |  70  | 
|  71 #endif  // MEDIA_CAST_AUDIO_RECEIVER_AUDIO_DECODER_H_ |  71 #endif  // MEDIA_CAST_AUDIO_RECEIVER_AUDIO_DECODER_H_ | 
| OLD | NEW |