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

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

Issue 288103002: [Cast] EncodedAudioFrame+EncodedVideoFrame+reference_time --> EncodedFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
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_SENDER_H_ 5 #ifndef MEDIA_CAST_AUDIO_SENDER_H_
6 #define MEDIA_CAST_AUDIO_SENDER_H_ 6 #define MEDIA_CAST_AUDIO_SENDER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 27 matching lines...) Expand all
38 return cast_initialization_cb_; 38 return cast_initialization_cb_;
39 } 39 }
40 40
41 void InsertAudio(scoped_ptr<AudioBus> audio_bus, 41 void InsertAudio(scoped_ptr<AudioBus> audio_bus,
42 const base::TimeTicks& recorded_time); 42 const base::TimeTicks& recorded_time);
43 43
44 // Only called from the main cast thread. 44 // Only called from the main cast thread.
45 void IncomingRtcpPacket(scoped_ptr<Packet> packet); 45 void IncomingRtcpPacket(scoped_ptr<Packet> packet);
46 46
47 protected: 47 protected:
48 void SendEncodedAudioFrame( 48 void SendEncodedAudioFrame(scoped_ptr<transport::EncodedFrame> audio_frame);
49 scoped_ptr<transport::EncodedAudioFrame> audio_frame,
50 const base::TimeTicks& recorded_time);
51 49
52 private: 50 private:
53 friend class LocalRtcpAudioSenderFeedback; 51 friend class LocalRtcpAudioSenderFeedback;
54 52
55 void ResendPackets( 53 void ResendPackets(
56 const MissingFramesAndPacketsMap& missing_frames_and_packets); 54 const MissingFramesAndPacketsMap& missing_frames_and_packets);
57 55
58 void StoreStatistics(const transport::RtcpSenderInfo& sender_info, 56 void StoreStatistics(const transport::RtcpSenderInfo& sender_info,
59 base::TimeTicks time_sent, 57 base::TimeTicks time_sent,
60 uint32 rtp_timestamp); 58 uint32 rtp_timestamp);
(...skipping 15 matching lines...) Expand all
76 // NOTE: Weak pointers must be invalidated before all other member variables. 74 // NOTE: Weak pointers must be invalidated before all other member variables.
77 base::WeakPtrFactory<AudioSender> weak_factory_; 75 base::WeakPtrFactory<AudioSender> weak_factory_;
78 76
79 DISALLOW_COPY_AND_ASSIGN(AudioSender); 77 DISALLOW_COPY_AND_ASSIGN(AudioSender);
80 }; 78 };
81 79
82 } // namespace cast 80 } // namespace cast
83 } // namespace media 81 } // namespace media
84 82
85 #endif // MEDIA_CAST_AUDIO_SENDER_H_ 83 #endif // MEDIA_CAST_AUDIO_SENDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698