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

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

Issue 138843011: Cast: Adding helper crypto classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile issues 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_receiver.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_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"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/threading/non_thread_safe.h" 13 #include "base/threading/non_thread_safe.h"
14 #include "base/time/tick_clock.h" 14 #include "base/time/tick_clock.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "media/cast/cast_config.h" 16 #include "media/cast/cast_config.h"
17 #include "media/cast/cast_environment.h" 17 #include "media/cast/cast_environment.h"
18 #include "media/cast/cast_receiver.h" 18 #include "media/cast/cast_receiver.h"
19 #include "media/cast/rtcp/rtcp.h" // RtcpCastMessage 19 #include "media/cast/rtcp/rtcp.h" // RtcpCastMessage
20 #include "media/cast/rtp_receiver/rtp_receiver_defines.h" // RtpCastHeader 20 #include "media/cast/rtp_receiver/rtp_receiver_defines.h" // RtpCastHeader
21 21 #include "media/cast/transport/utility/transport_encryption_handler.h"
22 namespace crypto {
23 class Encryptor;
24 class SymmetricKey;
25 }
26 22
27 namespace media { 23 namespace media {
28 namespace cast { 24 namespace cast {
29 25
30 class AudioDecoder; 26 class AudioDecoder;
31 class Framer; 27 class Framer;
32 class LocalRtpAudioData; 28 class LocalRtpAudioData;
33 class LocalRtpAudioFeedback; 29 class LocalRtpAudioFeedback;
34 class RtpReceiver; 30 class RtpReceiver;
35 class RtpReceiverStatistics; 31 class RtpReceiverStatistics;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 scoped_ptr<Framer> audio_buffer_; 121 scoped_ptr<Framer> audio_buffer_;
126 scoped_ptr<AudioDecoder> audio_decoder_; 122 scoped_ptr<AudioDecoder> audio_decoder_;
127 scoped_ptr<LocalRtpAudioData> incoming_payload_callback_; 123 scoped_ptr<LocalRtpAudioData> incoming_payload_callback_;
128 scoped_ptr<LocalRtpAudioFeedback> incoming_payload_feedback_; 124 scoped_ptr<LocalRtpAudioFeedback> incoming_payload_feedback_;
129 scoped_ptr<RtpReceiver> rtp_receiver_; 125 scoped_ptr<RtpReceiver> rtp_receiver_;
130 scoped_ptr<Rtcp> rtcp_; 126 scoped_ptr<Rtcp> rtcp_;
131 scoped_ptr<RtpReceiverStatistics> rtp_audio_receiver_statistics_; 127 scoped_ptr<RtpReceiverStatistics> rtp_audio_receiver_statistics_;
132 base::TimeDelta time_offset_; 128 base::TimeDelta time_offset_;
133 base::TimeTicks time_first_incoming_packet_; 129 base::TimeTicks time_first_incoming_packet_;
134 uint32 first_incoming_rtp_timestamp_; 130 uint32 first_incoming_rtp_timestamp_;
135 scoped_ptr<crypto::Encryptor> decryptor_; 131 transport::TransportEncryptionHandler decryptor_;
136 scoped_ptr<crypto::SymmetricKey> decryption_key_;
137 std::string iv_mask_;
138 base::TimeTicks last_playout_time_; 132 base::TimeTicks last_playout_time_;
139 133
140 std::list<AudioFrameEncodedCallback> queued_encoded_callbacks_; 134 std::list<AudioFrameEncodedCallback> queued_encoded_callbacks_;
141 std::list<DecodedAudioCallbackData> queued_decoded_callbacks_; 135 std::list<DecodedAudioCallbackData> queued_decoded_callbacks_;
142 }; 136 };
143 137
144 } // namespace cast 138 } // namespace cast
145 } // namespace media 139 } // namespace media
146 140
147 #endif // MEDIA_CAST_AUDIO_RECEIVER_AUDIO_RECEIVER_H_ 141 #endif // MEDIA_CAST_AUDIO_RECEIVER_AUDIO_RECEIVER_H_
OLDNEW
« no previous file with comments | « no previous file | media/cast/audio_receiver/audio_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698