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

Side by Side Diff: media/cast/audio_receiver/audio_decoder.h

Issue 149703002: Cast: Refactor Audio Receiver to Clang format (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Responding to review Created 6 years, 10 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 | « no previous file | media/cast/audio_receiver/audio_decoder.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 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
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_
OLDNEW
« no previous file with comments | « no previous file | media/cast/audio_receiver/audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698