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

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

Issue 74133002: Cast: Removed unnecessary ref counters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge TOT Created 7 years, 1 month 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
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_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/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // Actually send the next cast message. 103 // Actually send the next cast message.
104 void SendNextCastMessage(); 104 void SendNextCastMessage();
105 105
106 scoped_refptr<CastEnvironment> cast_environment_; 106 scoped_refptr<CastEnvironment> cast_environment_;
107 base::WeakPtrFactory<AudioReceiver> weak_factory_; 107 base::WeakPtrFactory<AudioReceiver> weak_factory_;
108 108
109 const AudioCodec codec_; 109 const AudioCodec codec_;
110 const int frequency_; 110 const int frequency_;
111 base::TimeDelta target_delay_delta_; 111 base::TimeDelta target_delay_delta_;
112 scoped_ptr<Framer> audio_buffer_; 112 scoped_ptr<Framer> audio_buffer_;
113 scoped_refptr<AudioDecoder> audio_decoder_; 113 scoped_ptr<AudioDecoder> audio_decoder_;
114 scoped_ptr<LocalRtpAudioData> incoming_payload_callback_; 114 scoped_ptr<LocalRtpAudioData> incoming_payload_callback_;
115 scoped_ptr<LocalRtpAudioFeedback> incoming_payload_feedback_; 115 scoped_ptr<LocalRtpAudioFeedback> incoming_payload_feedback_;
116 scoped_ptr<RtpReceiver> rtp_receiver_; 116 scoped_ptr<RtpReceiver> rtp_receiver_;
117 scoped_ptr<Rtcp> rtcp_; 117 scoped_ptr<Rtcp> rtcp_;
118 scoped_ptr<RtpReceiverStatistics> rtp_audio_receiver_statistics_; 118 scoped_ptr<RtpReceiverStatistics> rtp_audio_receiver_statistics_;
119 base::TimeDelta time_offset_; 119 base::TimeDelta time_offset_;
120 base::TimeTicks time_first_incoming_packet_; 120 base::TimeTicks time_first_incoming_packet_;
121 uint32 first_incoming_rtp_timestamp_; 121 uint32 first_incoming_rtp_timestamp_;
122 scoped_ptr<crypto::Encryptor> decryptor_; 122 scoped_ptr<crypto::Encryptor> decryptor_;
123 std::string iv_mask_; 123 std::string iv_mask_;
124 124
125 std::list<AudioFrameEncodedCallback> queued_encoded_callbacks_; 125 std::list<AudioFrameEncodedCallback> queued_encoded_callbacks_;
126 }; 126 };
127 127
128 } // namespace cast 128 } // namespace cast
129 } // namespace media 129 } // namespace media
130 130
131 #endif // MEDIA_CAST_AUDIO_RECEIVER_AUDIO_RECEIVER_H_ 131 #endif // MEDIA_CAST_AUDIO_RECEIVER_AUDIO_RECEIVER_H_
OLDNEW
« no previous file with comments | « media/cast/audio_receiver/audio_decoder_unittest.cc ('k') | media/cast/audio_receiver/audio_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698